How to Fix Shopify Product CSV Import Errors and Formatting Mistakes
Start with a backup and a small test file, then match the import message to Shopify's current format and product rules.
Table of Contents
Fast CSV troubleshooting checklist:
- Download the current Shopify sample and compare the exact first-row headers, spelling, case, and whitespace.
- Save a backup before importing; test a small representative file before a large overwrite.
- Check UTF-8 encoding, comma delimiters, straight quotes, and balanced escaping for commas or quotes inside values.
- Validate product handles, variant option columns, required values, and public image URLs against the current Shopify documentation.
- Read the specific failed-row message and fix the source data; a generic CSV checker cannot verify every store-specific rule.
When Shopify rejects a product CSV, start with the exact error and row it identifies. Most failures come from file structure, product or variant relationships, field values, or an external resource such as an image. Shopify's product CSV troubleshooting guide maps common errors to likely causes; its format guide explains the current file requirements.
Protect the catalog before troubleshooting
Export the affected products or save a clean copy of the file before editing. Shopify says a product CSV import can't be canceled once started, and an overwrite can blank values when a non-required column is present but empty. A CSV import can also change variants or images when relationships are malformed. Read the current importing products guidance before choosing an overwrite option.
Reproduce the problem with a small file containing one affected product and its variants. Preserve the original error text, row numbers, and exact upload file. This makes it easier to distinguish a data defect from an issue introduced by a spreadsheet export. For large imports, Shopify recommends testing a small subset in a development store when that workflow is available.
Check Shopify product CSV headers and file structure
The first row should contain the column headers in the current Shopify product CSV format. Compare it directly with the official sample CSV and field guide; don't rely on an old template copied from a forum. Remove spaces accidentally added to header ends, confirm comma delimiters, and check that the exported file is actually CSV rather than an .xlsx workbook renamed with a .csv suffix.
Shopify's troubleshooting guide identifies a mismatched header as a cause of the “Network error: Unexpected token…” message. Its current documentation says headers are case-sensitive for that error. Older templates can have different field names and may remain compatible, so first compare against the version your store exported and the current guide rather than blindly renaming every column.
Also inspect delimiters and line endings. Some spreadsheet export settings use semicolons depending on locale. A text editor can confirm whether a row is comma-separated. Do not split or rebuild the file by hand if fields contain commas; use a CSV-aware editor or spreadsheet import/export with the correct delimiter.
Fix encoding and quoting errors
Shopify requires UTF-8 for product CSV imports. If accented characters, symbols, or non-Latin text become corrupted, reopen the source using the correct encoding and export as UTF-8. Shopify's CSV file guidance describes its CSV encoding requirements.
For “illegal quoting,” “missing or stray quote,” or broken rows, inspect values with commas, straight quotes, apostrophes, and line breaks. A comma inside a field should be enclosed according to CSV quoting rules; an embedded straight double quote is typically doubled inside a quoted field. Curly smart quotes are different characters and may be rejected by a parser. Avoid search-and-replace across the whole file if quotes are legitimate product copy; repair the affected field using a CSV-aware tool and export a test file.
Validate handles, variants, and dependent columns
A handle identifies the product grouping. Check for blank or duplicate handles, accidental trailing spaces, and variant rows attached to the wrong product. Shopify's common error list includes duplicate handles, product lines without a title, and non-unique variant options.
Variant fields depend on each other. If editing SKU, weight, or other variant data, include the required option name and value fields for the corresponding variant. Shopify warns that omitting option columns can create a default variant or remove existing variants, and changing option values can replace variant IDs. That can affect systems that rely on those IDs. Confirm the current format and your intended overwrite behavior before importing.
For inventory fields, check that tracker, quantity, and policy values are coherent. The error guide notes that a tracked inventory quantity cannot be blank or nonnumeric, and inventory policy values must use supported options. Multi-location inventory has its own CSV workflow; use Shopify's inventory CSV instructions rather than assuming product CSV fields update all locations.
Investigate image and category failures
Product image URLs must resolve to a publicly accessible image. Check for a missing protocol, private login-protected file, typo, expired link, or file that was deleted after export. Test the URL in a private browser window and ensure it returns the image rather than a page requiring authentication. Shopify's troubleshooting guidance lists invalid URLs and failed image downloads among import issues.
For product categories, compare the value with Shopify's current Standard Product Taxonomy identifier or breadcrumb format. Similar wording is not necessarily an accepted category value. For metafields or product references, check that namespace and key are valid and referenced products already exist where required.
Re-import carefully
Once you isolate the issue, save a corrected copy, review the row changes, and test the small file first. If the import will overwrite existing products, inspect blank optional columns and variant option fields as carefully as populated fields. After the test, check a product page, its variants, images, prices, inventory at the intended location, and any connected app behavior. Keep the clean backup until you have confirmed the result.
A file review can catch formatting mistakes, but Shopify validates the import against your store data and settings. After a successful import, the Bulk SKU Profit Auditor can review unit contribution from a separate, supported economics CSV. It does not validate product imports.
FAQs
Why does Shopify say my CSV headers are invalid?
Compare the first row with the current Shopify product CSV format and sample. Check exact names, capitalization where required, spaces at the end, delimiter settings, and whether the file was exported as a real comma-separated CSV.
How do I fix illegal quoting in a product CSV?
Save as UTF-8, locate the affected row, and check for an unmatched quote, curly quote, or comma and quote inside a text value. Repair the field with a CSV-aware editor, then export and test a small file.
Can a Shopify product CSV update inventory at multiple locations?
Use Shopify's inventory CSV process for location-specific inventory changes. Product CSV inventory fields have limitations, including single-location behavior for the sample quantity column.
Can I undo a product CSV import?
Do not assume an import can be canceled or automatically rolled back. Keep an export or backup before importing and inspect Shopify's current import guidance, especially when overwriting matching products.