Export Job: User Routines is not exported

One Star

Export Job: User Routines is not exported

Hi,
I have a job that uses a routine I have created.
When I export the job, the jar userRoutines.jar doesn't include the class of my routine. It only contains a META-INF directory.
So when i run the job, I get a NoClassDefFoundError: routines/MyRoutine
In the Export job window, User Routine is checked.
I use version 5.0.1 of Talend Open Studio
What do I do wrong ?
Regards,
Nicolas
One Star

Re: Export Job: User Routines is not exported

Hi Nicolas
Before you export the job script, right click on the job name, and select 'User rountines' option, and see if the user routine is imported.
Regards,
Pedro
One Star

Re: Export Job: User Routines is not exported

Hi Pedro,
This option is checked in the Export Job window as shown in the upload image
One Star

Re: Export Job: User Routines is not exported

Hi
Right click on this job and select 'Setup routine dependencies' to add user routines.
Regards,
Pedro
One Star

Re: Export Job: User Routines is not exported

Ok but the window is empty in the user routine tab.
What do I need to do to be able to select the routine I created ?
One Star

Re: Export Job: User Routines is not exported

Hi
You can find "+" button at the right of this small windows.
Just click it.
Which version of TOS do you use?
The behavior is abnormal. Because usually the user routines will be added automatically when you call it in one job.
Regards,
Pedro
One Star

Re: Export Job: User Routines is not exported

Hi got it.
the PLUS button is disabled when the job in opened....
So I managed to add my routine and it's now exported as well. Great.
But I agree with you, the routine should have been detected automatically as a dependency of my job.
version used: 5.0.1.r74687
I also use the routine in a filter of a tMap as shown in the uploaded image.
One Star

Re: Export Job: User Routines is not exported

Hi
Could you test this issue with other jobs? If it can recur each time, please report it on BugTracker.
Regards,
Pedro

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog