I'm importing csv files in ssis that are in a ragged right format, I've been able to create the columns perfectly fine but for some of the data rows it has included a " text qualifier into the data in the first column which makes the character count of each column out sync and pushes some characters over to the next columns, the " text qualifier is also found in the last column of the same row by itself instead of the value being blank. These " text qualifiers are also not found in the original csv file, the flat file connection manager also does not let you use the text qualifier option when working with ragged right so i can't take them out that way.
Importing csv file with ragged right format and ” text qualifier
csvssis
Related Question
- SSIS Package – Error Exporting Data to Flat File – Invalid Character
- Import CSV to MySQL – Handling Long Text Fields with Line Breaks
- Sql-server – problems when importing csv files into SQL Server using SSIS when the columns are not consistent from quarter to quarter
- SSIS – Fixed Width Flat File Mapping Tool/Technique
- Sql-server – Line-breaks in Text column of CSV file
- SSIS flat file import – Issue with datetime format
Best Answer
The options I can think of are.
The second option is more "correct" as your etl will be prepared to report on non-compliant rows. You can expand on your regular expression to make it more specific.