I have a look up transformation and update strategy transofrmation.
I am trying to update the row in the target table if the row exists otherswise insert the row.
When i run the workflow, my target table successfully updates rows( which have matching source id's).However for the inserts( ie for the new rows in source ) it does the following.
1) Everytime i run the workflow,it inserts the amount but leaves the ID column blank.
eg
Before Worklfow
Source
ID Amt
1 100
2 100
Target
ID(PK) Amt
1 200
After Worklow is run
Target
ID(PK) Amt
1 100
100
2) When i run the worklow again,it inserts the same row or rows again,with id columns Null.
Target
ID Amt
1 100
100
100
In other words,My updates are happening correctly but Inserts are not.
I used Data Driven option,Checked the INSERT and Update else Insert boxes in session configuration.
My update Strategy expression looks like this
IIF(ISNULL(Target_ID),DD_INSERT,DD_UPDATE)
Do i need to have a seq generator transformation after Update to populate target Id columns?