Hello,
What the best way to check the column (in DerivedColum component) is NULL. If NULL => log error else continue with data flow.
Regards
Hello,
What the best way to check the column (in DerivedColum component) is NULL. If NULL => log error else continue with data flow.
Regards
This might help you partially.
Flowing the derived column control into a condional split control. To flow only non-nulls create a condition
!(ISNULL(COLUMN_NAME))
Then connect the conditional split back to your standard flow. This will flow the correct instances as your require.
The thing I can't quite figure out is the logging of this error. Maybe try creating a second condition:
(ISNULL(COLUMN_NAME))
And flow that into some dataflow task that will cause an error to be raised, not really elegant though. Or you could try flowing into another derived column that uses values in the row to form an output to some log file.
Place conditional split transformation before or after derived column transformation to remove rows with NULLs.
OR:
Dummy
variable with value -1
.ISNULL(myCol) ? (DT_I4)SQRT(@[User::Dummy]) : myCol
redirect row
on error.Note:
myCol
type; I have used DT_I4
.