How to undo a product CSV import on Shopify
A product CSV import overwrote your data and Shopify can't undo it. How to recover, what to check first, and a checklist for your next import.
You imported a product CSV with “Overwrite products with matching handles” ticked, and now prices, descriptions or tags are wrong across your store. Shopify applies an import row by row as it goes and keeps no earlier copy of the products, so there is no undo for it.
What an import can change
- Every column in the file replaces the value in your store for every matching product.
- A column that is in the file but left empty can clear the existing value.
- Spreadsheet programs can change data on the way: SKUs and barcodes losing their leading zeros, long numbers turned into 1.2E+12, or prices written with a comma instead of a decimal point.
- Rows whose handle doesn’t match an existing product create new products, so a mistyped handle gives you a duplicate instead of an update.
First, stop it happening again
If the import came from an app or a scheduled sync rather than from you, pause it before you fix anything, or it may overwrite your fixes. Then work out roughly when the import ran and which fields it touched.
Option 1: re-import an older export
If you exported your products before the import, that file is your way back. Make a copy and cut it down before you import it:
- Keep the handle and variant columns (Option1 value, Variant SKU) and only the columns the bad import changed. Everything else you leave in overwrites what is there now, including changes you made on purpose.
- Keep only the rows for products the import touched.
- Try it on two or three products first and check them in your admin and on your storefront.
New products the bad import created are not removed by re-importing. Find them (sorting your product list by creation date helps) and delete or archive them by hand.
Option 2: bulk undo with Undokit
If Undokit was installed before the import, it recorded every change the import made. Open Bulk undo, choose the time window the import ran in (for example “last hour”), and choose all fields or only one kind, such as prices and compare-at prices. You see the products it will touch before you start, and each product gets a result: restored, already matched, or skipped with the reason.
A field is only put back if it still has the value the import gave it, so anything you fixed by hand since is left alone. Products the import created are not deleted, and stock levels, collections and image changes are not restored.
Checklist for your next import
- Export all products first and name the file with today’s date.
- Remove every column you don’t mean to change, and check there are no empty cells you didn’t intend.
- Check that handles match your store exactly, so rows update products instead of creating new ones.
- Format SKU and barcode columns as text in your spreadsheet, and save as CSV with UTF-8 encoding so accented characters survive.
- Import a file with two or three products first, and check them before importing the rest.
- Run large imports when your store is quiet.