[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
Highlighted
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

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog