Skip to the guide

Shopify · Import troubleshooting

Shopify CSV import: variants not importing or not showing

Shopify makes one product from all rows with the same URL handle and one variant from the option values of each row. Variants go missing when the rows do not share a handle, the option columns are missing or empty, two rows repeat the same option values, or a sort separated the rows of a product.

Which cause is yours?

What you observeLikely cause
Each variant became a separate product, or rows were skipped with “Ignored line … because it did not contain product data”1. The rows of a product do not share one URL handle
A product has one Default Title variant instead of several, or its existing variants were replaced2. Option columns missing or empty
“Validation failed: options are not unique”3. Two rows with the same option values
Variants or images ended up on the wrong product after you edited the file in a spreadsheet4. The rows of a product were sorted apart
“Line is invalid (No details)” after you changed the order of options5. An option moved to another position
Variants were imported but cannot be boughtNo stock at your location
Variants disappeared after an update with OverwriteDuplicates and overwritten data

1. The rows of a product must share one URL handle

The URL handle is the unique identifier of a product. For a product with variants, Shopify Help describes the rows like this:

  • First row: every product field (Title, Description, Vendor, Tags …) together with the first variant and the first image URL.
  • Each following row: the same URL handle, empty Title, Description, Vendor and Tags, and the details of one more variant.
One product with three variants: the product fields once, the URL handle and an option value on every row.
RecordURL handleTitleOption1 nameOption1 valueSKUPrice
1organic-teeOrganic cotton T-shirtSizeSTEE-S24.90
2organic-tee(empty)(empty)MTEE-M24.90
3organic-tee(empty)(empty)LTEE-L24.90

Record numbers exclude the header. (empty) marks an empty cell.

A row with another handle starts another product. “Ignored line … because it did not contain product data” means that a product has a handle but no title (Shopify Help): put the Title in the first row of each product. In Shopify's own export the column is called Handle; for new products with variants the column is required.

Fix:

  1. If the variants were already imported as separate products, delete those products first with the bulk actions on the Products page: a CSV can't delete products (Shopify Help).
  2. In the file, give every row of the product the same URL handle.
  3. On the first row, put the option name in Option1 name, for example Size; on every row, put the variant's value in Option1 value.
  4. Keep the title only on the first row, check the file and import it again.

2. Option names and values

Variants are made of options such as size or color. A product can have up to three: Option1 name with Option1 value, then Option2 and Option3 (Shopify Help).

  • Name: the name of the option, for example Size. In our test store, Shopify's export wrote the option names only in the first row of each product.
  • Value: the value of each variant, for example S, on every row of the product.
  • A product without options was exported with Title as the option name and Default Title as the value; the inventory CSV page of Shopify Help gives the same pair.

Missing option columns delete variants. If a file has no Option1 name and Option1 value columns, Shopify creates a new default variant and deletes the existing ones. Variant columns such as SKU also need the option columns when you update products. Changing an option value deletes the variant's ID (the number apps use to find the variant) and creates a new one, which can break apps that rely on variant IDs.

3. “Validation failed: options are not unique”

Two variants of one product have the same option values, for example two rows with size M. If every variant's values differ, another product further down the file probably uses the same URL handle (Shopify Help).

Records 2 and 3 are both size M: Shopify reports that the options are not unique.
RecordURL handleTitleOption1 nameOption1 valueSKUPrice
1organic-teeOrganic cotton T-shirtSizeSTEE-S24.90
2organic-tee(empty)(empty)MTEE-M24.90
3organic-tee(empty)(empty)MTEE-L24.90

Record numbers exclude the header. (empty) marks an empty cell.

Fix: give each variant its own combination (correct the value or add a second option such as color), or remove the duplicate row. Then search the file for the handle to make sure no other product uses it.

4. The rows of a product were sorted apart

Sorting a product CSV in a spreadsheet program can separate variants and image URLs from their product. Importing a sorted file can overwrite products with bad data that can't be recovered (Shopify Help).

Fix: keep all rows of a handle together, with the row that carries the title first. If the file was sorted, go back to your export or an unsorted copy instead of repairing the order by hand.

5. “Line is invalid (No details)”: an option moved to another position

Shopify refuses lines that move an existing option to another position, for example Size from Option1 to Option2 with a new Option1 (Shopify Help). Shopify Help gives this way around it:

  1. In your file, give the moved option a temporary name, for example Size. (with a dot at the end).
  2. Import the file.
  3. In a new file, change the temporary name to the final one, and import that file.

6. Variant and option limits

  • A product can have up to 2,048 variants and up to 3 options. For more, Shopify Help points to apps or to line item properties: extra fields on the product page, such as a text box for a monogram, whose choice is saved with the order.
  • A store with 500,000 or more variants can create at most 10,000 new variants by CSV within 24 hours, except on Shopify Plus: “Daily variant creation limit reached, try again” (Shopify Help).

CatalogDock reports a fourth option column. It does not count variants against the 2,048 limit.

Variants that were imported but cannot be bought

The Inventory quantity column of a product CSV applies only to a store with a single location; with several locations, stock is imported with the inventory CSV (Shopify Help). In our test import into a store with two locations, the quantity in a product CSV set no stock: every new variant had 0 on hand. When stock is tracked, the default inventory policy deny means that a variant can't be bought once its stock reaches 0. See inventory CSV not updating stock.

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

  • Rows without a handle, products without a title, an option value without a name and a variant without a value.
  • Repeated option combinations, rows of one product that are not next to each other, variant columns without option columns, a fourth option.

Needs data from your store

The variants already in your store and the 2,048-variant limit. To change existing variants, compare your file with a fresh export first.

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.

Check your Shopify CSV before importing

CatalogDock checks the handles, options and row order of your Shopify CSV in your browser and names each problem with its record, free. To build products with variants from a supplier price list, use Prepare: you choose how rows form products, and it writes the handles and option columns.

Runs in your browser · No files uploaded · Never connects to your store

Sources

Shopify Help, read on :

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.