Handling Database Rejected Rows on Error.

One Star

Handling Database Rejected Rows on Error.

What is the best way to handle and send an email with Rejected Rows on Error for tOracleOutput Component?
How to send RowsOnError as attachment?
How to send RowsOnError as Email Message body?
Can we raise an warn message and catch that warn and send an email?If so how transform Rejects to twarn?
Please let me know how to build it.
Appreciate your Help.

Re: Handling Database Rejected Rows on Error.


The 'Die on error' option can not be used with reject link together, if you want to use reject link, the 'die on error' option should be unchecked. You can send an email if the some rows are rejected. For example:
 It outputs the rejected rows to a file, this file can be attached in the mail  if needed,
set the condition of runIf as:
If you want to send rejects rows as email Message body, you should pass rejects rows into context value by using tJavaRow firstly, and then getting the context value in Message body of tSendMail.
Here is a related forum for this scenario, please refer to:https://www.talendforge.org/forum/viewtopic.php?id=40323
Feel free to let us know if it is OK with you.
Best regards
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Five Stars

Re: Handling Database Rejected Rows on Error.

Unless the reject file is so large that it would be impractical to Email it, I always send it as an attachment (.csv) which is more useful than having it in the Email body.

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now


Introduction to Talend Open Studio for Data Integration.


Downloads and Trials

Test drive Talend's enterprise products.


Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.