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:
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
- A comma inside a product title or description that is not wrapped in quotes, so Shopify reads it as an extra column.
- A row that is missing values, leaving it with fewer columns than the header.
- A stray line break inside a cell that splits one row into two.
- Leftover columns from another platform's export that do not belong in a Shopify file.
How to fix it
This is a structural problem in the file, and it is deterministic to repair — no guesswork.
- Open your product export in the free Fix a CSV tool.
- 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.
- 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.
Also free, in your browser: all CSV tools · the converter · Fix a CSV · Split CSV