Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
In a Talend job designed to load data from multiple files, where schema validation is crucial, files with non-matching schemas are not being handled correctly. Specifically, when there are files with schemas that do not match the reference schema (emp1_csv), only one of these files is moved to the "Rejected Folder," while others are not processed, causing them to remain in the source folder without any further action. The goal is to ensure that all files, including those with non-matching schemas, are correctly processed and handled according to their schema compatibility. Below are the screenshots attached of Job Creation for the same.
Hello @Trupti C
The cause of this behavior is that you enabled both "Check each row structure against schema" and "Die on error" options on tFileInputDelimited.
The "die on error" option will cause an exception on the Job and will stop its execution when the first row that doesn't match the schema is found.
However, if you disable the "die on error" option, only the non matching rows of each file would be rejected. I understand this is not what you expect. Instead, you need to reject the whole file is that correct?
If that's the case, I would try the following:
Thank you, But since I am a beginner in Talend I am not able to get a clear picture of how to do it, Like I can't connect Row-> Main Link to tHashoutput from tfileDelimited So can you please send a sketch or rough picture of the job for same