in reply to CSV_XS ERROR: 2027 - EIQ - Quoted field not terminated @ pos 408
Considering that the error message is "Quoted field not terminated @ pos 408", I suspect that the data actually has embedded quotes. So the choking you're experiencing may just be the fact that some fields are much wider than expected. For example, consider the following CSV data:
Here we have three records, each with a string, a float, and an integer. If your code to parse the CSV file doesn't expect a quote to be escaped with a backslash, it may end the string prematurely, and likely choke when it tries to use "but does it work?" as a float. So check your data for unusual quoting situations, and check whether CSV_XS handles it in the way you expect. (You may have to change some settings...)"The file has three records", 14.0, 7 "Escape a quote with a backslash, like so: \", but does it work?", 18. +7, 4 "Joe Smith, Esq.", 19.4, 6
...roboticus
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CSV_XS ERROR: 2027 - EIQ - Quoted field not terminated @ pos 408
by mnooning (Beadle) on May 23, 2010 at 00:32 UTC |