Using compiled versions of Routines with the Test Run feature in Talend Data Mapper - 7.3

Version
7.3
Language
English (United States)
Product
Talend Big Data Platform
Talend Data Fabric
Talend Data Management Platform
Talend Data Services Platform
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Design and Development

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 Code > Routines 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.

  1. In Talend Studio, open the Navigator view and find your project.
  2. Right-click the project, and then click Properties > Mapping.
  3. Click Add JAR file and add <talend_studio_path>/workspace/<project>/poms/code/routines/target/routines-A.B.C.jar to your project.
  4. Click Apply and Close.

After this, you will be able to use the Test Run feature as required.