Hi All,
I have a Derived Column transform inside a Data Flow that is used to convert data to a database timestamp data type. My source is a flat file with a column of data that represents a date of birth as YYYYMMDD (ex: 19820131).
I have a derived column that converts this into a format acceptible to load into SQL server by doing the following:
SUBSTRING(DOB,5,2) + "/" + SUBSTRING(DOB,7,2) + "/" + SUBSTRING(DOB,1,4)
I save it as a new column DOB_Clean with a data type database timestamp.
This works fine for the most part. However, occasionally bad data comes in that column, such as text. Yet instead of erroring out like i'd expect with a data conversion error, SQL Server just "hangs" on the derived column transform and appears to be in progress (remains yellow). I never get an error, which is causing issues as I am not notified there is an issue, everything looks like it's ok, etc. But at the same time, the package never progresses.
Has anyone run into a similar issue or have a suggestion on how this can be resolved? Is there perhaps a better way to do the conversion to a database timestamp type than what I'm doing above? Any help would be greatly appreciated.
Thanks!