Import Data
On this tab you import items, services and customers from a file instead of typing them one by one. The administrator or the person who sets up the system uses it. The steps are in Import materials and customers.
Importing adds new records and never changes existing ones.
Opening the screen
In the side menu, open Settings, then click the Import Data tab.
The tab shows for users with the View permission for Settings in the Settings section, on the Permissions tab of the user record. The import tools show for users with the Add permission on the same row; otherwise "You do not have permission to import data" shows.

Import File card
| Field | Description | Required | Values and rules |
|---|---|---|---|
| File type | The file format; it decides the rest of the card. | Yes | XML File: a file exported from AlAmeen ERP, with items, their categories and units, and customers. CSV File: a table saved as CSV. Starts with XML File. The field name does not show here; it shows in the wizard steps. |
| Import type | What the CSV file contains. | Yes, with CSV File | Customers or Material & Service. Starts with Customers. |
| File area | "Drag and drop an file or click to import file." | Yes | One file of the chosen format. |
| Button | What it does |
|---|---|
| XML File or CSV File | Chooses the file type and removes a file chosen before. |
| Download CSV Customers Template or Download CSV Material & Service Template | Downloads a CSV file with the column names in English and no data. The name follows Import type. Shows with CSV File. |
| Upload, or a click on the file area | Opens the file picker. |
| Remove | Removes the chosen XML file. |
| Start Import | Shows after you choose an XML file and starts importing it. While importing, it reads importing... and is disabled. |
With XML File, this note shows below the file area: "Country & Subdivision should be correctly exported from AlAmeen ERP to be imported with customer information".

XML import
What is imported from the file
| Data | What happens |
|---|---|
| Units | Every unit that does not exist is added to a unit group named My Unit, in Arabic وحداتي, with conversion factor 1. |
| Categories | Every category whose name does not exist in English in tablies is added as a main category. The category tree is not imported. |
| Items | Currently no item is imported from an XML file, whatever its data. To import items, use a CSV file. |
| Customers | Every customer whose identifier or English name does not exist in tablies is added, with tax number, note and picture. Phone numbers are imported if the customer has a mobile number, and e-mails if there is a main e-mail. |
| Customer addresses | The address is added if its country, subdivision and area are known. An area that does not exist is added. Otherwise the customer is imported without the address. |
Upload file window during an XML import
Shows after Start Import, with the title Upload file. It does not close before the import ends, and its ✕ is disabled. Under the progress bar is the text "Please wait while your data is being uploaded. This may take a few moments. Do not close this window or navigate away.".

| Field | Description | Required | Values and rules |
|---|---|---|---|
| File | File name, and uploaded size out of total size. | — | — |
| Uploading... | Upload percentage. | — | From 0% to 100%. The window stays after 100% until the data is stored. |
Import results window
Shows after a successful import, with the title File uploaded.

| Field | Description | Required | Values and rules |
|---|---|---|---|
| File | File name and size, Done, and 100%. | — | — |
| new materials have been added. | Number of items added. Click it to see a table with name, Category and Unit. | — | Currently always 0, and the table is empty. |
| new categories have been added. | Number of categories added. Click it to see them. | — | — |
| new units have been added. | Number of units added. Click it to see them. | — | — |
| new customers have been added. | Number of customers added. Click it to see the first ten. | — | If there are more than ten, this line shows below it: Showing 10 of ... clients. |
| Button | What it does |
|---|---|
| Back | Closes the window. The file stays chosen on the card. |
CSV Upload file window
Shows after you choose a CSV file that contains data, with the title Upload file. It also shows for Replace file in the wizard.

| Field | Description | Required | Values and rules |
|---|---|---|---|
| File | File name and size. | — | — |
| Uploading... | Upload percentage, after you click Review File. | — | From 0% to 100%. |
| Button | What it does |
|---|---|
| Review File | Uploads the file and opens the Review File step. Nothing is added to tablies yet. |
| Cancel, ✕, or a click outside the window | Closes the window and removes the file. |
CSV import wizard
Replaces the whole Settings page and has three steps: Review File, Import File and Result. Every step has a File card with File type, Import type, File Records (the number of data rows), and the file name and size.
| Button | What it does |
|---|---|
| ✕ next to the step title | Opens the Leave Import Process window. |
Review File step

| Field | Description | Required | Values and rules |
|---|---|---|---|
| Review | The first five rows of the file. | — | Each column heading is the system field it is mapped to. An unmapped column shows its name in the file, in red. |
| Unmapped columns notice | "Columns [...] not matching system fields. Map them to start import" | — | Shows while a column is not mapped. |
| Required columns notice | "[...] Required columns are Missing. Map columns or edit the file and upload again" | — | Shows while a required field has no column. |
| Button | What it does |
|---|---|
| Replace file | Opens the file picker for another CSV file. When you choose one, the review step closes and the CSV Upload file window shows; if you cancel it, you are back on the Import Data tab. |
| Map Columns | Opens the Map Columns drawer. |
| Start Import | Starts the import and moves to the Import File step. Disabled while either notice shows. |
Map Columns drawer
Its text is "Review and match the column headers in your file with our system fields.". A column is mapped automatically if its name is the template's English name, ignoring letter case. Anything else, including Arabic names, shows Unmatched.

| Field | Description | Required | Values and rules |
|---|---|---|---|
| Uploaded Columns | The column names in your file. | — | Read-only. * shows next to the column mapped to the name. |
| System Fields | The field filled from the column. | Yes | Unmatched, Don't Import to ignore the column, or one of the material fields or customer fields. Each field can be chosen for one column. |
| Button | What it does |
|---|---|
| Save | Keeps the mapping and closes the drawer. |
| Cancel or ✕ | Closes the drawer and ignores the changes. |
Material and service fields
Listed when Import type is Material & Service. The template column is the column name in the template.
| System field | Template column | Required | Values and rules |
|---|---|---|---|
| Material Name | Name | Yes | Not repeated in the file, and not the English name of an item in tablies. Stored in all languages. |
| Barcode 1, Barcode 2, Barcode 3 | Barcode 1 to Barcode 3 | No | One barcode per column. |
| Price | Price | Yes | A number from zero up with a dot as decimal separator, for example 2.25. An empty cell is stored as a zero price. |
| Unit | Unit | Yes | The exact name of a unit that exists in tablies. New units are not added. |
| Category | Category | Yes | If no category has this English name, a main category is added. |
| Description | Description | No | Text. |
| Material Nature (1=Stock, 2=Service) | Material Nature | No | 1 or 2. Any other value counts as 1. |
| Restaurant Type (1=Trade, 2=Prepared, 3=Combo) | Material Type | No | 1 commercial, 2 prepared material, or 3 combo. Any other value counts as 1. |
| Tag 1, Tag 2, Tag 3 | Tag 1 to Tag 3 | No | The tag is added if it does not exist. |
Customer fields
Listed when Import type is Customers. The address fields come in three sets whose names end in 1, 2 or 3. The table shows the first set.
| System field | Template column | Required | Values and rules |
|---|---|---|---|
| Name | Name | Yes | Not repeated in the file, and not the English name of a customer in tablies. |
| Email 1 to Email 3 | Email 1 to Email 3 | No | Text. |
| Mobile 1 to Mobile 3 | Mobile 1 to Mobile 3 | No | At most three numbers are stored per customer: mobiles first, then phones. |
| Phone 1 to Phone 3 | Phone 1 to Phone 3 | No | As above. |
| Description | Description | No | Text. |
| Tax Number | Tax Number | No | Text. |
| Address name 1 | Address name 1 | No | Not repeated among the customer's addresses. |
| Area 1 | Area 1 | Yes, if you fill in any field of the address | The name of an area defined in tablies, within the country and subdivision given. If empty, the area is looked up by the district, then city, town and village. |
| Country 1 | Country 1 | No | The name of a country defined in tablies, in Arabic or English. |
| Subdivision 1 | Subdivision 1 | No | The name of a subdivision defined in tablies within the country. |
| City 1 | City 1 | No | Text. |
| Town 1 | Town 1 | No | Text. |
| Village 1 | Village 1 | No | Text. |
| Address detail area 1 | Detail area 1 | No | Text. |
| District 1 | District 1 | No | Text. |
| Sector 1 | Sector 1 | No | Text. |
| Street 1 | Street 1 | No | Text. |
| Alley 1 | Alley 1 | No | Text. |
| Postal code 1 | Postal code 1 | No | Text. |
| Address description 1 | Description 1 | No | Text. |
| Complex 1 | Complex 1 | No | Text. |
| Building name 1 | Building name 1 | No | Text. |
| Building number 1 | Building number 1 | No | Text. |
| Floor 1 | Floor 1 | No | Text. |
| Unit 1 | Unit 1 | No | Text. |
| PO Box 1 | PO box 1 | No | Text. |
Import File step

| Field | Description | Required | Values and rules |
|---|---|---|---|
| Progress bar | Import progress, with "Importing your file. We'll notify you when it's complete." above it. | — | When it completes, the Result step opens by itself. |
| Button | What it does |
|---|---|
| Next | Shows for a moment when the import completes and opens the Result step. |
If the import does not succeed, the Review File step returns with a message above it.
Result step

| Field | Description | Required | Values and rules |
|---|---|---|---|
| Import status | The outcome of the whole import. | — | Import Successful, Import Partially Successful or Import Failed, with an explaining sentence. |
| Import Summary | Numbers of what was added. | — | For items: Imported records, Inventory Materials, Service Materials, Categories and Tags; the last two count those created. For customers: Imported records and Customers Addresses. |
| Error Log | The rows that were not imported. | — | Shows if at least one row failed. |
| Failed records | Number of lines in the error log. | — | It can be higher than the number of failed rows, because a row can be listed twice. |
| Errors table | The errors. If there are many, only the first five may show. | — | Row no. (the column-names row is 1), Status with the value Failure, and Notes with the reason. A row whose unit does not exist, or a customer row with an error in its address, can show twice with the same reason. |
| Button | What it does |
|---|---|
| Download Error Records | Downloads import-error-records.csv with every failed row and its reason. Download it before you start another import. |
| Upload Another File | Returns to the Import Data tab with the same type and opens the file picker. |
| Finish | Returns to the Import Data tab. |
Leave Import Process window
Its text is "Leaving the import process will discard all progress and remove the uploaded file.". Records you have imported stay in tablies.
| Button | What it does |
|---|---|
| Yes, Leave | Closes the wizard and returns to the Import Data tab. |
| Back | Closes the window and stays in the wizard. |
Messages
Screen messages
| Message | When it appears | What to do |
|---|---|---|
| You do not have permission to import data | You do not have the Add permission for Settings. | Ask the administrator for the permission. |
| The CSV file is empty. Please upload a file with data. | The file is empty. | Choose a file with data. |
| The CSV file contains only column headers with no data rows. Please add data and try again. | The file has one line. | Add data rows. |
Request failed with status code 400 | The file format is not accepted, or its data is invalid or incomplete. Shows in English in both languages. | Check the file's format and contents, then try again. |
Failed to download template | The template was not downloaded. | Check the connection and try again. |
Failed to download error records | The error file is no longer available, for example because another import started after yours. | Import the file again to get the errors. |
Material row errors
| Message | When it appears | What to do |
|---|---|---|
| Material name mandatory field is missing | The name is empty. | Type the name. |
| Material name '...' already exists | The name is repeated in the file, or exists in tablies. | Change the name or delete the row. |
| Material price must be a non-negative number | The price is not a number, or is negative. | Correct the price. |
| Material category is required | The category is empty. | Type the category. |
| Material unit is required | The unit is empty. | Type the unit. |
| Unit '...' does not exist | There is no unit with this name. | Add the unit in Units, or correct its name. |
Customer row errors
| Message | When it appears | What to do |
|---|---|---|
| Name mandatory field is missing | The name is empty. | Type the name. |
| Customer name '...' already exists | The name is repeated in the file, or exists in tablies. | Change the name or delete the row. |
| Duplicate address name '...' for the same customer | Two addresses in the row have the same name. | Change one of the names. |
| Country '...' is not a known country | The country is not defined in tablies. | Add it in Countries, or correct its name. |
| Subdivision '...' is not a known subdivision | The subdivision is not defined, or not within the country. | Correct the subdivision name. |
| Area '...' is not a known area | The area is not defined, not within the country and subdivision, or the address has no area. | Add it in Areas, or correct its name. |