Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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
Labels (2)
7 Replies
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

Hi Pedro,
This option is checked in the Export Job window as shown in the upload image
Anonymous
Not applicable
Author

Hi
Right click on this job and select 'Setup routine dependencies' to add user routines.
Regards,
Pedro
Anonymous
Not applicable
Author

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 ?
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

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.
Anonymous
Not applicable
Author

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