I am building an SSIS package to load a flat file(CSV) to SQL server.
I am getting the below error when I try to insert into the column state_code
(char(2)) to the SQL server. If I change the destination datatype to Char(4), the package executes successfully.
I suspect this is the problem created due to the "NULL" in the CSV. The package is taking NULL as 4 characters and trying to insert into Destination(Char(2)).I googled a lot. But I didn't find any similar situation anywhere.
[Flat File Source [2]] Error: Data conversion failed. The data conversion for column "Column_1" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.".