CSV fields max length error and setting quoting=csv.QUOTE_NONE
0
votes
2
answers
1299
views
After running
csvcut
on a comma-delimited .csv file:
[root@server files]# csvcut -c title,mpn,overview,techspecs2,image_carousel_elargesrc syn_multi-image.csv > syn_scraped_cut.csv
I get the error:
> CSV contains fields longer than maximum length of 131072 characters.
> Try raising the maximum with the field_size_limit parameter, or try
> setting quoting=csv.QUOTE_NONE.
Though large, I can tell you for sure that my longest field is only 65535 characters long, which is under the maximum allowed length by a pretty safe margin.
I have no idea what setting quoting=csv.QUOTE_NONE
refers to. I have only been using simple csvkit commands and that is all I know.
Reading similar threads and answers such as [here](https://stackoverflow.com/questions/15063936/csv-error-field-larger-than-field-limit-131072) and [here](https://stackoverflow.com/a/18408911/9095603) , I am unable to extract any kind of solution in the context of csvkit, specifically. I'm not adept at programming in general and am limited to using csvkit, its commands and options.
How do I fix this error?
Asked by ptrcao
(5995 rep)
Jul 25, 2019, 11:14 PM
Last activity: Dec 17, 2023, 10:32 PM
Last activity: Dec 17, 2023, 10:32 PM