Skip to content

Strip quotes from tab-separated report fields - #1992

Closed
helpcodeai wants to merge 2 commits into
mainfrom
fix/tsv-quoted-fields
Closed

helpcodeai wants to merge 2 commits into
mainfrom
fix/tsv-quoted-fields

Conversation

@helpcodeai

Copy link
Copy Markdown
Contributor

Summary

amazon_seller_download_report_document refused a filter on a column that was in the file: Column "FNSKU" is not in this file. Columns: "Date", "FNSKU", … (3 times on Cloud since 12-03, one workspace). Some Amazon reports, like the FBA inventory ledger, wrap every tab-separated field in double quotes. parseDelimited() split tab lines with a plain split('\t') and kept the quotes, so neither the column names nor the filter values matched. A tab field wrapped in double quotes now loses them, and "" inside becomes ". Unquoted fields (a 12" inside a title) are left as they are.

Same behaviour in Cloud and self-hosted.

Changes

  • download-follow.util.ts: unquoteTabField() applied to every field of a tab-separated line.
  • download-follow.util.spec.ts: a quoted report filtered by FNSKU, and the unquoting rules.

Type

  • Bug fix

Testing

  • Added/updated unit tests
  • npx jest src/connectors/engines/download-follow.util.spec.ts in packages/backend: 14/14.
  • npx eslint on both files: clean. Full backend suite runs in CI.

Checklist

  • My code follows the existing code style
  • This PR has a descriptive title

@helpcodeai helpcodeai mentioned this pull request Dec 5, 2026
5 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant