Hi everyone,
I'm running into an issue when importing a CSV file into Stata. I get the following error:
Here’s my current syntax:
I tried increasing maxquotedrows() as suggested, but the problem still persists — sometimes the file imports, sometimes it doesn't. I suspect the issue is due to improperly formatted quotes within certain cells.
What I want to achieve:
Thanks in advance for your help!
I'm running into an issue when importing a CSV file into Stata. I get the following error:
Code:
Unmatched quote exceeded 8 lines while processing row 1468; there may be a problem with your data or perhaps you have a quoted string with too many lines. You may specify maxquotedrows() to override the default behavior.
Code:
import delimited "filepath\filename.csv", delimiter(comma) bindquote(strict) varnames(1) stripquote(yes) encoding(UTF-8) maxquotedrows(8)
I tried increasing maxquotedrows() as suggested, but the problem still persists — sometimes the file imports, sometimes it doesn't. I suspect the issue is due to improperly formatted quotes within certain cells.
What I want to achieve:
- Keep the comma (,) as the delimiter.
- Completely ignore double quotes (") (even more if they are mismatched).
Thanks in advance for your help!
Comment