SSIS - Excel destination does not allow characters more than 255 My SSIS package has a ado.net source, which returns columns with width more than 2000 characters,but those columns get truncated when redirected output to excel destination.

Any idea, how to resolve this problem..?

I am using excel 2007, as excel destination.
SSIS Excel Data Source: 


  Error with output column “Comments” (5691) on output “Excel Source
  Output” (5596).


The column status returned was: 


  “Text was truncated or one or more characters had no match in the
  target code page.”


Reason for this error:


The error is due to the lengthy data in the excel.
SSIS has an inbuilt logic to scan the data in the spread sheet. It will scan the first 8 rows and based on that it will written a logic to build the table's logic for the package. If your lengthy data in not in the 8 row then your ssis wont respond it.


Considering am having a column named "Name"
First 8 rows is of length &lt;255
9th row is of length > 255.
While executing the package you will get the above error, its because your input value will be truncated and SSIS wont allow for that. In this case,
Two types of logics can be followed,

Option1 : Its tricky one, just copy the 9th row to the top (may be as 1 row).Now try to create your package using import/export wizard. Your ssis will create column with width nvarchar(Max) which will accept upto 2 GB.

Option2: Change the Preparation SQL task query, change the data type as varchar(Max) and modify the excel source ->advanced editor and change the output columns type and length and external column type and length.

Please read the blog