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

Announcements
Join us in Zurich on Sept 24th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
portix
Contributor II
Contributor II

Handling Schema Mismatch Exceptions in Talend XML Processing

In my Talend job, I am processing XML files from a directory using a tFileInputXML component. The issue is that the directory may contain XML files with different schemas. When the job tries to process a file with an unexpected schema, it throws an exception, causing the entire job to fail.

I cannot filter the files in advance using tFileList because I do not have the file names or any predefined criteria to identify the incompatible files beforehand.

What I need is for Talend not to stop. I want to catch the exception when it occurs (for example, using a tLogCatcher or similar component) and continue processing the rest of the files without stopping the entire job.

The error is as follows (it occurs in the tXMLMap when trying to map):
Exception in component tXMLMap_1_TXMLMAP_OUT (handlingError) java.lang.RuntimeException: row3.content can't be empty

Labels (3)
1 Solution

Accepted Solutions
Dave_Simo
Creator II
Creator II

Hello,

If you want to escape the exception when processing your XML, you can use the solution proposed in this post.

https://community.qlik.com/t5/Design-and-Development/If-one-Excel-file-fails-how-does-the-job-not-st...

 

Best regards

View solution in original post

1 Reply
Dave_Simo
Creator II
Creator II

Hello,

If you want to escape the exception when processing your XML, you can use the solution proposed in this post.

https://community.qlik.com/t5/Design-and-Development/If-one-Excel-file-fails-how-does-the-job-not-st...

 

Best regards