Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Abort job on duplicates and not update output file

Hi,

I have the below logic to be built in talend.

I have a file that is updated on monthly basics. There are 4 fields that need to be unique. if a duplicate entry is found for these 4 fields, the load to output file should not occur.and it should throw an error.

I tried to do this by using below logic.0683p000009M0Wa.png

so once the input file is loaded, the tsortrow and the tuniquerow will check for unique values. if there are duplicates the job will throw error(which it does).but the uniquevalue csv output file should not be updated in case of any error. It should only get updated, if there is no error (or duplicate record). 

How should i do it? i tried to on component ok, but it doesnt give me that option.

Labels (2)
2 Replies
Anonymous
Not applicable
Author

Hello,

Please your job requirement description, the "RunIf" trigger would be helpful for you. It can trigger a subjob or component in case the condition defined is met.

To make it clear, I have designed a demo job for you. Hope it helps.

0683p000009M0go.png

Best regards

Sabrina

Anonymous
Not applicable
Author

@kavh

 

     I believe this is a duplicate post of the same scenario mentioned in your another post (link below)

 

https://community.talend.com/t5/Design-and-Development/abort-job-when-duplicates-are-found/m-p/13825...

 

     Could you please mark both topics as resolved since solution has been provided for both of them? It will help to enrich the Talend community and if another community member is getting similar issue, he/she can easily go to a post which has a solution available.

 

     Happy programming in Talend 🙂

 

Warm Regards,

 

Nikhil Thampi