[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

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 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch