Skip to main content

Error when importing products – how to fix it

How to fill in the product import file, and what the import error messages mean.

Written by Florence C.L.H. Kröger-Smedmann

Getting an error when you import products from Excel or CSV? Here is how the file should look, what the error messages mean and how to fix them.

How to import products

  1. Go to Administration → Data transfer.

  2. Under Products, click Description for import to download the example file.

  3. Enter one product per row. Delete the four help rows below the headers and the Created at column – see How to fill in the file below.

  4. Click Import and choose the file (Excel or CSV).

  5. Check that each File header is linked to the right Data field. Set columns you do not want to -.

  6. Click Import.

Note: The import saves everything or nothing. If you get an error, none of the products in the file have been imported. Fix the file and import it again.

How to fill in the file

The example file has four help rows below the headers: Field type, Required/Optional, Default and Input options. Read them, then delete them before you import. If they are left in, Catacloud tries to import them as products.

  • Name: required.

  • Product number: must be filled in for every new product, even though the example file says Optional. Each number can only be used once.

  • Type: enter consumable or service. An empty cell becomes service.

  • Net price: required. Numbers only, without a currency, and not negative.

  • Account: required. The income account the product is posted to, for example 3000. The account must exist in the chart of accounts.

  • Vat code: required. An output VAT code, for example 3 for 25% VAT.

  • Unit code: for example item. An empty cell uses the default unit.

  • Description: optional.

  • Active: optional. 1 for active and 0 for inactive. An empty cell becomes active.

  • Created at: delete the column. The product gets today’s date anyway.

Important: Do not enter a date in Created at. Excel stores the date as a number, and the products are imported with a year far in the future. The product list then only shows “Unexpected error”.

What does the error message mean?

The error is shown in red at the bottom of the import window or below the field it applies to.

  • “A product with product number … already exists”: A product with this number already exists, often because the same file has been imported before. Check Products → Product lists. Remove the existing products from the file, or give them new numbers. To change products you already have, see Changing products you already have below.

  • “Product import requires either productNumber or id to upsert”: The product number is missing. Fill in Product number on every row, and check that the column is linked to the Product Number data field.

  • “Account … does not exist”: The account is not in the chart of accounts. Create the account first, or use one that exists.

  • “Empty row(s) not allowed”: A required column has an empty cell. Usually it is the help rows from the example file or empty rows at the bottom of the sheet. Delete them.

  • “Invalid value must be: …”: The value in Type or Unit code is not one of the allowed values. Use one of the values in the list, for example service and item.

  • “Must be a number”: The Net price or Account column contains text, for example a currency.

  • “You cannot use vat code … in products”: The code is not an output VAT code. Use a sales code, for example 3.

  • “Net price on a product cannot be negative”: The price is below 0. Credits are made on the invoice.

Changing products you already have

To update prices, for example, import the products again with the Id column:

  1. Under Products in Administration → Data transfer, click Export.

  2. Make your changes in the file. Do not change the Id column, and delete the Created at column.

  3. Click Import and choose the file.

  4. Choose Id as the data field for the Id column. It then says “If id is selected, existing data will be updated”.

  5. Click Import.

Rows with an Id update the existing product. Rows without an Id become new products.

Undoing an import

If the import went wrong, you can undo it in Administration → Data transfer, on the Log tab. Click the cross to the right of the file, and confirm. The products the import created are deleted.

Note: You can only undo if no vouchers have been posted after the import. Products the import updated are not changed back.

Read more

When should you contact us?

Contact us in the chat if the product list shows “Unexpected error” after an import, or if you cannot get the import to work. Please include:

  • the client,

  • the exact error message (a screenshot is helpful),

  • the file you tried to import.

Did this answer your question?