Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Exception catch and reverting changes for excel source file

Dear Friends,

My source file is an excel file and I am loading this to talend and had generated BatchIds for every files.

My requirement is below:

Suppose some expression in tmap is running .... and at that time if any invalid data entry comes in to the source file then, I need to stop the execution in between and need to revert all changes for that particular batch id.
For this, I did a tcatch component but...it only catches the exception.

How can I revert /delete all changes for that particular batch id exception in talend??
My source file is an excel file.

Please help me....very urgent  0683p000009MPcz.png

Labels (2)
1 Reply
DataTeam1
Creator
Creator

You can create stage level compnent When you will insert rows for the particular batch id and if everything is OK you can transfer it from stage to target component (file od db Output). In this case you don't need to revert all changes from the target component when something goes wrong.

 

As a stage component you can use:

tHashInput

tHashOutput

 

To see it in your pallete read this: https://community.talend.com/t5/Migration-Configuration-and/Where-are-the-tHashInput-and-tHashOutput...