SSIS Flat File connection manager is expecting an equal number of columns in each line.
With the high level description you provided, you will need to either preprocess or post process the file.
Pre Process... Make all the rows uniform.
Post process... Change the connection manager to import each row as one string (i.e. set the column delimeter to {CR}{LF} and adjust the column width to a large enough size not to truncate any given row.) Depending on the row of data, you can then transform the row using a Derive Column or Script Component. Or, you could import the file into a stage table and T-SQL/.NET transform the row.
Good Luck!
Adam Gossage
Lake Wylie, SC, USA
|