Shopify product CSV error

How to fix Can only specify a maximum of 2048 product variants

A Shopify product can have up to 2,048 variants and 3 options. This message means at least one product in your file has more variant rows than that. Shopify checks it when you upload the file, so nothing in the file is imported, and the message doesn’t say which product or line is too big. Variants multiply: 3 options with 20, 20 and 6 values make 2,400.

What you’ll need

  • Your products export CSV (or any product CSV you plan to import)

    How to get this: Your products export CSV
    1. Products › Export › All products › Export products.
    2. Small exports download; big ones arrive by email.

    Step-by-step guide (opens in a new tab)

  • Shopify’s product importer, to load the result

    How to get this: Shopify’s product importer, to load the result

    It’s in Products › Import. Export a backup first: an import can’t be cancelled once it starts.

    Step-by-step guide (opens in a new tab)

Check your whole file at once

CSV Doctor lists every problem with its row number and fixes the safe ones for you.

Runs in your browser. Your file is never uploaded.

Check my CSV file

What causes it

  • The option values multiply past 2,048 (for example 20 colors × 20 sizes × 6 materials).
  • Two different products share one URL handle, so their variant rows add up to one product.
  • A file built for another platform lists every combination, including ones you don’t sell.
  • An app or custom integration still uses Shopify’s REST Admin API, which keeps the old 100-variant limit. Shopify says such apps must move to the GraphQL Admin API to go past 100.

How to fix it

  1. Find the product: Shopify’s message names no line, so count the rows per URL handle (CSV Doctor does this for you).
  2. Remove combinations you don’t sell, or drop an option that doesn’t change price or stock and mention it in the description.
  3. Split the rest into several products, for example one per material, each with its own handle. On Shopify Plus, the Combined Listings app can show them as one listing.
  4. For choices that don’t need their own price or stock (engraving, gift note), use line item properties instead of a variant.
  5. Import again.

Example

Causes the error
tee,Color,Red,Size,XS,Material,Cotton
… 2,400 rows for one handle
Imports correctly
tee-cotton,Color,Red,Size,XS
… 400 rows
tee-linen,Color,Red,Size,XS
… 400 rows

One product per material keeps each one under the limit.

Sources: Shopify Help Center, Troubleshooting product CSV imports and Using CSV files to import and export products.