I have a job that uses tStatsCatcher and tLogCatcher components for monitoring. These components track errors well and send them to a database and email.
I would like to send an email (tSendMail) in case the sending of the error to the database (tOracleOutput) does not work, ie if the connection to the database has failed. However, sending the mail does not work.
I tried to use several "main" on the tLogCatcher component but without success:
Also, I tried to put "OnComponentError" after "tOracleOutput", but it sends an email to each call of tStatCatcher.
Is it possible to catch this error?
Please re-design your workflow like:
tStatCatcher--> tMap --> tOracleOutput
| onsubjob error
I tried this solution but the component sends 2 mails, 1 at beginning and 1 at the end job.
Even when i add a condition for get only end stats in tMap (row3.message_type.equals("end")).
How did you set the value in message body part of component tSendMail? Did you use any Context Value in it? Could you please post your current job setting screenshots on forum?
Note: Please mask your sensitive data.
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Watch the recorded webinar!
Pick up some tips and tricks with Context Variables
Learn how media organizations have achieved success with Data Integration
Create systems and workflow to manage clean data ingestion and data transformation.