Skip to main content

Import material cards from a file

Use these steps to enter many materials at once from a text file, or to update the prices of existing materials. The example on this page imports two new materials into an existing group.

Before you begin​

  • Make sure you have the Import Materials Cards permission in Users Management, and that the file is open in normal mode (not multiple-files mode).
  • Prepare the text file: one line per material, columns separated by a Tab character, a comma, a semicolon or another character, and an optional header line at the top. Save it as Unicode so the program reads Arabic names.
  • Every line needs the material code, the material name and one of two fields: the group name or the group code. The program creates a group that it cannot find.
  • Take a backup of the file if you will update existing cards: the import changes the cards directly.

An example of a file with a header line and two lines, the columns separated by a tab character:

Code Name Group Group Code Wholesale Retail
M04 Tea Groceries G02 6.00 6.50
M05 Coffee Groceries G02 12.00 13.50

Steps​

  1. Open File > Import & Export, and click Import Materials Cards. The introduction appears.
  2. Click Next.
  3. Type the file path in the box, or click the browse button next to it and pick the file, then click Next. If the program cannot find the file it shows "The file doesn't exist".
  4. Choose Tab (or the separator that splits your file's columns) and click Next.
  5. Tick Update cards for materials with matching codes only if you want to update materials whose code exists. Leave the options unticked in our example, then click Next.
  6. Type 2 in Start line to skip the header line. Then choose in the first row of the grid what each column holds: Material Code, Material Name, Group Name, Group Code and the first two prices of the first unit. Check the columns against the file lines shown under the lists.
  7. Click Start. The program checks your choices, and if something is missing it shows a message that names the field. Correct it and click Start again.
  8. Answer Yes to "Do you want start importing materials cards". A progress bar runs, then the result message appears. Close it.
  9. The Imported Materials Cards window appears. Click Preview to see the report of the operations, or Close.

Result​

In our example the message "Importing materials cards has been completed." appears with "Total imported materials: 2" under it. The two new materials M04 and M05 have cards in the group with code G02, their wholesale and retail prices as in the file, and their other fields at default values. The report shows two lines, each with the operation Add.

The program keeps the columns you chose, the file, the separator and the update options and shows them the next time.

If something goes wrong​

Message or situationWhy it appearsWhat to do
"You must specify the field: …"You did not choose a column for the material code, name or group.Choose the required columns in the last step.
"Field duplicated: …"You chose the same field for two columns.Choose None for one of them.
A line shows in the report as Ignore with "Code already exists"The material code exists and you did not tick the update option, or the code is repeated in the file.Tick the update option, or change the code in the file.
Ignore with "Duplicate Name"The material name belongs to another material and the file does not allow repeated names.Change the name, or turn on Allow duplicating material name in the program options.
Ignore with "Duplicated Barcode"The barcode is used by another material or on two lines of the file, and Prevent duplicating barcodes is on.Correct the barcode.
Ignore with "No group found"The line has no group name (or group code).Fill the group column.
Prices differ from the fileThe program multiplied the price by the parity of the material's currency, because the file has a Currency Code column.See price and currency columns.

This page applies to alameen ERP 10, version 10.1.79.764.