SSIS - Excel data source not taking more characters than 255

Problem:

I have developed SSIS package that import multiple excel files into SQL. Now issue is "Excel data source" check first few rows for determine datatype and it took text data type with length 255 for my remarks column.
But in some files remarks is longer than 255 chars.
I checked some blogs they saying intentional put long text in first row for remarks then SSIS will determine datatype as Unicode text stream. That solved my problem but when other file comes to import datatype again changed to 255 chars and getting truncation error.
Please advise how to fix this issue.

Solution:

Inside the Data Flow Task, right click on the Excel Source component, got to Advanced Editor >> Input and Output Properties Tab, and change the column length manually in the External Columns and Output Columns as shown in the screenshot below.

enter image description here
enter image description here


Original post: https://stackoverflow.com/questions/57644766/in-ssis-excel-datasource-not-taking-more-characters-than-255/57651599#57651599

Comments

Popular posts from this blog

SSIS - Script Task error: Exception has been thrown by the target of an invocation.

Don’t install Hadoop on Windows!

SSIS - script component DateTime Formats Implicit Conversion