Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Parsing row issue #830

Open
1 task done
LiYiuShing opened this issue Jul 21, 2023 · 1 comment
Open
1 task done

[FEATURE] Parsing row issue #830

LiYiuShing opened this issue Jul 21, 2023 · 1 comment
Assignees

Comments

@LiYiuShing
Copy link

LiYiuShing commented Jul 21, 2023

Parsing or Formatting?

  • [] Formatting
  • Parsing

Hi, I'm trying to load my CSV into an array. However, it failed cause of Error: Parse Error: expected: '\|' OR new line got: 'S'. at 'SADDD" 00:. I knew the error is caused by ", but I don't know how to set the option to escape that.

This is one of my failed row:
"ABC"|"123"|"EFG- "SADDD" 00:10L"|" "|""|"Testing"|"testing2"|"testing3"|"testing4"

This is my csv option:

const CSV_OPTIONS = {
    objectMode: true,
    delimiter: "|",
    rowDelimiter: "\r\n",
    headers: true,
    strictColumnHandling: true,
    discardUnmappedColumns: true,
    renameHeaders: false,
    ignoreEmpty: true,
};
@MahbbRah
Copy link

I've hard also that issue as well as for data with commas. couldn't just parse it. so thus had to ditch the library and instead use papaParse stream now. it could parse everything and whatever you have on CSV.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants