Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SSIS does not recognize CRLF as the en of line

$
0
0

Hi all,

I'm having a strange behavior here, or maybe I'm doing something wrong, I'm not sure.

 

Anyway, I have a csv file, the Flat File Connection Manager is configured like this:
Row delimiter: {CR}{LF}
Column delimiter: {;}

For some rows in my file the last two columns are empty and the there is no semicolon for these empty rows but these rows are still ended by a CRLF but SSIS does not consider the CRLF as the end of the row, it consider the first 2 columns of the next row as the last 2 columns of the current row.

Sample:

CSV file:
Col 1;Col 2;Col 3;Col 4;Col 5
AAAA;BBB;CCC;;
AAA1;BBB1;CCC1;;
AAA2;BBB2;CCC2
AAA3;BBB3;CCC3

Imported rows in SSIS:
Col 1      Col 2       Col 3    Col 4    Col 5
AAAA    BBB        CCC
AAA1    BBB1      CCC1
AAA2    BBB2      CCC2   AAA3   BBB3;CCC3

Any idea ?

Sébastien


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>