Findora

Export & import

Shopify product CSV import errors and how to fix them

By Findora TeamPublished Last updated 7 min read

Shopify's product importer is strict, and its messages are short: "Illegal quoting on line 12" doesn't say which cell is wrong. Most failures come from a handful of causes: the file isn't UTF-8, a column name doesn't match Shopify's template, one product's rows are split up, or an image link can't be downloaded.

This guide goes through the messages Shopify lists in its Help Center, quoted as they appear there, with the cause and the fix for each. It starts with how the importer reads a file, because most errors make sense once you know that.

How Shopify reads a product CSV

  • One row per variant, grouped by URL handle. The first row of a product has the title, description, vendor and tags; the following rows repeat the handle and fill in only the variant's options, price and SKU, or an extra image link. (Older templates call the column Handle.)
  • Title is the only required column for new products; the URL handle is required too once a product has variants. To update products, you need URL handle and Title.
  • Up to 3 options per product, such as size, colour and material.
  • The file must be UTF-8 and at most 15 MB. Column names must match Shopify's template exactly, including capital letters.

To import, go to Products, click Import, choose the file, decide on Publish new products to all sales channels and Overwrite products with matching handles, click Upload and continue, check the details and click Import products. Shopify emails you when it's done. An import can't be cancelled once it starts, so check the file first.

Check the file before you import

The product CSV validator runs in your browser and checks a Shopify file the way the importer reads it: missing URL handle or Title columns, rows without a handle, a product's rows split up by another product, option values without an option name, the same option combination twice, prices it can't read, and image links that aren't full web addresses. Each problem comes with its line number.

The product CSV validator showing a WooCommerce file with 28 products, 5 errors and 296 warnings, listing invalid image web addresses with their line numbers
The validator lists each problem with its line number (shown here with a WooCommerce file; Shopify files are checked the same way).

Errors about the file itself

"Illegal quoting on line" or "Missing or stray quote on line"

A quote mark in the file isn't where the CSV format expects one. The usual causes are curly “smart” quotes that Excel or Numbers inserted, a description with an unclosed quote, or a file that isn't saved as UTF-8. Replace curly quotes with straight ones, remove stray quotes, and save as CSV UTF-8.

"Invalid CSV header: missing headers"

The first line must contain Shopify's column names exactly. Compare it with a fresh template from the product CSV templates, and check for extra spaces at the end of the first line, which Shopify mentions specifically.

"Network error: Unexpected token in JSON at position 0"

Despite the wording, Shopify says this means the column titles don't match the template. Names are case-sensitive: Handle, not handle. If a Choose column headings window appears during the upload, that's also a sign the headers are wrong.

Strange characters such as é after the import

The file wasn't UTF-8, so accented letters were read wrongly. Repair the file with Fix CSV encoding and import it again.

The Fix encoding mode of the CSV Toolkit with a supplier file whose garbled lines were repaired, showing Café Crème Mug correctly in the preview
Garbled lines repaired in the browser before the import.

The upload times out, or the file is over 15 MB

Split the file into smaller ones with Split CSV. It keeps all rows of a product together, which matters: a product split across two files imports with missing variants.

Errors about products and variants

"Ignored line #-## because handle 'example' already exists"

Two different products use the same handle, or one product's rows are separated by another product's rows. Give every product its own handle and keep its rows next to each other. If you meant to update existing products, tick Overwrite products with matching handles; without it, Shopify ignores rows whose handle already exists in the store.

"Ignored line #-## because it did not contain product data"

The row has a handle but no title, and it isn't a variant or image row of the product above it. Usually the product's first row is missing or was sorted away. Put the full first row back above its variants.

"Validation failed: options are not unique"

Two variants of one product have the same option values, for example two rows that are both Size M, Blue. Each variant needs a different combination.

"Line is invalid (No details)"

Shopify links this to moving an existing option value to a different option position. Its fix is to import once with a temporary option name, then again with the final one.

"Validation failed: price can't be blank" and inventory messages

Every variant needs a price. For stock, "Inventory quantity can't be blank" and "Inventory quantity is not a number" mean the quantity cell needs a number, or the inventory tracker column should be left empty if you don't track stock. "Inventory policy is not included in the list" means the policy must be deny or continue.

"Daily variant creation limit reached, try again"

Shopify limits stores with 500,000 or more variants to 10,000 new variants created by CSV a day (Shopify Plus excluded). Import the rest the next day.

Errors about images

"Validation failed: An error occurred while trying to download the image"

Shopify couldn't fetch the file at that link: it's gone, private, or behind a login. Open the link in a private browser window; if it doesn't show the image straight away, host the image somewhere public.

"Validation failed: getaddrinfo: nodename nor servname provided, or not known"

The image address isn't a complete web address. It must start with http:// or https:// and point directly at the image file, not at a web page that shows it.

"Validation failed: The uploaded image exceeds the 20 megapixel limit"

The image is too large. Shopify's help pages give both 20 and 25 megapixels as the limit, so stay safely under 20 megapixels; a 4000 × 4000 px image is 16 megapixels. Resize big photos in bulk with the product image resizer before uploading them.

Good to know: SVG files can't be used as product images in a CSV import. Convert them to PNG or JPG first.

Updating products without losing data

With Overwrite products with matching handles ticked, Shopify replaces the values of every column in your file. Three rules from Shopify's documentation prevent most accidents:

  • A column that isn't in the file is left as it is. Remove columns you don't want to change.
  • An empty cell in a column that is in the file overwrites the value with blank.
  • Some columns depend on others: changing SKU or weight without the Option1 name and value columns creates a new default variant and deletes the existing ones.

So for a price update, keep only URL handle, Title, the option columns and the price columns. Export first, so you have a copy to go back to; a CSV import can't delete products, but it can overwrite their details.

Checklist before every import

  • Saved as CSV UTF-8, under 15 MB
  • Column names copied exactly from Shopify's template
  • Every product has a unique URL handle, and its rows sit together
  • Each product's first row has a Title; at most 3 options
  • No two variants of a product share the same option values
  • Every variant has a price
  • Image links are full, public https:// addresses to image files such as JPG, PNG or WebP
  • Overwrite ticked only when updating, with only the columns you mean to change
  • Checked with the validator, with zero errors

Frequently asked questions

Why does my Shopify CSV import say illegal quoting?

A quote mark isn't where the CSV format expects it, usually curly quotes from a spreadsheet or a description with an unclosed quote. Replace them with straight quotes and save the file as CSV UTF-8.

What does invalid CSV header mean in Shopify?

The first row doesn't match Shopify's column names exactly. Copy the names from a current template, keep the capitals, and remove spaces at the end of the line.

Why were some lines ignored in my Shopify import?

Either the handle already exists in your store and Overwrite wasn't ticked, or a row has a handle but no product data because its product's first row is missing or out of place.

What is the file size limit for a Shopify product CSV?

15 MB. Split larger files into several smaller ones, keeping all rows of each product in the same file.

Why didn't my product images import?

Shopify couldn't download them. Each image link must be a complete, public address to the image file itself, and the image must be within Shopify's size limit.

Can I check a file before importing it?

Yes. Findora's product CSV validator checks a Shopify or WooCommerce file in your browser and lists each problem with its line number. The file isn't uploaded.