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: 
FSternberg
Contributor III
Contributor III

OnComponentError with tRunJob_1 (Parent Job) x "Die on Error" on tDBOutput (Child Job)

I have 05 CSV files to import in the SQL base and the JOB is working fine.

I configured the “Die on Error” option in the tDBOutput_1 (Child Job) component so that in case I have any problem importing the file into the SQL database, rename the file as "NOK" at the end .

But I'm only able to rename it as “NOK” when I enable the “Die on “Error” option in tRunJob_1 but I can't use it because in this case only the first file is processed.

Can you help me with one suggestion?

I am sending in attached the file with one draft to better understanding.

Thanks!

Labels (3)
3 Replies
Anonymous
Not applicable

@Felipe Sternberg​ , also move this operation (t​tFileCopy) to child job, pass the file path to child job, read the data from current file and insert them into DB, uncheck 'die on error' box on tRunJob and check the 'die on error' box on tDBOutput.

 

Please try and let me know if you still have any issues.

 

Regards

Shong

FSternberg
Contributor III
Contributor III
Author

Hello, I am a litle confuse, can you give me one draft here please of child job.

And if I´ll check "die on error" in DBOutput the others files will be executed?

Anonymous
Not applicable

Pass the file path to child job and process each file in child job, unchecking the 'die on error' box on tRunjob​ will make the main job continue to execute even though there is an error occurs in child job.

Checking the 'die on error' box on tDBOuput will make the tFileCopy linked by onComponentError working.

The child job looks like:

tFileInputDelimited--main-tDBOutput--oncomponentError--tFileCopy

tFileInputDelimited: read the current file.

Regards

Shong