Import products from a spreadsheet

Load many products at once from an Excel or CSV file: get the template, fill it in, choose what happens to existing SKUs, and optionally price every row in a pricebook.

In plain words: Instead of creating products one by one, you can fill in a spreadsheet and upload it. Commerce reads each row as a product, creates it in the catalog you choose, and can list its price in a pricebook so it can be quoted right away. Read this page when you have more than a handful of products to bring in, or when you want to update many existing ones at once. New to the words? See Commerce basics.

Where to find it: Commerce > left icon rail > Product > Products > Create > Import from a spreadsheet. Or open a catalog (Product > Catalogs > click a catalog), click the down arrow next to its name (Catalog actions) and choose Import from a spreadsheet. Who can use it: people who manage the catalog. If you manage none, the dialog says "You manage no catalog yet."

Why use it

Typing 300 products into a form takes a day and invites typos. A spreadsheet takes minutes, you can prepare it in a tool you already know, and you can run it again later to update prices or descriptions. If your products come from an online shop, Stores is the better route, because it brings them in on its own.

The rules in one place

  • File types: Excel (.xlsx, .xls) or CSV.

  • Up to 500 rows per file. Split a bigger list into several files. Row 1 is the header.

  • Only one thing is required in each row: the name.

  • Products are matched by SKU, your own stock code. A row with no SKU always creates a new product.

  • The import adds ordinary products. Variants (a size or colour of a product) are made on the parent product, see Product variants.

Import step by step

  1. Open the import dialog from either place above. It is titled Import products, or Import products into plus the catalog name when you opened it from a catalog.

  2. Read the box Columns to fill. It lists every column the file may carry, each with a short hint.

  3. Click Download template. You get a spreadsheet with the header row and one example row.

  4. Fill in the sheet. Delete the example row, or overwrite it. Keep the header names exactly as given.

  5. Back in the dialog, if you came from the Products page, pick the catalog in Import into which catalog. When you came from a catalog page, that catalog is already the target and this field is not shown.

  6. Under When a SKU already exists, choose what to do with rows whose SKU is already in the catalog:

    • Skip it, only create new products: existing products are left alone. Their rows are reported as not imported, with the reason.

    • Update it with the row's values: existing products change to match the row.

  7. Under Pricebook, pick where each row's unit price should be listed, or keep Don't add prices to a pricebook. The default is the default pricebook of the catalog's currency.

  8. Click Choose file... and pick your sheet. Commerce reads it and shows the file name, size and number of rows, a preview of the first rows, and a warning if the file has columns that are not part of the template. Those columns are ignored.

  9. Click Import, which also shows the row count, for example Import 120.

  10. Read the report. Three boxes show Created (or Updated), Skipped and Failed. Failures are listed first, one line per row with the row number and the reason. Click Show issues only to hide the rows that went well.

The Import products dialog
The import report

The columns

Column

What goes in it

sku

Your stock code. It is how a repeat import finds the same product again

name

Required. The product name

code

Leave blank and the catalog numbers the product for you

barcode

EAN or UPC, kept exactly as typed

description

The long description shown on the product page

classification

Free text such as Furniture. Shipping and search read it

catalog_category

A category name from this catalog's tree. If it is not found, the product is still created, with a note

unit_price

The list price, for example 1250000 or 1,250.50

currency

A currency code such as USD. It defaults to the catalog's currency

salable

yes or no. No means reference only, never sold

subscription

yes or no. Is it billed on a recurring cycle

interval

month, quarter or year. What the price is per

unit_cost

What you pay for it. Only catalog managers see it

track_inventory

yes or no. Keep stock levels

requires_delivery

yes or no. Does it physically ship

weight_g

Grams. Leave blank when unknown, never type 0

length_mm, width_mm, height_mm

Millimetres

hs_code

The customs tariff code

origin_country

A two-letter country code such as VN

labels

Label names from this catalog, separated by a semicolon

You only need the columns you care about. A column that is not in your file leaves that fact alone on an existing product. An empty cell in a number column (price, cost, weight, size) also leaves the value alone. An empty cell in a text column, such as description, replaces the old text with nothing. This means you can update only prices with a file that has just sku and unit_price.

Worked example. Northwind has 40 workshop products. The file has sku, name, unit_price and salable. Row 1: DESK-01, "Standing desk", 480, yes. On the first run with Skip it and the default pricebook, 40 products are created and 40 prices added. A month later prices rise. You upload sku and unit_price only, with Update it with the row's values: the 40 products update. The pricebook, however, keeps the old numbers.

Prices and the pricebook

Quotes take prices from a pricebook, never from the product. That is why the dialog offers Pricebook. With a pricebook chosen, each row that has a unit_price is listed there as it lands, and the dialog confirms it with a message such as "40 prices added to Standard 2026".

The hint under the field says it all: it adds each row's unit price here, never changing a price already in it. If a product is already priced in that book at another number, the book keeps its own price and the report notes it. To change a price that is already in a book, edit it there, see Price entries.

A row that cannot be priced there, for example a reference-only product, a currency the book does not take, or a recurring interval the book cannot hold, is still imported. A note on its row says why it was not priced.

Troubleshooting

Problem

Why it happens

What to do

"SKU ... already exists" on a row

The SKU is in the catalog and you chose Skip it

Choose Update it with the row's values, or remove the row

"Duplicate sku in this file"

Two rows share a SKU

Keep one row per SKU

"SKU ... is in another catalog"

The SKU belongs to a product in a different catalog

Import into that catalog

"SKU ... belongs to a variant"

Variants are edited on their parent product

Edit it there

"name: required"

A new product row has no name

Fill in the name

A number is rejected

The cell is not a number or an amount

Remove currency symbols and letters

"write yes or no"

A yes/no cell has another word

Use yes or no

Nothing happens after choosing a file

The file has a header but no data rows

Add rows below the header

The import button stays grey

No file has been read yet, or the file has no rows

Choose the file again

Imported products are missing from quotes

They have no price in a pricebook, or are not salable

Re-import with a pricebook, or add prices, see Price entries