Shopify product CSV import errors: what each message means and how to fix it
Shopify emails you a list like “Line 4-7: Validation failed…” and leaves you to work out the rest. Find your message below for the cause and the fix — or drop the file into our free checker to find the problem rows before you import.
Published · By the Inboxwise Tools team
Messages are taken from Shopify’s help pages, plus two common ones reported in the Shopify Community (marked below). Wording can vary slightly in your import email. Not affiliated with Shopify.
Find the problem rows first
The fastest route is to let a checker read the whole file. Our Shopify CSV Error Fixer runs in your browser — the file isn’t uploaded anywhere — and lists every row with a problem, with the line number and the fix. It also repairs the safe things automatically (header capitals, prices like $19.99, encoding). The “Free checker catches it” column below tells you which messages it can spot ahead of time.
Reading the error email
- “Line 4-7” points at rows in your file. Line 1 is the header row, so line 2 is your first product row. If descriptions contain line breaks, count rows in a spreadsheet rather than lines in a text editor.
- A range usually means one product. Shopify reports the rows of a product together, so fix the product, not each line.
- Products not listed were imported. The simplest retry is a file with only the failed products. If you re-import the whole file, products that already exist are matched by handle — whether they’re updated depends on the overwrite option in Shopify’s import dialog, so check it before you start.
All messages at a glance
“Partly” means it catches the usual cause in the file (for example, a malformed image URL) but can’t check things only your store or the image host knows.
File, encoding and quotes
Illegal quoting on line …
Cause: A character Shopify can’t read, usually because the file isn’t saved as UTF-8. A missing or stray quotation mark causes it too.
Fix: Re-save the file as CSV UTF-8 and replace curly quotes (“ ”) with straight ones (").
Full fix for quote and encoding errors →
Missing or stray quote on line …
Cause: A quotation mark that opens a value but never closes, or one that sits in the middle of an unquoted value. Spreadsheet apps and copy-paste from Word add curly quotes.
Fix: Replace curly quotes with straight quotes. Inside a quoted value, write a quote as two quotes ("").
Full fix for quote and encoding errors →
Garbled characters (é, ’) after import
Cause: Not an error message — the import succeeds, but the file wasn’t UTF-8, so accented letters and symbols come out wrong.
Fix: Save the file as UTF-8 and import again. Google Sheets exports UTF-8 by default; Excel needs “CSV UTF-8”.
Full fix for quote and encoding errors →
Header row
Invalid CSV header: missing headers
Cause: The first line doesn’t match Shopify’s header row: a misspelled or missing column name, or extra spaces at the end of the line.
Fix: Copy the header row from a fresh Shopify export or the sample CSV, and remove trailing spaces.
Network error: Unexpected token < in JSON at position 0
Cause: Despite the wording, Shopify says this comes from headers that don’t exactly match the template. Header names are case-sensitive.
Fix: Fix the capitals and spelling of every column name (for example Handle, not handle).
Import fails with both Barcode and Barcodes columns
Cause: Shopify’s CSV guide says a file can’t have both columns.
Fix: Keep only the Barcodes column.
Handles and product rows
Ignored line #-## because it did not contain product data
Cause: A row has a handle but no title, and Shopify treated it as the start of a product. Usually the first row of a product is missing its title, or the rows got sorted so a variant row came first.
Fix: Make sure the first row for each handle has the title and description. Sort by handle without breaking the original row order within each product.
Ignored line #-## because handle `…` already exists
Cause: Two different products in the file use the same handle. Every product needs its own.
Fix: Give each product a unique handle, and keep all rows of one product together.
Line is invalid (No details)
Cause: Shopify lists one cause: moving an existing option to a different position, such as moving Size from Option1 to Option2 while adding a new Option1.
Fix: Import in two steps. First rename the option to a temporary name (Shopify suggests “Size.” with a period), import, then import a second file with the final name.
Variants and options
Validation failed: The variant ‘Default Title’ already exists
Cause: Not on Shopify’s help page, but a frequently asked-about error in the Shopify Community. A product with no options has one variant called “Default Title”. A second variant row for that product, without option values, collides with it.
Fix: Add a real option (Option1 name and a value per row), give separate products their own handles, or clear the SKU and price on image-only rows.
Full fix for duplicate variant errors →
Validation failed: options are not unique
Cause: Two variants of one product have the same option values (for example two rows of Medium / Black), or the same handle appears again elsewhere in the file with matching options.
Fix: Change or delete the duplicate row so every variant has a unique combination.
Full fix for duplicate variant errors →
Validation failed: You need to add option values for …
Cause: Also community-reported rather than on the help page. A product has an option name (such as Size), but at least one of its variant rows has no value for it — often the first row, or rows whose handle is missing.
Fix: Fill in the option value on every variant row, and make sure every row carries the product’s handle.
Full fix for missing option values →
Daily variant creation limit reached, try again
Cause: Stores with 500,000 or more variants (excluding Shopify Plus) can create only 10,000 new variants per 24 hours by CSV or API.
Fix: Wait for the 24-hour window to reset and import the rest. Splitting the file helps you track what’s done.
Prices, inventory and fulfillment
Validation failed: price can’t be blank
Cause: A variant row has no price.
Fix: Enter a price on that row. 0 is a valid price.
Full fix for price and inventory errors →
Inventory quantity can’t be blank
Cause: Inventory is tracked, but the quantity cell is empty.
Fix: Enter a quantity. If you don’t track stock for the product, leave the inventory tracker column blank instead.
Full fix for price and inventory errors →
Inventory quantity is not a number
Cause: The quantity has text, a decimal, or a unit in it.
Fix: Use whole numbers only, like 12.
Full fix for price and inventory errors →
Inventory policy is not included in the list
Cause: The inventory policy cell has something other than the two accepted values.
Fix: Use deny (stop selling when out of stock) or continue (keep selling).
Full fix for price and inventory errors →
Fulfillment service can’t be blank
Cause: A variant row has no fulfillment service.
Fix: Enter manual unless you use a fulfillment app, in which case use that service’s name.
Full fix for price and inventory errors →
Images
Validation failed: An error occurred while trying to download the image
Cause: Shopify couldn’t fetch the image at that URL — the file is missing, private, or the link doesn’t point straight at the image.
Fix: Open the URL in a private browser window. It should show only the image, without a login or a web page around it.
Validation failed: getaddrinfo: nodename nor servname provided, or not known
Cause: The image URL is malformed — usually missing http:// or https://, or containing a typo in the domain.
Fix: Use a full, public, direct link starting with https://.
Validation failed: The uploaded image exceeds the 20 megapixel limit
Cause: The image is larger than Shopify accepts.
Fix: Resize it. Shopify’s help says images can be up to 5000 × 5000 px; staying under 20 megapixels avoids this message.
Incorrect header check
Cause: Shopify doesn’t give a cause, but its fix points to an image on that line.
Fix: Remove the image from that row and import again. If that works, host the image somewhere else and add it back.
Collections, categories and metafields
Product can’t be added to the collection
Cause: The collection doesn’t accept products from a CSV — for example it’s filled by an app, by variant conditions, or by a mix of conditions and manual picks. The product isn’t imported.
Fix: Leave the collection cell blank (or use another collection), import, then add the product to that collection in the admin.
Collection title cannot be longer than 255 characters
Cause: The collection name in the file is too long.
Fix: Shorten it to 255 characters or fewer.
Not a valid product category
Cause: The product category doesn’t exactly match an entry in Shopify’s Standard Product Taxonomy.
Fix: Use the full taxonomy breadcrumb or the category ID exactly as Shopify lists it.
Validation failed: Value must be a valid product reference
Cause: A metafield points to a product that doesn’t exist in the store yet — common when copying products to a new or development store.
Fix: Import the products first with that metafield column empty, then import again with the metafield values.
Habits that prevent most import errors
- Start from a Shopify export. Export one existing product and use that file as your template. The headers will be exactly right.
- Edit in Google Sheets, or save from Excel as “CSV UTF-8”. Plain “CSV” in Excel can break accented characters and quotes.
- Format SKU and barcode columns as text. Otherwise Excel turns long numbers into
4.90123E+12and the real code is gone. The Variant & SKU Auditor finds those and other SKU gaps. - Keep each product’s rows together, first row first. Sorting a whole sheet by another column scatters variants and image rows.
- Test with a small file. Import two or three products first. Fixing one product is faster than reading an error email for 2,000.
Sources
- Shopify Help: Solutions to common product CSV import problems
- Shopify Help: Importing products with a CSV file (troubleshooting)
- Shopify Help: Using CSV files to import and export products
- Shopify Community: “The variant ‘Default Title’ already exists” thread
Last reviewed: November 15, 2026.