Update not working in the job

Highlighted
Six Stars

Update not working in the job

Hi experts,

I have the above job, runs without error but not updating.

Capture2.JPGCapture3.JPGCapture4.JPGCapture.JPGCapture5.JPG

 

Please help.


Accepted Solutions
Highlighted
Moderator

Re: Update not working in the job

do not check Updatable for actor_id

Manohar B
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

View solution in original post


All Replies
Highlighted
Employee

Re: Update not working in the job

It appears that you haven't linked the actor_id from row1 to actor_id in ss. Effectively it's trying to do an update from the ss output with a blank key.

 

Try linking the two fields in the tMap and see the result.

Highlighted
Six Stars

Re: Update not working in the job

Hi,

 

Thanks for the reply, that's correct. Now I have a challenge. I need to lookup the table and update accordingly. How will be my design. I tried but not working.

 

tmysqlinput (table 1)>> lookup with  tmysqlinput(table 2) >> tmap >> tmysqloutput(table1)

Basically updating table1 based on record on changes in table 2 for matching rows.

 

Please help if any work around.

Highlighted
Moderator

Re: Update not working in the job

do not check Updatable for actor_id

Manohar B
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

View solution in original post

Highlighted
Employee

Re: Update not working in the job

For your 2nd problem, use tMySqlInput for table 2 and link directly to tMySqlOutput for table 1. This should only update the matching records in table 1 where the primary key is the same as in table 2. As in the previous post, make sure that actor_id is not update-able.
Highlighted
Six Stars

Re: Update not working in the job

Thanks a lot for putting the question!!!
Highlighted
Six Stars

Re: Update not working in the job

Thanks @manodwhb for the solution. It will be very hard for me to find out the solution without out your contribution. Thanks again for teaching something new.

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog