[resolved] Catch Die Error

One Star

[resolved] Catch Die Error

Hello,
I have a check, if a SQLInput_NB_LINE == 0 then i call to tDie. I want to stop the job but i dont want to send an error to the parentjob because is a false error.
How could i catch that error in order not appears in the tLogCatcher?
Thanks

Accepted Solutions
One Star

Re: [resolved] Catch Die Error

With two ifs i have resolved the problem

All Replies
Moderator

Re: [resolved] Catch Die Error

Hi,
How did you set tlogcatcher? Did you uncheck "Catch tDie" option? A screenshot of workflow will be helpful for us.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Seventeen Stars

Re: [resolved] Catch Die Error

hi all,
call your job via a tRunJob and uncheck the option "Die on child error".
hope it helps
regards
laurent
One Star

Re: [resolved] Catch Die Error

Hello,
I want to stop the job and because of this i call to tDie, but itsn't an real error, if i uncheck the CathDie i will not control the real error.
How could i stop the job without execute an error?
Thanks
One Star

Re: [resolved] Catch Die Error

Any help?
Seventeen Stars

Re: [resolved] Catch Die Error

You can always control what is the next action if you find some condition. I suggest instead of using the trigger OnSubjobOK use the if trigger and use here the necessary condition if it is desired to go ahead.
One Star

Re: [resolved] Catch Die Error

With two ifs i have resolved the problem

What’s New for Talend Spring ’19

Join us live for a sneak peek!

Sign up now

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads