I am working on a file with about 30K rows and has to be saved as a CSV file. When saved and opened up in NOTEPAD, the file has rows (starting with H) that have double commas (,,) at the end of the line while the others (start with D) are fine. The H rows are 2 columns less than the D rows. The added commas renders the file useless when imported into the application that needs it.
Below are screenshots of the Excel file and the CSV file opened in Notepad:
[TABLE="width: 636"]
<tbody>[TR]
[TD="width: 72, bgcolor: transparent"]H
[/TD]
[TD="width: 235, bgcolor: transparent"]UNASSIGNED
[/TD]
[TD="width: 72, bgcolor: transparent"]Direct
[/TD]
[TD="width: 72, bgcolor: transparent"]0
[/TD]
[TD="width: 72, bgcolor: transparent"]BOTH
[/TD]
[TD="width: 72, bgcolor: transparent"]BOTH
[/TD]
[TD="width: 109, bgcolor: transparent"]DISPATCH #2
[/TD]
[TD="width: 72, bgcolor: transparent"][/TD]
[TD="width: 72, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]H
[/TD]
[TD="bgcolor: transparent"]NO READ
[/TD]
[TD="bgcolor: transparent"]Direct
[/TD]
[TD="bgcolor: transparent"]0
[/TD]
[TD="bgcolor: transparent"]BOTH
[/TD]
[TD="bgcolor: transparent"]BOTH
[/TD]
[TD="bgcolor: transparent"]DISPATCH #2
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]H
[/TD]
[TD="bgcolor: transparent"]STD Super Sort Letters to LCTS 1
[/TD]
[TD="bgcolor: transparent"]Direct
[/TD]
[TD="bgcolor: transparent"]0
[/TD]
[TD="bgcolor: transparent"]TRAY
[/TD]
[TD="bgcolor: transparent"]BOTH
[/TD]
[TD="bgcolor: transparent"]LCTS #1
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]D
[/TD]
[TD="bgcolor: transparent"]1
[/TD]
[TD="bgcolor: transparent"]1
[/TD]
[TD="bgcolor: transparent"]780
[/TD]
[TD="bgcolor: transparent"]780
[/TD]
[TD="bgcolor: transparent"]0
[/TD]
[TD="bgcolor: transparent"]9
[/TD]
[TD="bgcolor: transparent"]0
[/TD]
[TD="bgcolor: transparent"]9
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]D
[/TD]
[TD="bgcolor: transparent"]2
[/TD]
[TD="bgcolor: transparent"]2
[/TD]
[TD="bgcolor: transparent"]780
[/TD]
[TD="bgcolor: transparent"]780
[/TD]
[TD="bgcolor: transparent"]0
[/TD]
[TD="bgcolor: transparent"]9
[/TD]
[TD="bgcolor: transparent"]0
[/TD]
[TD="bgcolor: transparent"]9
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]D
[/TD]
[TD="bgcolor: transparent"]18900
[/TD]
[TD="bgcolor: transparent"]18900
[/TD]
[TD="bgcolor: transparent"]0
[/TD]
[TD="bgcolor: transparent"]0
[/TD]
[TD="bgcolor: transparent"]0
[/TD]
[TD="bgcolor: transparent"]9
[/TD]
[TD="bgcolor: transparent"]0
[/TD]
[TD="bgcolor: transparent"]9
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]D
[/TD]
[TD="bgcolor: transparent"]18900
[/TD]
[TD="bgcolor: transparent"]18900
[/TD]
[TD="bgcolor: transparent"]171
[/TD]
[TD="bgcolor: transparent"]171
[/TD]
[TD="bgcolor: transparent"]0
[/TD]
[TD="bgcolor: transparent"]9
[/TD]
[TD="bgcolor: transparent"]0
[/TD]
[TD="bgcolor: transparent"]9
[/TD]
[/TR]
</tbody>[/TABLE]
H,UNASSIGNED,Direct,0,BOTH,BOTH,DISPATCH #2 ,,
H,NO READ,Direct,0,BOTH,BOTH,DISPATCH #2 ,,
H,STD Super Sort Letters to LCTS 1,Direct,0,TRAY,BOTH,LCTS #1 ,,
D,1,1,780,780,0,9,0,9
D,2,2,780,780,0,9,0,9
D,18900,18900,0,0,0,9,0,9
D,18900,18900,171,171,0,9,0,9
D,18900,18900,504,504,0,9,0,9
Below are screenshots of the Excel file and the CSV file opened in Notepad:
[TABLE="width: 636"]
<tbody>[TR]
[TD="width: 72, bgcolor: transparent"]H
[/TD]
[TD="width: 235, bgcolor: transparent"]UNASSIGNED
[/TD]
[TD="width: 72, bgcolor: transparent"]Direct
[/TD]
[TD="width: 72, bgcolor: transparent"]0
[/TD]
[TD="width: 72, bgcolor: transparent"]BOTH
[/TD]
[TD="width: 72, bgcolor: transparent"]BOTH
[/TD]
[TD="width: 109, bgcolor: transparent"]DISPATCH #2
[/TD]
[TD="width: 72, bgcolor: transparent"][/TD]
[TD="width: 72, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]H
[/TD]
[TD="bgcolor: transparent"]NO READ
[/TD]
[TD="bgcolor: transparent"]Direct
[/TD]
[TD="bgcolor: transparent"]0
[/TD]
[TD="bgcolor: transparent"]BOTH
[/TD]
[TD="bgcolor: transparent"]BOTH
[/TD]
[TD="bgcolor: transparent"]DISPATCH #2
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]H
[/TD]
[TD="bgcolor: transparent"]STD Super Sort Letters to LCTS 1
[/TD]
[TD="bgcolor: transparent"]Direct
[/TD]
[TD="bgcolor: transparent"]0
[/TD]
[TD="bgcolor: transparent"]TRAY
[/TD]
[TD="bgcolor: transparent"]BOTH
[/TD]
[TD="bgcolor: transparent"]LCTS #1
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]D
[/TD]
[TD="bgcolor: transparent"]1
[/TD]
[TD="bgcolor: transparent"]1
[/TD]
[TD="bgcolor: transparent"]780
[/TD]
[TD="bgcolor: transparent"]780
[/TD]
[TD="bgcolor: transparent"]0
[/TD]
[TD="bgcolor: transparent"]9
[/TD]
[TD="bgcolor: transparent"]0
[/TD]
[TD="bgcolor: transparent"]9
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]D
[/TD]
[TD="bgcolor: transparent"]2
[/TD]
[TD="bgcolor: transparent"]2
[/TD]
[TD="bgcolor: transparent"]780
[/TD]
[TD="bgcolor: transparent"]780
[/TD]
[TD="bgcolor: transparent"]0
[/TD]
[TD="bgcolor: transparent"]9
[/TD]
[TD="bgcolor: transparent"]0
[/TD]
[TD="bgcolor: transparent"]9
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]D
[/TD]
[TD="bgcolor: transparent"]18900
[/TD]
[TD="bgcolor: transparent"]18900
[/TD]
[TD="bgcolor: transparent"]0
[/TD]
[TD="bgcolor: transparent"]0
[/TD]
[TD="bgcolor: transparent"]0
[/TD]
[TD="bgcolor: transparent"]9
[/TD]
[TD="bgcolor: transparent"]0
[/TD]
[TD="bgcolor: transparent"]9
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]D
[/TD]
[TD="bgcolor: transparent"]18900
[/TD]
[TD="bgcolor: transparent"]18900
[/TD]
[TD="bgcolor: transparent"]171
[/TD]
[TD="bgcolor: transparent"]171
[/TD]
[TD="bgcolor: transparent"]0
[/TD]
[TD="bgcolor: transparent"]9
[/TD]
[TD="bgcolor: transparent"]0
[/TD]
[TD="bgcolor: transparent"]9
[/TD]
[/TR]
</tbody>[/TABLE]
H,UNASSIGNED,Direct,0,BOTH,BOTH,DISPATCH #2 ,,
H,NO READ,Direct,0,BOTH,BOTH,DISPATCH #2 ,,
H,STD Super Sort Letters to LCTS 1,Direct,0,TRAY,BOTH,LCTS #1 ,,
D,1,1,780,780,0,9,0,9
D,2,2,780,780,0,9,0,9
D,18900,18900,0,0,0,9,0,9
D,18900,18900,171,171,0,9,0,9
D,18900,18900,504,504,0,9,0,9
Last edited: