Monday, July 3, 2017

SSIS Derived Column Cannot Convert Between Unicode and Non-Unicode String Data Types

In this blog, we will discuss about Data type Conversion Issue in SSIS Package for derived Column. recently while designing of SSIS package for migrating  data from legacy system to new system I did a lot of data transformation regarding data type conversion, and concatenate of multiple columns.

I used derived column component for data type conversion or concatenate of two columns value and while concatenating of two column I got data type conversion error.  

SSIS : Column ‘XXX’ Cannot convert between Unicode and non-unicode string data types

SSIS : Column ‘XXX’ Cannot convert between Unicode and non-unicode string data types

I  performed below steps to resolve this data type conversion issue without explicitly data type conversion :


  1. Open the ‘Show Advanced Editor’ of derived column component
  2. Click on “Input and Output Properties”  à  “Derived Column Output” à Output Column  à
  3. Set Data Type property of derived Column à DT_STR


SSIS  Derived Column  - Advanced Editor


After above changes, SSIS package successfully loaded data.

SSIS Package - Data Load



Thanks for visiting !!  

No comments:

SQL Server - Identify unused indexes

 In this blog, we learn about the index usage information (SYS.DM_DB_INDEX_USAGE_STATS) and analyze the index usage data (USER_SEEKS, USER_S...