Using compiled versions of Routines with the Test Run feature in Talend Data Mapper
You cannot test maps using the Test Run feature available in the Mapping perspective if a function that was defined in the Integration perspective under is called in one of the maps. Using the Test Run feature on such a map will result in errors. This issue occurs because Talend Studio routines are not on the classpath during development. Test Run, in the Mapping perspective, has no access to the compiled versions of these routines.
A workaround is to import a compiled version of these routines into your project.
To do so, do the following.
- In Talend Studio, open the Navigator view and find your project.
- Right-click the project, and then click .
- Click Add JAR file and add <talend_studio_path>/workspace/<project>/poms/code/routines/target/routines-A.B.C.jar to your project.
- Click Apply and Close.
After this, you will be able to use the Test Run feature as required.