SSIS Convert Between Unicode and Non-Unicode Error

后端 未结 8 1828
别跟我提以往
别跟我提以往 2020-12-24 04:52

I have an ssis package where I am using an OLEDB source linking to SQL Server 2005 table. All columns except a date column are NVARCHAR(255). I am using an Excel destination

相关标签:
8条回答
  • 2020-12-24 05:13

    On the above example I kept losing the values, I think that delaying the Validation will allow the new data types to be saved as part of the meta data.

    On the connection Manager for 'Excel Connection Manager' set the Delay Validation to False from the Properties.

    Then on the data flow Destination task for Excel set the ValidationExternalMetaData to False, again from the properties.

    This will now allow you to right click on the Excel Destination Task and go to Advanced Editor for Excel Destination --> far right tab - Input and Output Properties. In the External Columns folder section you will be able to now change the Data Types and Length values of the problematic columns and this can now be saved.

    Good Luck!

    0 讨论(0)
  • 2020-12-24 05:14

    I have been having the same issue and tried everything written here but it was still giving me the same error. Turned out to be NULL value in the column which I was trying to convert.

    Removing the NULL value solved my issue.

    Cheers, Ahmed

    0 讨论(0)
提交回复
热议问题