Hi,
I am using the SCD stage to update a dimension. I have a date field (active_start_date) which I have defined as a type 2 field. Most of the time, this field is null. My columns going into and out of the SCD stage allow nulls. I beleive what is happening is that DS is trying to compare a NULL value with a NULL value to determine if something has changed and it doesn't like it.
I cannot very well flip NULL values to a "special code" as the SCD output link needs to go directly to a database stage so that the metadata (whether to update a field, or insert a new record, etc ...) is interpreted correctly.
Any help?
Null values getting dropped by SCD Stage
Moderators: chulett, rschirm, roy
-
pierre.nelson@hotmail.com
- Participant
- Posts: 4
- Joined: Fri Apr 27, 2007 3:25 pm
Null values getting dropped by SCD Stage
Pierre Nelson
-
vmcburney
- Participant
- Posts: 3593
- Joined: Thu Jan 23, 2003 5:25 pm
- Location: Australia, Melbourne
- Contact:
Does this field ever change? Seems like the type of field that gets locked in once the source record is created and is not in fact a slowly changing field. You might be able to switch the field over to the type that doesn't get compared.
Certus Solutions
Blog: Tooling Around in the InfoSphere
Twitter: @vmcburney
LinkedIn:Vincent McBurney LinkedIn
Blog: Tooling Around in the InfoSphere
Twitter: @vmcburney
LinkedIn:Vincent McBurney LinkedIn
-
pierre.nelson@hotmail.com
- Participant
- Posts: 4
- Joined: Fri Apr 27, 2007 3:25 pm
-
pierre.nelson@hotmail.com
- Participant
- Posts: 4
- Joined: Fri Apr 27, 2007 3:25 pm
Just for kicks, I modified my SQL (for the source) so that there was a non-null value for each record coming accross.
First run - everything is fine
Second run - if some of the date values have been modified, I get the following on the output to the SCD ... the one that updates the dimension:
Updated_edwPLANNING_OBJECT,1: Failure during execution of operator logic.
Updated_edwPLANNING_OBJECT,1: Fatal Error: Invalid Julian day
No need to ask if the date is invalid - it's fine and it's coming from an Oracle DB.
First run - everything is fine
Second run - if some of the date values have been modified, I get the following on the output to the SCD ... the one that updates the dimension:
Updated_edwPLANNING_OBJECT,1: Failure during execution of operator logic.
Updated_edwPLANNING_OBJECT,1: Fatal Error: Invalid Julian day
No need to ask if the date is invalid - it's fine and it's coming from an Oracle DB.
Pierre Nelson
-
pierre.nelson@hotmail.com
- Participant
- Posts: 4
- Joined: Fri Apr 27, 2007 3:25 pm