Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
santhosh_saraf
Contributor
Contributor

Setting a Key for Dynamic schema

Hi,

I have a scenario to insert and update database target tables using Dynamic schema. I have tried with Java methods available for Dynamic schema. I can able to define column structures and assign them values, but not the keys. And, db output component is failing with error: “Key must be defined to update”

Please suggest your thoughts.

Labels (2)
1 Reply
David_Beaty
Creator III
Creator III

Hi,

I think that rather than a single Dynamic Schema column, you can define one column (the primary key) and then the additional Dynamic Schema column (minus) the Primary key column. Then you can define it as the the Key and the Insert/Update should work as expected.

 

Thanks

 

David