I
IgorM
Hi
I have a problem with importing a CSV file using Microsoft Text Driver.
Here is the example of the file format:
1,2005-01-11,"53000020","ZAKU","Szkol-72/05",290,00,0,00,"PLN"
The issue I have is with the line:
1,2005-01-18,"53000059","ZAKU",""Bilans04"-73/05",325,00,0,00
As you can see there are double quotes befor 'Bilans'. The row gets imported
to 'ZAKU' column and no further items in the row are imported.
I tried to import the file using MS Excel and Acces and they imported
correctly:
1 2005-01-18 53000059 ZAKU Bilans04"-73/05" 325 00 0 00
These are the schema file settings I use for the file:
textSource = "[" + Path.GetFileName(filepath) + "]";
colNameHeader = "ColNameHeader=False";
format = "Format=CSVDelimited";
maxScanRows = "MaxScanRows=500";
characterSet = "CharacterSet=ANSI";
decimalSymbol = "DecimalSymbol=.";
What do I do wrong? Can the file be imported correctly using Microsoft Text
Driver?
Kind Regards
Igor
I have a problem with importing a CSV file using Microsoft Text Driver.
Here is the example of the file format:
1,2005-01-11,"53000020","ZAKU","Szkol-72/05",290,00,0,00,"PLN"
The issue I have is with the line:
1,2005-01-18,"53000059","ZAKU",""Bilans04"-73/05",325,00,0,00
As you can see there are double quotes befor 'Bilans'. The row gets imported
to 'ZAKU' column and no further items in the row are imported.
I tried to import the file using MS Excel and Acces and they imported
correctly:
1 2005-01-18 53000059 ZAKU Bilans04"-73/05" 325 00 0 00
These are the schema file settings I use for the file:
textSource = "[" + Path.GetFileName(filepath) + "]";
colNameHeader = "ColNameHeader=False";
format = "Format=CSVDelimited";
maxScanRows = "MaxScanRows=500";
characterSet = "CharacterSet=ANSI";
decimalSymbol = "DecimalSymbol=.";
What do I do wrong? Can the file be imported correctly using Microsoft Text
Driver?
Kind Regards
Igor