Validating a WooCommerce product CSV with a dry run before import
|

How to Validate a WooCommerce Product CSV Before You Import It (Dry Run)

To validate a WooCommerce product CSV before importing it, run the file through a read-only check that applies the importer’s own rules first: are the headers ones WooCommerce recognises, does every row have an ID or SKU, are any SKUs or barcodes duplicated, does every variation point at a real parent, and which rows would be created, updated or skipped under the “Update existing products” setting you plan to use. WooCommerce’s built-in importer has no preview; it writes products as it goes, so the first time you learn about a bad column is after it has been applied to your catalog.

Catalogafe, a free plugin from CommerceWP, adds that missing step as a Products → CSV Dry Run screen: it reads your CSV, predicts what the importer would do, scores the file and lists every problem with its line number, and never imports anything. This guide walks through the mistakes that most often damage a catalog, a dry run from upload to fix report, the duplicate SKU, GTIN and variation checks, and the companion Catalog Health audit for products already in your store.

Why a bad product CSV is hard to undo

The WooCommerce importer matches each CSV row to an existing product by ID or SKU, and whether a matched row updates or is skipped depends on the “Update existing products” checkbox on the importer’s first screen (WooCommerce: Product CSV Importer and Exporter). That design is efficient, but it means one wrong column changes hundreds of live products in a single run. Four examples that show up again and again:

  • The stale export. Someone re-imports a three-week-old export with “Update existing products” ticked to fix a few descriptions. Every price, stock quantity and sale date in the file is also written back, and the 40 products you repriced last week are repriced again, to the old values.
  • The update that never happened. You import 300 corrected prices with the checkbox off. Every SKU already exists, so the importer skips all 300 rows and reports success. Nothing changed, and nobody notices until a customer does.
  • The orphan variations. A variation row’s Parent says TEE-01 but the parent’s SKU is TEE-001. The variation is created with no parent and is not buyable from any product page.
  • The one-column row. A semicolon-separated export from a European spreadsheet is read as comma-separated. The whole row lands in the first column, and the importer treats it as a product with a very long name.

There is no undo button for a CSV import. Restoring from a backup is the usual fix, and that also rolls back every order and customer change since the backup was taken. Checking the file first is cheaper.

Common WooCommerce CSV import errors

These are the problems a dry run is built to catch. Each one maps to a stable issue code in Catalogafe (full list in the issue codes reference). Codes come in two levels: an Error blocks a safe import and must be fixed; a Warning does not block it, but marks a value the importer will interpret differently from what the spreadsheet seems to say. For every error message the WooCommerce importer itself shows, and what each one means, see how to fix WooCommerce product CSV import errors.

File and header problems

Some problems stop the check before any row is read, because the importer could not read the file either. Catalogafe shows these as a single red notice above the form instead of a result:

  • Wrong file type or size. Only .csv and .txt uploads are accepted, up to 16 MB and 10,000 product rows. A larger file is refused with “The file is larger than 16 MB. Export a smaller CSV or use the WooCommerce importer in batches.”; a longer one with “The file has more than 10000 product rows. Split it before importing.”
  • Not UTF-8. A file saved in another encoding breaks on the first accented character. Catalogafe stops at the exact line: “Line 48 is not valid UTF-8. Re-export the file as UTF-8.”
  • Empty or duplicate column names. A header row with a blank column, or the same column twice (including two spellings WooCommerce treats as one field, such as Stock and stock_quantity), is refused with “The header row contains an empty column name.” or “The header row contains duplicate column names.”
  • No rows. A header with nothing under it gives “The file has no product rows after the header.”

Two header problems are reported as issues on the “Header” line of the result instead, because the importer would run anyway:

  • Missing recommended columns (missing_recommended_column, warning): no Type, SKU or Name column.
  • Two differently named columns that map to the same key field (duplicate_header, error), for example GTIN, UPC, EAN, or ISBN next to global_unique_id.

The delimiter is not a problem you have to solve yourself. Excel, Numbers, Google Sheets and other shop systems export with commas, semicolons, tabs or pipes. Catalogafe detects all four automatically from the first lines of the file, honours Excel’s sep=; first line, strips a UTF-8 byte-order mark, and lets you pick the delimiter manually if the detection ever guesses wrong. Any header it cannot map to a WooCommerce field is listed under “Not mapped” in the result rather than treated as an error, because the importer ignores those columns too.

Row-level problems

ProblemCodeLevel
Row has no ID, SKU or global unique IDmissing_identifierError
ID is not a positive whole numberinvalid_idError
Type is not simple, variable, variation, grouped or externalinvalid_typeError
Type carries a flag other than virtual or downloadableunknown_type_flagWarning
New, non-variation row with no Namemissing_nameError
Price, low stock amount, weight or dimension is not a numberinvalid_numberError
Negative regular or sale pricenegative_regular_price, negative_sale_priceError
Sale price is not lower than the regular pricesale_not_lowerWarning
Stock is not a whole numberinvalid_stockError
Negative stock on a row that does not allow backordersnegative_stockWarning
In stock? or Backorders allowed? holds a value WooCommerce reads differentlyinvalid_stock_status, invalid_backordersWarning
Catalog visibility or tax status is not one of WooCommerce’s valuesinvalid_visibility, invalid_tax_statusWarning
Sale start or end date cannot be parsedinvalid_sale_start, invalid_sale_endError
Sale start date is after the end datesale_date_orderWarning
External product with no URL / with a URL that is not HTTP or HTTPSexternal_missing_url / external_invalid_urlWarning / Error
Image entry is not a well-formed HTTP or HTTPS URLinvalid_image_urlWarning
Empty term between two commas in Categories or Tagsempty_termWarning

Two of these deserve a sentence. WooCommerce reads In stock? as 1, 0 or backorder and Backorders allowed? as 1, 0 or notify, exactly as its own exporter writes them; anything else imports as “in stock” or “no backorders” respectively, so a column full of outofstock quietly puts every product back on sale. And negative stock is only a warning because WooCommerce allows it: it is how a product sold on backorder shows the units still owed. Catalogafe warns when the row’s Backorders allowed? is not 1 or notify, since the product would then import as out of stock.

How a WooCommerce product import dry run works

A dry run applies the importer’s matching rules to your file without writing anything. Here is the whole loop in Catalogafe, from upload to a clean file.

Prefer to watch? Here is the same loop in 87 seconds:

1. Open the dry-run screen

In the WordPress admin go to Products → CSV Dry Run. The page is titled “Catalogafe – Product CSV Dry Run” and needs the same import capability as the WooCommerce importer, so shop managers and administrators can use it. If you have no file yet, the Download WooCommerce CSV template button under the form gives you catalogafe-import-template.csv: 21 WooCommerce export headers (ID, Type, SKU, GTIN, Name, Published, prices, Categories, Images, Parent, In stock?, Stock and so on) with one simple product, one variable product and two variations already filled in as examples.

2. Fill in the three fields

  • CSV or TXT file — choose your export.
  • Delimiter — leave it on Auto detect, or pick Comma, Tab, Semicolon or Pipe if you know the file.
  • WooCommerce mode — a single checkbox, Update existing products. Tick it only if you will tick the same box in the WooCommerce importer. The prediction depends on this setting, so match it to the import you actually intend to run.

Click Run dry-run check. The file is parsed in memory, checked, and discarded; it is not stored and nothing is written to the catalog.

the Products → CSV Dry Run form with the 'CSV or TXT file', 'Delimiter' and 'WooCommerce mode' fields and the 'Run dry-run check' button

3. Read the result

The result appears under the form, headed “Result:” followed by your file name. At the top is a row of six cards:

  • Quality score out of 100, coloured green at 90 and above, amber from 70 to 89, red below 70.
  • Create, Update and Skip: how many rows the importer would create, update or leave alone with your chosen mode.
  • Errors (rows with at least one blocking problem) and Warnings (every non-blocking issue).

Under the cards a “File:” line confirms what was read, for example “412 rows, 39 columns, semicolon delimiter”, which is the quickest way to spot a delimiter mistake: a file that shows “412 rows, 1 column” was split on the wrong character. Then comes the verdict. With zero errors you see a green notice, “No blocking errors found. Review warnings, then use the normal WooCommerce importer.”, with an Open WooCommerce importer button beside it. With any error you see a red “Do not import until every blocking error is fixed.”

Take a realistic file: 120 rows, run with “Update existing products” ticked. The cards read Create 83, Update 35, Skip 0, Errors 2, Warnings 5, and the score is 74 (100 minus 2 × 8 minus 5 × 2), shown in amber. The two error rows are what stand between you and the green notice; the five warnings are worth a look but will not stop the import.

the result header with the quality score, Create / Update / Skip / Errors / Warnings cards, the 'File:' line and the notice

4. Check the column mapping

The WooCommerce mapping section lists three things. Mapped: shows every column Catalogafe matched to a WooCommerce field, using the same names the WooCommerce exporter writes, plus the numbered Attribute N name / value(s) / visible / global / default, Download N id / name / url and Meta: … columns. Recommended but missing: appears when Type, SKU or Name is absent. Not mapped: lists headers WooCommerce will ignore, which is where a renamed Price column (WooCommerce expects Regular price) or a stray Notes column shows up. If a column you need is under “Not mapped”, fix the header before anything else, because every value in it would be dropped by the importer.

5. Work through the issues table

The Issues table has four columns: Line, Level, Code and Issue. Line is the real line number in your file, counting the header as line 1 (line 2 if the file starts with Excel’s sep= hint), so you can jump straight to it in your spreadsheet. Header-level issues show “Header” instead of a number. The table shows the first 200 issues; if there are more, a note under it says how many (“37 more issues are not shown. Fix the first 200 and check again.”). Two examples of what a row looks like:

  • Line 57 · Error · duplicate_sku · The same SKU appears in more than one row.
  • Line 61 · Warning · will_skip_existing · This product already exists and WooCommerce will skip it unless “Update existing products” is selected.
the Issues table with Line, Level, Code and Issue columns showing a mix of errors and warnings

6. Download the fix report, fix the source, run it again

The Fix report section has two buttons, Download CSV and Download JSON. The CSV has four columns, severity, line, code, message, one row per issue, and is named after your file (catalogafe-autumn-catalog-issues.csv). Open it next to your spreadsheet, sort by line, and fix each row at the source. The JSON version carries the full result, including the summary and mapping, for anyone scripting the clean-up. Report links expire after one hour; run the check again for a fresh one. Catalogafe never edits the uploaded file, so the fixes always happen in your spreadsheet, and the next upload is the proof they worked.

Repeat until the Errors card reads 0 and the green notice appears. Then click Open WooCommerce importer, upload the same file, set “Update existing products” to the same value you dry-ran with, and import.

What “create”, “update” and “skip” mean

For each row, Catalogafe looks up the ID and the SKU against the products already in your store (products the importer itself is still writing, in WooCommerce’s temporary “importing” status, are ignored). If either exists, the row is an update when “Update existing products” is on, and a skip when it is off. A skipped row gets a will_skip_existing warning and no further checks, because the importer will not touch it; this is also why a file that you expected to update everything comes back as “Skip 300” when the box is left unticked. If neither identifier exists, the row is a create. A row with any error is counted in Errors rather than as a create or update, because the importer’s result for it cannot be trusted.

How the quality score is calculated

The score starts at 100 and loses 8 points for every row with a blocking error and 2 points for every warning, with a floor of 0. It is a quick read on how much work the file needs; the per-line issue list is what you actually fix. The “safe to import” decision is simpler: zero errors. A file can score 80 and be safe (ten warnings, no errors), or score 92 and be blocked (one error row). Reports keep up to 5,000 issues; the totals in the cards always count every issue in the file.

Read-only by design

Catalogafe never creates, updates or deletes a product, never repairs the uploaded file and never contacts other servers during a check: image and external URLs are checked for format only (HTTP or HTTPS, a valid host, no spaces), not fetched. The import itself is still done by WooCommerce. Details are in the Catalogafe documentation.

Duplicate SKU and GTIN checks before import

SKUs must be unique in WooCommerce, and the importer uses them to decide whether a row matches an existing product. A duplicate therefore does not just fail one row; it can redirect an update to the wrong product. Catalogafe checks identifiers two ways. (For duplicates already in your store and how to resolve them, see how to find and fix duplicate SKUs in WooCommerce.)

Inside the file. The same ID (duplicate_id), SKU (duplicate_sku) or GTIN/UPC/EAN/ISBN (duplicate_global_unique_id) appearing on more than one row is an error. The first occurrence is accepted; every later one is flagged with its line number. If rows 12 and 340 both carry MUG-BLUE, line 340 is reported, which usually means a copy-paste at the bottom of the sheet.

Against your store. An existing ID or SKU is what drives the update-or-skip prediction above. A global unique ID that already belongs to another product is a warning (global_unique_id_exists: “This global unique ID already belongs to another product. Verify it before importing.”), because the usual cause is two listings for the same physical item.

Global unique IDs are also format-checked: they should start with a digit and contain only digits, hyphens and an optional final X (for ISBN-10), at least seven characters in all. A value with letters or spaces, or a short internal code pasted into the barcode column, is flagged as invalid_global_unique_id so a typo does not become a permanent barcode.

Variation and parent errors

Variable products are where imports break most often, because a variation row depends on another row or an existing product. WooCommerce expects the Parent column to hold the parent’s SKU, or its ID written as id:123 (WooCommerce product CSV import schema). Take this fragment of a T-shirt import:

LineTypeSKUParentAttribute 1 nameAttribute 1 value(s)
5variableTEE-001SizeS, M, L
6variationTEE-001-STEE-001SizeS
7variationTEE-001-MTEE-01SizeM
8variationTEE-001-LTEE-001Size

Line 6 is fine. Line 7 gets missing_parent_product (“The Parent ID or SKU does not match an existing product or a variable product in this file.”), because TEE-01 is neither in the store nor a variable row in the file. Line 8 resolves its parent but gets variation_missing_values, since it has no attribute value and would not be distinct from its siblings. The full set of checks:

  • Missing parent (missing_parent, error): a variation row with an empty Parent.
  • Parent not found (missing_parent_product, error): the Parent does not match an existing product in the store, or a variable product row in the same file, by SKU, by id:N or by a bare numeric ID. New parents in the same CSV count, because the WooCommerce importer links them in one run.
  • No attribute values (variation_missing_values, warning): a variation with no Attribute N value(s) filled in.
  • Attribute columns: a used attribute group with a value but no name (attribute_missing_name, error), a variation attribute with a name but no value (attribute_missing_value, error), and an attribute marked global whose taxonomy does not exist in the store (attribute_taxonomy_missing, warning).

Mixed exports have attribute columns on every row; Catalogafe only evaluates an attribute group on the rows that actually fill it, so a simple product sharing a sheet with variations is not penalised for blank attribute cells.

Audit the products already in your store

Most catalogs already contain the problems a bad import would add: duplicate SKUs from an earlier upload, products with no image, variable products with no variations. Catalogafe’s second screen, Products → Catalog Health, runs the same style of read-only check across existing products.

  1. Go to Products → Catalog Health. The page explains its scope in one line: “Check SKUs, global IDs, images, pricing, stock, descriptions, categories, and product structure before the next export or import. This audit is read-only.”
  2. Click Run catalog audit. Catalogafe loads products and variations in every status except trash (published, draft, pending, private and scheduled), up to 10,000 items in ID order, and checks each one.
  3. Read the Catalog health result: a Health score card with the same 100-point formula, then Products, Ready (items with no issue at all), Errors and Warnings, a “Parents: 412 · Variations: 1,180” line, the same Download CSV / Download JSON buttons, and a Catalog issues table whose first column is Product ID instead of a line number.
the Catalog health result with the Health score, Products, Ready, Errors and Warnings cards and the Catalog issues table

What it reports, per product ID:

  • Identifiers: missing SKU (warning), duplicate SKU (error, naming both products: “Products #214 and #388 share SKU “MUG-BLUE”.”), duplicate or malformed GTIN/UPC/EAN/ISBN, duplicate product names (warning), missing name (error).
  • Content (parents only, not variations): missing short description, description, primary image or category, all warnings. External products with a missing URL (warning) or an invalid one (error).
  • Pricing (simple, external and variation products; variable and grouped parents carry no price of their own): missing regular price (warning), invalid or negative regular price, invalid sale price, and a sale price not lower than the regular price (errors).
  • Stock and structure: unknown stock status and out-of-stock products (warnings), negative managed stock (an error here, unlike the dry run, because there is no backorder row to excuse it), and variable products with no variations (error).

Expect the health score to sit lower than a dry-run score on a real store: every out-of-stock product and every missing short description costs two points. Treat the Errors card as the to-do list and the warnings as a backlog. Run the audit after an import to confirm the result matches the dry run, or before a migration to clean up what you are about to export.

A pre-import checklist

  1. Export a fresh CSV from Products → Export as your base, so headers match the importer exactly.
  2. Save as UTF-8 and know your delimiter (or let the dry run detect it and read the “File:” line).
  3. Give every row an ID or a unique SKU; never reuse a SKU across rows.
  4. Put every variation’s parent SKU or id:N in the Parent column, and include the parent row if it is new.
  5. Decide whether this import should update existing products, and dry-run with that exact checkbox value.
  6. Fix every error, read every warning, re-check until the Errors card shows 0 and the green notice appears.
  7. Take a backup, then click Open WooCommerce importer and import with the same setting.
  8. Run Catalog Health afterwards to confirm nothing unexpected landed.

Catalogafe is free, with no paid tier. Install it, run the dry run on your next CSV, and read the documentation if a result needs explaining.

Frequently asked questions

Does WooCommerce have a built-in CSV import preview or dry run?

No. The WooCommerce importer maps columns and then writes products as it processes the file. Catalogafe adds a read-only dry run that predicts the create, update and skip totals and lists every error and warning by line before you import.

Does Catalogafe import or change products?

No. It reads the uploaded file and looks up existing product IDs, SKUs and global unique IDs to predict the importer’s actions. It never creates, updates or deletes products, never edits the file and never contacts other servers during a check. The import is still done by the WooCommerce importer.

How do I find duplicate SKUs before a WooCommerce import?

Run the CSV through Products → CSV Dry Run. Any SKU, ID or GTIN/UPC/EAN/ISBN used on more than one row is reported as an error with its line number. For products already in the store, Products → Catalog Health lists every pair that shares a SKU or global ID.

Why does the WooCommerce importer skip some rows?

The importer matches rows to existing products by ID or SKU. If a match exists and “Update existing products” is off, the row is skipped. Catalogafe marks those rows with a will_skip_existing warning when you dry-run with the same setting, so you can see them before importing.

What does the quality score mean?

It starts at 100 and subtracts 8 points per error and 2 per warning, down to 0. Zero errors means the file is safe to import; warnings are values the importer will interpret differently from what you may expect, so review them.

What file sizes and formats are supported?

CSV or TXT files up to 16 MB and 10,000 product rows, with comma, semicolon, tab or pipe delimiters detected automatically. Reports store up to 5,000 issues; the summary totals count all of them.

Similar Posts