Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Data Conversion Issue in SSIS package - Text to GUID

I am developing a SSIS package that will open an Excel spreadsheet and import the data into a database table in SQL Server 2008. When I try to convert the Excel column data type: Unicode String [DT_WSTR] to a unique identifier data type: unique identifier [DT_GUID], I get the following error:

"Invalid character value for cast specification"

What do I need to do to resolve the conversion error?

like image 254
Michael Kniskern Avatar asked Nov 01 '25 06:11

Michael Kniskern


1 Answers

I used a Derived Column Transformation Editor and to wrap the excel column value in squrly brackets {} in order for the SSIS package to properly convert the Unicode String into a GUID.

like image 138
Michael Kniskern Avatar answered Nov 04 '25 07:11

Michael Kniskern



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!