Change capture stage insert issue

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
dspxlearn
Premium Member
Premium Member
Posts: 291
Joined: Sat Sep 10, 2005 1:26 am

Change capture stage insert issue

Post by dspxlearn »

Hi,

I came across a scenario while doing the delta between previous data and current data. In previous data, i just have one record and in my current data, i have an updated record and a copy of the record which is already there is previous data.

When, i do a delta, i should get only one update. But, i am getting one insert as well.

Seems, the update record on current data is matching with the only existing record on previous record and getting the change code as 3(which is update). The other copy record form the current record is not finding a record on the previous data and so, it is coming as an insert with change code 1.

Could anyone help me how this situation to be handled?
Thanks and Regards!!
dspxlearn
richdhan
Premium Member
Premium Member
Posts: 364
Joined: Thu Feb 12, 2004 12:24 am

Post by richdhan »

Hi,

Did you check the link ordering in the CDC stage. The source should be the after link.

HTH
--Rich
Kryt0n
Participant
Posts: 584
Joined: Wed Jun 22, 2005 7:28 pm

Post by Kryt0n »

Would have to be the correct link otherwise the output would be a delete rather than insert...

Try on a single node or ensure you partition by the key
Post Reply