on 11-21-2017 7:44 AM
Map_Operation should be used together with "table compare transform" where after "table compare" rows will be flag as insert, delete, update and you can use Map_Operation to update the target table according to your business requirements. For example, you only care about the delete data, then for other type, you can choose "ignore".
Map_Operation and "table compare" are used as "CDC", you can use "table compare" to compare if there is any change for the source and load to target.
In your case now, since there is no "table compare" used, so all the rows are flag as "normal", according to your settings here, there is no action in target.
Best regards
Helen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
WHat is the your update criteria? you want to update all records or you want to update only few records after lookup?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
7.jpgAccording to my requirement, I have to perform INSERT,UPDATE,DELETE without using table comparison transform.Hence I have taken one dataflow for each operation as shown in the below pic:
I have to perform the above operations based on the column "last update date", hence I have written a script for picking the max(last update date) as shown in the below pic:
CASE 1:
I am inserting a value in the target table just by using lookup function :
In the next step I am using a case transform to filter my insert case
Similarly I am trying to update a record by specifying the below case :
Here wherever my flag value is not equal to '0' states that the "EMP_ID" is present in the table but this needs to be updated according to the source hence in the next step I am using a map operation transform:
But I am unable to update the record as mentioned in the main question.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Usually the MAP operation needs record flagged with normal, update, insert or delete. so unless you use a table comparison the system cannot identify whether it is a update record or normal record.
In your case, you used the Query transform as the source for your Map Operation, query transform output records have the normal flag since all data are flagged as normal and you are discarding the normal flagged data the changes are not reflected in your target table.
You have to use the table comparison to find and flag the record types.
Regards,
Santhana.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I want to update only few records, for example,in the above case salary of "HARISH" is updated in the source but it is not getting reflected in the target.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.