Another SSIS Gotcha!

Here is another difference between DTS & SSIS that will trip you up if you are not expecting it.  The issue deals with loading flat files with varying numbers of columns.  For example the 1st row has 5 columns, then the 2d row has 3 columns, and then the 3d row has 4 columns.  DTS handled this by always looking for the row delimiter first, whereas SSIS expects to always have the same number of column delimiters in each row.  Here are some great posts that can explain this better than I can:

http://blogs.conchango.com/jamiethomson/archive/2006/07/14/SSIS-Nugget_3A00_-Extracting-data-from-unstructured-files.aspx

http://blogs.conchango.com/jamiethomson/archive/2007/05/15/SSIS_3A00_–Flat-File-Connection-Manager-issues.aspx

http://agilebi.com/cs/blogs/jwelch/archive/2007/05/08/handling-flat-files-with-varying-numbers-of-columns.aspx

3 Responses to Another SSIS Gotcha!
  1. Jamie Thomson
    October 16, 2008 | 8:37 am

    Thanks for the links Diane. very much appreciated.

  2. Mike
    June 10, 2010 | 1:33 pm

    Has this bug been fixed? I cant believe their Access and Excel products can handle this, their previous incarnation (DTS) could handle it, yet their 2005, 2008(?) and who knows (2010?) wont/cant? This was/is a major flaw.

  3. Diane McNurlan
    June 12, 2010 | 11:33 pm

    Mike,

    To my knowledge this bug has not been fixed.

    –Diane