Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi devs,
Can someone please help me.
Right now i'm trying to build a job which basically is a custom SCD type 2 for a dimension table. I have my own reason why I'm not using SCD Component, so please stick with this method.
Almost everything looks to be okay, but I have 1 problem. There are two output which are my main concern [look at the picture], Exist_record_new and Exist_record_New_UpdatePrevious. [please don't mind about the weird naming]
Exist_record_new is the line for insert new updated attribute in dimension, and put the Active Flag = 1. The 'Action on Data' is Insert.
Exist_record_New_UpdatePrevious is the line for update the active flag become 0 and put the End Date for the record which has updated attribute. The 'Action on Data' is Update, with PrimaryKey.
The problem is, when the new updated attribute which contain with Active Flag = 1 inserted to the table with txxxOutput, at the same time the other txxxOutput update the active Flag become = 0.
Later in the table there will be 2 data for 1 same BranchID, for the new updated Attribute and old one, and both has Active = 0.
Question: Is there any specific way to set, let say, the UPDATE output RUN FIRST, and INSERT COMES AFTER.
So the new inserted one will not be overwritten by the update component.
Thanks in advance devs!!