Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
DM2017
Contributor II
Contributor II

unable to update field from one table to another

Hi,

I am trying to update one field(serverslno) in a table  from another table (which is key column primary key of the table) based on a join condition, but it's not working.

I have a table actor inserting data to actor_new

tmysqlinput(actor) >> tmap>>tmysqloutput(actor_new) >>tmap>>tmysqlout(actor)

ID genrated in actor_new should go to one column called serverslno in actor. first insert is working fine but update not working.

0683p000009LsWk.jpg0683p000009LsUa.jpg0683p000009LsWz.jpg0683p000009LsX4.jpg0683p000009LsLF.jpg

Screenshots attached. 

Please help. 

Labels (2)
1 Solution

Accepted Solutions
TRF
Champion II
Champion II

Hi,
Does this help?
If so thank's to mark your case as solved.

View solution in original post

6 Replies
TRF
Champion II
Champion II

Hi,

actor_id of "rr" flow must be populated in the tMap as it is the update key for the update.

manodwhb
Champion II
Champion II

in tMap,you have not mapped the Key column(that is input column for actor_id).

TRF
Champion II
Champion II

@manodwhb, what is the added value compared to the previous answer?

DM2017
Contributor II
Contributor II
Author

@TRF I understood. But this is not that case, here I want to update serverslno of actor with key column of actor_new. Previously it was a look up. but this is straight forward.

TRF
Champion II
Champion II

actor_id field is ticked as the Update Key for the update operation so it cannot be null.

As it is not mapped in the preceding tMap it is null so you need to add it.

TRF
Champion II
Champion II

Hi,
Does this help?
If so thank's to mark your case as solved.