[resolved] Use tLogCatcher & tDie to add custom error message and send email

Highlighted
One Star

[resolved] Use tLogCatcher & tDie to add custom error message and send email

TOS Version: 3.1.0M1
I am trying to use tLogCatcher to catch all the Exceptions and Errors.
In the main job , whenever there is an error ( onComponentError ) , it invokes a tDie.
So the LogCatcher is getting 2 hits and hence its sending 2 emails.
I would like to just send 1 email with both the Original and custom message.
What is the best way to add custom error messages before sending an email.

Accepted Solutions
Community Manager

Re: [resolved] Use tLogCatcher & tDie to add custom error message and send email

Hello raj
We can define a context variable to catch the custom error message and add it to email. See my screenshot.
Best regards

shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

All Replies
Community Manager

Re: [resolved] Use tLogCatcher & tDie to add custom error message and send email

Hello raj
We can define a context variable to catch the custom error message and add it to email. See my screenshot.
Best regards

shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

Cloud Free Trial

Try Talend Cloud free for 30 days.

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

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