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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
deisou
Contributor
Contributor

Component "ERROR_MESSAGE" is not populated when "Die on error" is disabled - How to capture errors and continue iteration?

Hi there,

I am developing a Talend workflow in a single job and I am having trouble meeting my requirements. The scenario is a follows:

  1. Loop through a folder of JSON files to be processed
  2. Parse each file using tFileInputJSON
  3. On component failure in the tFileInputJSON for any file, take the error message and append it to the JSON file and archive it
  4. Continue to the next file

The problem is if I use "Die on error", the iteration is disrupted and the remaining files do not get processed until next time I run the job.

I have tried capturing the "ERROR_MESSAGE" but it is NULL when "Die on error" is disabled.

Any help appreciated.

Thanks

0693p000009TIkIAAW.png

Labels (3)
2 Replies
manodwhb
Champion II
Champion II

@David Deisou​ , you have enable to die on error in the component level then only you can capture the error_message.

 

Thanks,

Manohar

 

 

 

deisou
Contributor
Contributor
Author

That's unfortunate. The idea is to be able to handle any errors, and continue the iteration.

 

The use of another wrapper job calling a tRunJob component could be a work-around to implement this requirement.