I'm trying to import a flat file directly into one of our databases through the import and export wizard, but the source file has random breaks in it.
for example
Column 1 | column 2 | column 3 | column 4
is the way it should be structured
but the source file has problem areas where it randomly breaks a line like so
column input 1 | column input 2 |
(empty row)
column input 3 | column input 4 ...
Results
column input 1 | column input 2 | Blank | Blank column input 3 | column input 4 ...
And this is causing mostly everything to feed into the table incorrectly. I've seen some potential solutions to this by doing conditional splits, but not that can account for the fact that the breaks are not consistent in which column they would start on. The break could start on row 10 could start on row 352, and the source file is simply too big to fix this manually.
I'm also occasionally getting a data flow error where "The column delimiter for column 'CompensatingFactors' was not found."
- I've tried fixing with conditional split in SSIS
- Adjusting the type of LF / CRLF
- Adjusting the Code Page from 65001 to 1252
- My boss keeps suggesting changing the variable types, but this hasn't helped