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

View solution in original post


All Replies
Highlighted
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

View solution in original post

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