Skip to content

Import products from a file

Add many products at once from a spreadsheet saved as a CSV file, check it first with a dry run, and see every line that has a problem.

Can do this Owner, Manager, Inventory clerk
Can’t do this Pharmacist, Cashier, Accountant, Auditor
Custom roles Need Add and edit products and prices under Products and stock in the role editor
Plan Every plan.
A product with the same name, strength and default price as one already in the catalogue Skipped as a duplicate, so importing the same file twice is harmless.
A line with a problem Is reported and skipped. The other lines are still imported.
A file over 2 MB or over 5,000 rows Refused before anything is sent.
The pharmacy is read-only, for example because its subscription is overdue, or you may not change the catalogue Check the file (dry run) and Import are greyed out and cannot be tapped.
  • Make the file in a spreadsheet and save it as CSV. The first row names the columns. Only name is needed.
  • The columns QuickPharms reads are: name, generic, strength, form, category, tiers, aliases, barcode, nafdac_no, dosage_adult, dosage_kid, dosage_source, storage_need, vat_override, archived, and, for an opening stock count, stock, stock_unit and pack_size. Any other column is ignored.
  • tiers is the prices, each as the amount in ₦, a slash and the unit, separated by semicolons. The first is the default price. For example 300/sachet; 500/pack. aliases are separated by semicolons too, for example pcm; paracetamol.
  • A second file for medication uses is optional. Its columns are generic, indication, age_group and notes. Several uses in one indication cell are separated by semicolons.
  • Each file can be up to 2 MB and 5,000 rows.

Nothing is written until you have checked the file. The first button checks, the second imports.

The import screen.

The import screen.
  1. Import products: The title. The line under it says a dry run shows every problem before anything is written.
  2. Products CSV: The file of products. It is needed.
  3. Medication uses CSV (optional): A second file with what each product is used for. You can leave it out.
  4. The limits: At most 2 MB and 5,000 rows per file, header row first.
  5. Check the file (dry run): Reads the file and shows what would happen. It writes nothing. It is greyed out until you choose a products file.
  6. Import N rows: Does the import. It is greyed out until a dry run has finished, and when the dry run would create nothing. Then it names the number of products that will be created: Import 1 row or Import 4 rows. A read-only pharmacy cannot tap it, or Check the file (dry run).
  7. ← All products: Goes back to the list.

The dry run reads every line and reports, but writes nothing.

  1. Tap Products CSV and choose the file. The name of the file shows next to the button.

  2. If you have a medication uses file, choose it in Medication uses CSV (optional).

  3. Tap Check the file (dry run). The result appears under the form.

    “Dry run finished; nothing was written” The file was read and nothing was saved. Read the result before you import.

The dry run’s result.

The dry run’s result.
  1. Dry run result: The title says this was a dry run. After a real import it reads Import result.
  2. Created: How many products would be added.
  3. Duplicates: Lines that match a product already in the catalogue (or an earlier line) by name, strength and default price. They are skipped.
  4. Errors: Lines with a problem. They are skipped, and listed below.
  5. Uses created: How many medication uses the second file would add.
  6. Opening stock posted: Products whose opening count was put into stock. It is 0 unless the file has a stock column.
  7. Already stocked: Products that already have stock history, so their count was not posted on top.
  8. Needs a pack size: Counts made in a bigger unit than the product sells in, waiting for a pack size.
  9. Skipped: Counts that were not posted for another reason.

The lines with a problem.

The lines with a problem.
  1. Rows with problems: Every duplicate and every error, one line each.
  2. Line: The line in the file. Line 1 is the header row, so the first product is line 2.
  3. Name: The product’s name on that line.
  4. Status: Duplicate (already in the catalogue) or Error (something is wrong with the line).
  5. Problems: What is wrong, field by field. The list at the end of this page explains the common ones.

Importing does what the dry run showed. Lines with a problem are left out and nothing else is held back.

  1. Choose the products file and, if you use one, the uses file. Then tap Check the file (dry run).

  2. Tap Import 4 rows. The button names how many products will be created.

    “Imported 4 products” The products are in the catalogue. The number is how many were created. The tiles under Import result show the same figures as the dry run. Open Products to see them.

  3. Tap ← All products to see them in the list.

  1. Choose a products file whose first row has no name column, and tap Check the file (dry run).

    “The products file has no “name” column” The first row of the file has no column called name. Add it, save the file as CSV and choose it again.

These have their own pages:

  • Add product: adds one product by hand. See Add a product.
  • A product with no pack size: is created, but its opening count waits. Fill in the pack size on the product’s prices (see Edit a product and its prices), then import again. See Edit a product and its prices.
What you seeWhat to do
“Dry run finished; nothing was written”The file was read and nothing was saved. Read the result before you import.
“Imported 4 products”The products are in the catalogue. The number is how many were created. The tiles under Import result show the same figures as the dry run. Open Products to see them.
“The products file has no “name” column”The first row of the file has no column called name. Add it, save the file as CSV and choose it again.
a product with this name, strength and price already existsThe line is a Duplicate: the catalogue already has this product, so it is skipped. Nothing to do, unless the price changed: then change it on the product’s page.
must be price/unit, like 300/sachetThe tiers cell is wrong. Write each price as the amount, a slash and the unit, for example 300/sachet, and separate several with semicolons.
the price is not an amountThe amount in tiers has a letter or a symbol in it. Use figures, with a point for kobo, for example 300 or 300.50.
unit is not a known unitThe unit in tiers is not one QuickPharms knows. Use a unit from the Units list, or add your own there first. See Add a quantity unit.
is not a known categoryThe category is not in the list on the product form. Spell it as the list does, for example Antibiotic.
is not a known formThe form is not in the list on the product form. Spell it as the list does, for example Tablet.
barcode: already belongs to a live productAnother live product has this barcode. A barcode can be on one product only.
archived: must be true or falseThe archived cell should be true or false, or empty.
is larger than 2 MBThe file is too big. Split it in two and import each.
has … rows; the limit is …The file has more than 5,000 rows. Split it and import each part.

Checked against the app on 2026-11-07 (app 8019c2c, server f27cb0f).