catch runtime exceptions in Talend DI - tLogCatcher, tDie, "die on error"

Seven Stars

catch runtime exceptions in Talend DI - tLogCatcher, tDie, "die on error"

Hello everyone,

 

I am seeking clarification on error handling in Talend DI (version 6.4).

 

If I use tLogCatcher to catch all exceptions in my Talend DI job then it appears that I must also use "On Error" flow to a tDie component (or to tWarn).

If this correct? If there a way to make it catch all errors without explicit tDie/tWarn on-error flows ?

 

I have tLogCatcher -> tFileOutput (or tLogCatcher ->tMap -> tFileOutput) to catch all errors.

 

This did not work until I explicitly added tDie to my sub-job "on Error" flow. Now it works.

 

If I check the "die on error" for a given component - is this same as flow to tDie on error i.e. will the error be caught by tLogCatcher  or do I still need explicit on-error tDie ?

 

Not all components have a "die on error".

 

thanks

 

 

Highlighted
Eight Stars
Eight Stars

Re: catch runtime exceptions in Talend DI - tLogCatcher, tDie, "die on error"

Hi ,

 

I'm just using tLogCatcher --- tFileOutputDelimited to log my error and it's work fine.

Personnaly I use tDie or tWarning if i want to take care about special case.

But if you have something like : Job father calling Child Job , you have to put your tLogCatcher --- tFileOutputDelimited in two jobs otherwise, child job's error is not catched.

 

SGV

 

 

 

2019 GARTNER 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

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

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog