Search code examples
excelssisoledboledataflowtask

OLE DB Source to Excel Destination - Process is Stuck


I have the following Data Flow Task setup (see image).

It takes the correct amount of rows from the OLE DB Source and passes everything through the Data Conversion item. However, the process then gets stuck on 10,104 out of the 29,379 rows at the Sort and Excel Destination item (I'm sorting alphabetically by one column only).

Why is it getting stuck and what can I do to move it out of this rut?

Thanks

Data Flow Task SQL DB to Excel Destination


Solution

  • The issue was that when inserting into an Excel Data Source the maximum size for each column is 255 but the size of the values from the mapped SQL Server column was on average greater than 700.

    So it was necessary to set the maximum size in the Data Conversion to 255 (of the large column) to correspond to the Excel maximum column size. SSIS naturally truncates the column.