. Advertisement .
..3..
. Advertisement .
..4..
Hi guys,
I am seeing the error ”text was truncated or one or more characters had no match in the target code page” for some of the mapped columns in the SQL Server 2012, SSIS package:
Error: Text was truncated or one or more characters had no match in the target code page
I am obtaining the data from the CSV file and dumping it into the SQL server 2012 staging database.
Could someone kindly offer advice on how to fix this error or issue? It is urgent!
The cause: That happens when we attempt to insert string data (varchar, nvarchar, char, and nchar) into columns that are larger than the column’s size.
Solution: You can fix this error by creating an XLSX file and importing. It accurately detected the data type instead of setting all columns as varchar(50) . Turns out nvarchar(255) for that column would have done it too.