Skip to main content

Import materials and customers

Importing adds hundreds of items or customers at once from a file. Use it when you start with tablies, or to add a large group of items. It adds new records and never changes existing ones.

FileWhen to use itWhat it imports
CSV FileYou have a table from any program, or you fill in a ready template.Items and services, or customers and their addresses, in two separate files.
XML FileYou have a file exported from AlAmeen ERP.Units, categories and customers together. Currently it does not import the items; import them from a CSV file.

Before you begin​

  • You need the View and Add permissions for Settings in the Settings section, on the Permissions tab of the user record.
  • To import items from CSV: add the units first, because the import does not create them. See Units of measure. Categories and tags are created automatically.
  • To import customer addresses from CSV: add the countries and areas first. See Countries and areas.
  • The import recognizes existing items, categories and customers by their English names. If English is not one of your languages, importing a file twice adds duplicate records. A file with Arabic names adds again an item or category whose English name is different.
warning

An import cannot be undone. Try a file with a few rows first, and check the result before you import the whole file.

Steps​

Import a CSV file​

  1. In the side menu, open Settings, then click the Import Data tab.

  2. Click CSV File.

  3. In Import type, choose Material & Service or Customers. It starts with Customers.

    The Import Data tab with CSV File and the import type Material & Service

  4. If you don't have a file, click Download CSV Material & Service Template or Download CSV Customers Template, fill it in with a spreadsheet program, and save it as CSV in UTF-8. Keep the column names as they are.

  5. Drag the file to its area, or click Upload and choose it.

  6. In the Upload file window, click Review File.

    The Review File step opens with the first five rows.

  7. If a notice lists unmatched or missing columns, click Map Columns. Choose a field for each column, or Don't Import, then click Save.

    The Map Columns drawer with the uploaded columns and system fields

  8. Check the preview, then click Start Import.

  9. In the Result step, read the summary. If rows failed, click Download Error Records.

    The Result step with the import summary and the error log

Fix the failed rows​

  1. Open import-error-records.csv. Its row numbers count the column-names row as 1. If a row is listed twice with the same reason, correct it once.
  2. Make a file with only the failed rows, and correct them. Rows that were imported are rejected if you import them again, because their names now exist.
  3. Click Upload Another File and import the corrected file.

Import an XML file​

note

The XML import adds units, categories and customers. Currently it adds no items, so the number of new materials is always 0. Import the items from a CSV file.

  1. In the side menu, open Settings, then click the Import Data tab.
  2. Keep XML File chosen, then drag the file to its area, or click Upload and choose it.
  3. Click Start Import and wait until the Upload file window closes.
  4. Read the numbers in the results window, then click Back.

Result​

Items show in the Materials & Services list and customers in the clients list. After the import, complete what does not come from the file:

  • Translations of the names. The same name is stored in all languages.
  • Item pictures and taxes.
  • Prices of items priced zero or below 1.
  • Definitions of prepared materials and combos. See Define prepared materials and Create combo meals.
  • Placing the items in menus. See Create menus.

If something goes wrong​

MessageWhy it appearsWhat to do
The CSV file contains only column headers with no data rows. Please add data and try again.The file has no data rows.Add the rows and save the file.
Request failed with status code 400The file format is not accepted, or its data is invalid or incomplete.Check that the file has the chosen format, then try again.
Unit '...' does not existThe unit name does not match a unit in tablies.Add the unit, or correct its name.
Material name '...' already existsThe name is repeated in the file, or exists in tablies.Change the name or delete the row.
Area '...' is not a known areaThe address area is not defined, or the address has no area.Add the area, or empty all fields of the address.

All messages are listed in Import Data.