Hi all,
I am seeing unexpected results when executing a SSIS package I've built. I pull data from 2 tables, merge it, run through a Script Component, and lastly separate the data using a Conditional Split. The data is not being touched, and the script component is very simple (see below).
The row count going into & coming from my Script Component remains constant. My conditional Split is simply a filter for items with value = null & those with value = "". However, when I execute the task multiple times the count for those two 'outputs' keeps changing.
My Script Component Is basically as follows: (This returns a consistent # of somethingIsNull = false)
MyClassType something = MyClassType.Create(InputRow.val1) InputRow.somethingIsNull = true; if(something != null) { InputRow.Val2 = something.Val2; InputRow.somethingIsNull = false; }
To my knowledge, anytime somethingIsNull = true, Val2 should be left unassigned (and I'd assume null).
My next step is a Conditional Statement.
If(InputRow.somethingIsNull) --> send to 2nd Conditional Statement (only exist for debugging purpose)
2nd Conditional Statement = If(IsNull(Val2)) send to grouping A,if(Val2 == "") send to grouping B.
Grouping A & B get different counts every run, but added together result in a consistent total.
So best I can tell when SomethingIsNull = true, Val2 is getting assigned inconsistently (something null, other times ""). But I don't see what would cause that to be assigned inconsistently?