You can write a script task using C # to iterate over each line and overlay it on the desired number of commas to unload the data. This assumes, of course, that all data is aligned with the corresponding columns.
those. when you read each entry, you can "count" the number of commas. Then simply add X the number of commas to the end of the entry until it has the correct number of commas.
Excel has encountered a problem causing this type of file to be created when converting to CSV.
If you can do it “manually”, the best way to solve it is to open the file in Excel, create a column for the “end” of the record and fill it to the end with 1 or another character.
Unpleasant, but can be a quick fix.
If you are unable to do this, you can do the same programmatically, as described above.
source share