Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I have developed a Talend job that applies the same processing for each iteration of a file from the tFileList. In this processing, there is a step where I check the file information. When an error in a file is found (boolean context variable passes false but it is set to true by default in the context), a tDie is executed and the Talend job stops.
Today, I would like to make an evolution that when an error is found then the processing stops ONLY for the current file, but the job continues with the next file found in the tFileList. Because let's say I have 10 files to process in a folder, I don't want to compromise the integration of 9 files for 1 incorrect file.
How can I do this?
Here is an overview of my job.
Thank you for your ideas
Move the process of file to a child job, use a tRunJob to call the child job and pass the current file path to child job, uncheck the 'die on error' option on tRunJob, this will make the main job continue to iterate next file even though the child job has an error and stop the execution of next components.
Move the process of file to a child job, use a tRunJob to call the child job and pass the current file path to child job, uncheck the 'die on error' option on tRunJob, this will make the main job continue to iterate next file even though the child job has an error and stop the execution of next components.