Which cause is yours?
| What you observe | Likely cause |
|---|---|
| “Illegal quoting on line …” or “Missing or stray quote on line …” | 1. A quote in the wrong place or a curly quote |
| Unexpected characters or symbols in titles and descriptions after the import | 2. The file is not UTF-8 |
| “Network error: Unexpected token < in JSON at position 0”, “Invalid CSV header: missing headers” or a Choose column headings window | 3. Column headers that do not match |
| The import names a column it needs, or variants are replaced by one default variant | 4. A required column is missing |
| An error right after the upload, or the upload times out | 5. The file is over 15 MB |
| “Fulfillment service can't be blank”, “Inventory policy is not included in the list” and other row errors | 6. An empty or invalid value |
1. Quotes: “Illegal quoting” and “Missing or stray quote”
In a CSV, a value that contains a comma, a line break or a quote is enclosed in straight double quotes, and every quote inside it is written twice. Shopify Help gives three causes of these two errors:
- Curly quotes. Excel or another spreadsheet program can replace straight quotes (
") with typographic ones (“ ”). Replace them with straight quotes. - A missing or extra quote on the line the error names. Remove the stray quote, or enclose the value in quotes and double the quote inside it.
- A character that is not UTF-8. The file must be saved as UTF-8 (see 2).
URL handle,Title,Price
monitor-27,Monitor 27" screen,199.00URL handle,Title,Price
monitor-27,"Monitor 27"" screen",199.00| Record | URL handle | Title | Price |
|---|---|---|---|
| 1 | monitor-27 | Monitor 27" screen | 199.00 |
Record numbers exclude the header.
Fix:
- Open the CSV in a text editor that shows line numbers, such as Visual Studio Code or Sublime Text (Shopify Help names both for editing a CSV, Exporting products).
- Go to the line number from the error message. Shopify Help does not say whether it counts the header line, so look at the lines just before and after it too.
- Correct the quotes as above, or replace curly quotes with straight ones (search and replace, as Shopify Help suggests).
- Save the file as UTF-8 and import it again.
2. The file must be UTF-8, with commas between values
A CSV with UTF-8 encoding is the only file format Shopify imports and exports (Shopify Help). Unexpected characters or symbols in product titles and descriptions after an import can mean that the file was not saved as UTF-8. Google Sheets saves CSV files as UTF-8 by default; other spreadsheet programs can need an extra step (Shopify Help).
- Encoding: save the file again as UTF-8. In Excel, choose the file type CSV UTF-8. If only a few products are affected after an import, Shopify Help suggests correcting them by hand or importing an earlier, correctly saved file.
- Separator: each column must be separated by a comma. If you edit the file in Excel, check its export settings so that the file uses commas between values (Shopify Help).
- Line endings: Shopify Help asks for UTF-8 with LF line endings (the line break of Mac and Linux; Windows uses CRLF). In our test import, a file with Windows line endings and a byte order mark was accepted. The byte order mark (BOM) is three invisible bytes at the start of a file that Excel writes when it saves as CSV UTF-8.
CatalogDock refuses a file that is not valid UTF-8 or is separated by semicolons or tabs, and says why; it never guesses an encoding, so your text is not altered silently.
3. Column headers that do not match
The first line of a product CSV must be the column headers as Shopify lists them (Shopify Help). Shopify Help names these messages for headers:
- “Network error: Unexpected token < in JSON at position 0”: the column titles do not match the template exactly. Header names are case-sensitive:
Handle, nothandle(Shopify Help). - “Invalid CSV header: missing headers”: the first line lacks columns Shopify expects. Also check for extra spaces at the end of the first line (Shopify Help).
- A Choose column headings window appears when headers are incorrect: you can pick the correct header for each column there.
Shopify still accepts older column names, but recommends the current ones (Shopify Help). In our test store, Shopify's own product export used older names such as Handle, Variant SKU, Variant Price and Image Src; the current list says URL handle, SKU, Price and Product image URL. In our test imports, files with either set of names were accepted. Keep one name per column: a file with both Barcode and Barcodes fails to import.
Fix: copy the header line from a fresh Shopify export or from Shopify's sample file, keep the exact case and remove spaces at the start and end of each header.
4. A required column is missing
Shopify Help lists the columns a file must have (Shopify Help):
- New products:
Title. If a product has variants, alsoURL handle. - Updating existing products:
URL handleandTitle. - Variant columns such as
SKUorWeight value (grams)also needOption1 nameandOption1 value. Without the option columns, Shopify creates a new default variant and deletes the existing variants.
If the data of a column depends on a column that is missing, the import shows an error. How option columns work is explained in variants not importing.
5. The file is over 15 MB
A product CSV can't exceed 15 MB, and neither can an inventory CSV. If you get an error right after the upload, or the upload times out, split the file into smaller files and import each one (Shopify Help: importing products, inventory CSV).
- Keep every product whole: all rows with the same URL handle go into the same file, in their original order.
- Shopify does not say whether 15 MB means 15,000,000 or 15,728,640 bytes. CatalogDock reports a file over 15,728,640 bytes as an error and a file over 15,000,000 bytes as a warning, and splits the files it builds into parts of at most 15,000,000 bytes, product by product.
6. Values Shopify refuses
These messages and their meaning are from Shopify Help; the notes on blank cells come from our test imports.
| Message | What to do |
|---|---|
| “Fulfillment service can't be blank” | Enter the fulfillment service, or manual if you do not use one. In our test imports, an empty cell was refused both for new products and with Overwrite; a file without the column was accepted and got manual. |
| “Inventory policy is not included in the list” | Enter deny or continue in Continue selling when out of stock. In our test import, an empty cell was refused for new products. |
| “Validation failed: price can't be blank” | Enter the price on that row. Shopify's column list says an empty price becomes 0.00; in our test import a new product with an empty price was created with the price 0.00, and with Overwrite an empty price left the old one. Fill in Price on every variant row: what an empty cell does differs from case to case. |
| “Inventory quantity can't be blank” | Enter the quantity, or leave Inventory tracker empty if you do not track stock for that variant. |
| “Inventory quantity is not a number” | Enter a number for the quantity in stock. |
| “Collection title cannot be longer than 255 characters” | Shorten the name in the Collection column. |
| “Not a valid product category” | Use the full category breadcrumb or the category ID from Shopify's Standard Product Taxonomy. |
7. Changes made by Excel
A spreadsheet program can change a CSV when it opens and saves it. Check these before importing a file edited in Excel:
- Curly quotes instead of straight ones (1), another encoding or separator (2).
- Sorting. Sorting a product CSV can separate variants and image URLs from their product, and importing a sorted file can overwrite products with bad data that can't be recovered (Shopify Help: exporting products, importing products). Keep the rows of a product together.
- An apostrophe in front of SKUs. Shopify exports products as a CSV for Excel or as a Plain CSV. In our test store, the CSV for Excel wrote a SKU made only of digits as
'0072; the Plain CSV wrote0072. Shopify accepts the apostrophe and stores0072, but in your file the SKU stays'0072and does not match0072in a supplier price list. When you compare SKUs, for example for a price update, export a Plain CSV.
What the free Shopify check reports
CatalogDock's Shopify Check reads your file in your browser and lists these problems with their record and column. It never changes the file.
Reported for you to decide
- Encoding, separator and broken quotes with the line they are on; a value that starts with a curly quote.
- Headers with a space at the edge, a different case or an unknown name, two versions of the same column, missing required columns.
- The file size against the 15 MB limit, empty fulfillment services and inventory policies, prices and quantities that are not numbers.
Needs data from your store
Whether a product category, collection or fulfillment service exists in your store, and how Shopify answers your file. A passing check is not a test import.
Still failing? Related guides
Import a file with only the product that fails, so you know which rows cause the error. If the guides do not explain it, send Shopify Support the exact text of the error: Shopify Help points there for problems it does not list.
- Shopify import troubleshootingFind the cause of a failed Shopify CSV import and how to fix it.
- Variants are missing or splitURL handles, option columns, repeated combinations and row order.
- Duplicates or overwritten dataURL handles, the Overwrite option, blank cells and deleted variants.
- Product images did not importPublic image links, one row per image, variant images and size limits.
Check your Shopify CSV before importing
CatalogDock reads your product or inventory CSV in your browser and lists each of these problems with its record and column, free. It does not change your file: you correct it and check it again.
Runs in your browser · No files uploaded · Never connects to your store
Sources
Shopify Help, read on :
- Troubleshooting product CSV imports
- Importing products with a CSV file
- Using CSV files to import and export products
- Exporting products
- Exporting and importing inventory with a CSV file
Where this page says in our test import, the result comes from small files imported into our Shopify development store in October 2026 and read back from its exports. One store and a few products: your store can behave differently.
Applies to Shopify's own CSV import: Products → Import for products and Products → Inventory → Import for stock. Shopify can change its import at any time; the sources above are dated. CatalogDock's Shopify support is in beta.