Hi
Though I am catching a bunch of exceptions within java code, but occasionally for certain scenarios an exception would happen and it would cause the job to die. How can I catch these exceptions so that it doesn't stop the actual job? Any input or feedback would be greatly appreciated.
You need to redesign the job like this:
main job:
....
|
onsubjobok
|
tFileList--iterate--tFileJsonInput--main--tFlowToIterate--iterate--tRunJob
on tRunJob: pass the current data to child job, and uncheck the 'die on error' option to ensure the main job will continue to run even though an exception occurs in the child job.
Child job:
tFixedFlowInput--main--tJava
tFixedFlowInput: generate the current data.
How to pass the current data to child job, see this KB article:
https://help.talend.com/search/all?query=Passing+a+value+from+a+parent+Job+to+a+child+Job&content-la...
I hope this job could give you some hints to achieve your request.
Best regards
Shong