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.
Who can do this
Section titled “Who can do this”| 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. |
Before you start
Section titled “Before you start”- 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_unitandpack_size. Any other column is ignored. tiersis the prices, each as the amount in ₦, a slash and the unit, separated by semicolons. The first is the default price. For example300/sachet; 500/pack.aliasesare separated by semicolons too, for examplepcm; paracetamol.- A second file for medication uses is optional. Its columns are
generic,indication,age_groupandnotes. Several uses in oneindicationcell are separated by semicolons. - Each file can be up to 2 MB and 5,000 rows.
The screen
Section titled “The screen”Nothing is written until you have checked the file. The first button checks, the second imports.
The import screen.
- Import products: The title. The line under it says a dry run shows every problem before anything is written.
- Products CSV: The file of products. It is needed.
- Medication uses CSV (optional): A second file with what each product is used for. You can leave it out.
- The limits: At most 2 MB and 5,000 rows per file, header row first.
- 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.
- 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).
- ← All products: Goes back to the list.
Check the file
Section titled “Check the file”The dry run reads every line and reports, but writes nothing.
-
Tap Products CSV and choose the file. The name of the file shows next to the button.
-
If you have a medication uses file, choose it in Medication uses CSV (optional).
-
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.
- Dry run result: The title says this was a dry run. After a real import it reads Import result.
- Created: How many products would be added.
- Duplicates: Lines that match a product already in the catalogue (or an earlier line) by name, strength and default price. They are skipped.
- Errors: Lines with a problem. They are skipped, and listed below.
- Uses created: How many medication uses the second file would add.
- Opening stock posted: Products whose opening count was put into stock. It is 0 unless the file has a
stockcolumn. - Already stocked: Products that already have stock history, so their count was not posted on top.
- Needs a pack size: Counts made in a bigger unit than the product sells in, waiting for a pack size.
- Skipped: Counts that were not posted for another reason.
The lines with a problem.
- Rows with problems: Every duplicate and every error, one line each.
- Line: The line in the file. Line 1 is the header row, so the first product is line 2.
- Name: The product’s name on that line.
- Status: Duplicate (already in the catalogue) or Error (something is wrong with the line).
- Problems: What is wrong, field by field. The list at the end of this page explains the common ones.
Import
Section titled “Import”Importing does what the dry run showed. Lines with a problem are left out and nothing else is held back.
-
Choose the products file and, if you use one, the uses file. Then tap Check the file (dry run).
-
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.
-
Tap ← All products to see them in the list.
If the file cannot be read
Section titled “If the file cannot be read”-
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.
Also on this screen
Section titled “Also on this screen”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.
If something goes wrong
Section titled “If something goes wrong”| What you see | What 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 exists | The 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/sachet | The 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 amount | The 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 unit | The 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 category | The category is not in the list on the product form. Spell it as the list does, for example Antibiotic. |
| is not a known form | The 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 product | Another live product has this barcode. A barcode can be on one product only. |
| archived: must be true or false | The archived cell should be true or false, or empty. |
| is larger than 2 MB | The 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. |
Related
Section titled “Related”Checked against the app on 2026-11-07 (app 8019c2c, server f27cb0f).