So our source .csv file has a data column with text in it for some of the data records and we are using aDerived Column SSIS Entity tool to transform the provided data to an Integer data column so that we can then pump the data to our SQL Server Table and this particular data column is defined as INTEGER, NOT NULL. Almost all of the records has a number in this data column. There are exceptions though which actually have text in there.
The Expression in our Derived Column entity is...
(DT_I4)[Reference Notes Line 2]
We have also configured an Error Output for this Derived Column entity and when there is text in the data column "APPEARS AS SO", we were hoping it would flow to the error component, a differentDerived Column cell and hard-code the data column to 0s.
Derived Column Name = PackageID
Derived Column = <add as new column>
Expression = 000000
Data Type = four-byte signed integer [DT_I4]
All of this is not working. It fails on the conversion even though we're trying to put hard-coded 0s in that data column.
Can someone help us out here?
Thanks for your review and am hopeful for a quick reply.