Skip to main content
Announcements
A fresh, new look for the Data Integration & Quality forums and navigation! Read more about what's changed.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Upsert using Action on data in the tDBOutPut component

Hi, 

I am new to Talend and am trying to achieve the following: 

I have a table which has a key value (auto generated). It receives a null value (for the auto generated values). My data also contains the ID value which is the business key. I want to create a job which will do an upsert according to the business key (the ID column). The insert part is working (it is not writing any records a record with the ID already exists) however the update part is not working. What do I need to do in order to make it update the values according to a business key? 

 

0683p000009LwsY.png0683p000009LxIQ.png0683p000009LwfP.png0683p000009LwoR.png

Labels (2)
3 Replies
vboppudi
Partner - Creator III

If Key attribute is auto generated value then remove that attribute from component and try to run job.

 

Regards,

Anonymous
Not applicable
Author

vboppudi great thanks! worked like magic!

 

Do I need to keep the key definitions on the Business key? 

vboppudi
Partner - Creator III

If you are updating any data in target table yes you need to keep key on business Key.

 

Regards,