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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Calling job from an external Java application return code

We're following this article (https://help.talend.com/search/all?query=Calling+a+Talend+Job+from+an+external+Java+applica...to execute Talend job.  The runJob() method is used to execute the job.  If there was an error, the method returned error code but no messages.  Is there a way for the job to return the error code and message back to the calling application?  What are the different approaches?
Method:  String[][] runJob (String[] args);   from routintes.system.api.TalendJob
Labels (3)
2 Replies
Anonymous
Not applicable
Author

Hi
You can use tLogCatcher in the job to capture the error message and the return code, log the message to a file or database, read the message back to your application if the job fails.
Best regards
Shong
Anonymous
Not applicable
Author

Thanks for your reply.  Just to confirm, there is no way to include the error message along with the error code being returned to the calling Java application, correct?