Hello!
While loading a table I got an error ; "Invalid character value for cast specification", and "Conversion failed because the data value overflowed the specified type." I understand that this could be as a result of null or blank in the table. and therefore decided to transform it with a Derived Column transform. But my expression on Date data type (Datetime) types are giving issues. I am loading into another table columns with Datetime into and another column with Smalldatetime and a Float column into another Float column
Below is my expression in my Derived Column:
AppointmentTime Replace 'AppointmentTime' (ISNULL( [AppointmentTime] )? "0.00" : AppointmentTime double-precision float [DT_R8]
AppointmentDate Replace 'AppointmentDate' ISNULL( [AppointmentDate] )? " " : AppointmentDate database timestamp [DT_DBTIMESTAMP]
Now the issue is the expression is throwing error from both the Float and the Datetime columns.
How do I write the expression better. I am pretty sure I can load a Datetime column into a Smalldatetime
Your help is much appreciated.
Thank you!
Zionlite