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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
bdurand
Creator
Creator

TFileInputXML and tMDMInput don't die on error

Hi,
If the specified file in a tFileInputXML doesn't exist the job doesn't stop and returns 0 even if die on error is checked.
Same thing with a tMDMInput.
Please, is it normal ?
I'm using Talend 4.2.0 with win7 64b.
regards,
Ben
Labels (3)
9 Replies
Anonymous
Not applicable

Hi Ben
Is there a Java exception is throw when the job running? I think you are using a tRunJob to call the child job and uncheck the box 'die on error' on tRunJob, can you upload a screenshot of job?
Best regards
Shong
bdurand
Creator
Creator
Author

Hi Shong,
A Java exception is thrown but doesn't stop the job even if die in error is checked.
In the example the tFileInputXML throws an exception but the job goes to the tFileInputDelimited.
The tFileInputDelimited crashes and stops the job.
If I delete the tFileInputDelimited the job ends with the return code 0.
Best regards,
Ben
bdurand
Creator
Creator
Author

tFileInputXML uses SAX parser. If I choose Dom4J, the component crashes like expectected.
Anonymous
Not applicable

Hi
I can't reproduce the problem with SAX parser and Dom4j. As you described, the tFileInputXML component runs fine and the tDie component is not executed.
Are you sure the exception is thrown by tFileInputXML? Can you show me the exception message?
Best regards
Shong
bdurand
Creator
Creator
Author

Sorry the last screenshot was not uploaded.
The tFileInputXML crashes but goes to OnSubJobOK and OnComponentOK.
regards,
Ben
Anonymous
Not applicable

Hi Ben
From your last screenshot, I see the exception is thrown on tFileInputDelimited, not tFileInputXML!
Best regards
Shong
bdurand
Creator
Creator
Author

Hi Shong,
if you check my job (screenshot 1) I use 1 tFileInputXML and 1 tFileInputDelimited. These components try to open a file which does not exist and they are linked by a OnSubJobOK trigger.
In the logs there are 2 exceptions : first one by the tFileInputXML and second one by the tFileInputDelimited.
The tFileInputDelimited won't be able to be executed if the tFileInputXML crashes.
tFileInputXML does not find the file, throws an exception but goes on the next step with OK trigger. In my opinion it's a bug.
tFileInputDelimited does not find the file, throws an exception and stops the jobs. It's OK.
regards,
Ben
Anonymous
Not applicable

Hi Ben
I tested again with the situation the file does not exist and confirmed the problem. Can you please report a bug on our bugtracker?
Thanks for your support!
Best regards
Shong