Runs in your browser
Shopify import error

How to fix "Line is invalid"

What this error means and the exact, free way to fix it — right in your browser, with nothing uploaded.

If your import fails with:

Line 1 is invalid

What it means

Shopify checks that every row in your CSV has the same number of columns as the header row. "Line is invalid" means at least one row has too many or too few values, so the columns no longer line up and Shopify stops the import.

Common causes

How to fix it

This is a structural problem in the file, and it is deterministic to repair — no guesswork.

  1. Open your product export in the free Fix a CSV tool.
  2. It scans every row, pads rows that are short and trims stray empty cells so each row matches the header width, and re-wraps any field that contains a comma or line break in quotes.
  3. Download the repaired file and re-import it into Shopify.

Repair the file free, in your browser

The Fix a CSV tool squares up ragged rows and re-quotes fields so the column count is consistent — exactly what this error is complaining about. Nothing is uploaded.

Open Fix a CSV →

Also free, in your browser: all CSV tools · the converter · Fix a CSV · Split CSV

Related import errors

See all common import errors & fixes →