Hi every one,
i have query which give me information of ETL Error like this:
i create a Job: tOracleinput --->tsendMail which sends this Error logs to my Email.
What i want now is that: when i execute the Job again and again, it sends me only new Error logs. The Error logs which has been sent, will be not send again.
Can you please help me?
Thankyou very much!
You need to store the errors into a delimited text file (or anything else) then, next time the job runs, search the selected into this file, add new ones and send your email for these new errors only.
You just need a tMap with an inner join to catch new records.
General design should looks like this:
tFileInputDelimited | tOracleInput-(main)-->tMap-->tHashOutput(new errors) (onSubjobOK) tHashInput-->tReplicate-+->tFileOutputDelimited(append new errors) | tJavaRow(prepare email)-->tSendMail
Read about tOracleCDC - help.talend.com/reader/NNO~fmVQU4rlkF9Depfdxw/….
Note - this is only available with the subscribed version.
One more option would be to change your Oracle source query to fetch only the newly inserted records from the table and let Talend do the rest.