Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to send only new ETL Error from database query

Hi every one,

 

i have query which give me information of ETL Error like this:

0683p000009LyjB.png

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!

Labels (2)
4 Replies
TRF
Champion II
Champion II

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

 

Anonymous
Not applicable
Author

Thankyou very much?
Can you please tell me what i need to do if i store the error on a table in database. How does it look like?.
Im beginner with talend.
iamabhishek
Creator III
Creator III

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.

TRF
Champion II
Champion II

Just add a tOracleOutput component after the tFileOutputDelimited to add new lines into your table.