Skip to main content

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.

The Import Data tab with the two file types and the drop area

Import File card​

FieldDescriptionRequiredValues and rules
File typeThe file format; it decides the rest of the card.YesXML 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 typeWhat the CSV file contains.Yes, with CSV FileCustomers or Material & Service. Starts with Customers.
File area"Drag and drop an file or click to import file."YesOne file of the chosen format.
ButtonWhat it does
XML File or CSV FileChooses the file type and removes a file chosen before.
Download CSV Customers Template or Download CSV Material & Service TemplateDownloads 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 areaOpens the file picker.
RemoveRemoves the chosen XML file.
Start ImportShows 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".

The Import Data tab with CSV File chosen, showing the import type and the template button

XML import​

What is imported from the file​

DataWhat happens
UnitsEvery unit that does not exist is added to a unit group named My Unit, in Arabic وحداتي, with conversion factor 1.
CategoriesEvery category whose name does not exist in English in tablies is added as a main category. The category tree is not imported.
ItemsCurrently no item is imported from an XML file, whatever its data. To import items, use a CSV file.
CustomersEvery 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 addressesThe 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.".

The Upload file window during an XML import with the file name and progress bar

FieldDescriptionRequiredValues and rules
FileFile 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.

The XML import results window with the number of items, categories, units and customers

FieldDescriptionRequiredValues and rules
FileFile 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.
ButtonWhat it does
BackCloses 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.

The CSV Upload file window with the file name and the Review File and Cancel buttons

FieldDescriptionRequiredValues and rules
FileFile name and size.——
Uploading...Upload percentage, after you click Review File.—From 0% to 100%.
ButtonWhat it does
Review FileUploads the file and opens the Review File step. Nothing is added to tablies yet.
Cancel, ✕, or a click outside the windowCloses 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.

ButtonWhat it does
✕ next to the step titleOpens the Leave Import Process window.

Review File step​

The Review File step with the file card, the preview table and the Map Columns button

FieldDescriptionRequiredValues and rules
ReviewThe 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.
ButtonWhat it does
Replace fileOpens 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 ColumnsOpens the Map Columns drawer.
Start ImportStarts 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.

The Map Columns drawer with the uploaded columns and system fields

FieldDescriptionRequiredValues and rules
Uploaded ColumnsThe column names in your file.—Read-only. * shows next to the column mapped to the name.
System FieldsThe field filled from the column.YesUnmatched, Don't Import to ignore the column, or one of the material fields or customer fields. Each field can be chosen for one column.
ButtonWhat it does
SaveKeeps 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 fieldTemplate columnRequiredValues and rules
Material NameNameYesNot repeated in the file, and not the English name of an item in tablies. Stored in all languages.
Barcode 1, Barcode 2, Barcode 3Barcode 1 to Barcode 3NoOne barcode per column.
PricePriceYesA number from zero up with a dot as decimal separator, for example 2.25. An empty cell is stored as a zero price.
UnitUnitYesThe exact name of a unit that exists in tablies. New units are not added.
CategoryCategoryYesIf no category has this English name, a main category is added.
DescriptionDescriptionNoText.
Material Nature (1=Stock, 2=Service)Material NatureNo1 or 2. Any other value counts as 1.
Restaurant Type (1=Trade, 2=Prepared, 3=Combo)Material TypeNo1 commercial, 2 prepared material, or 3 combo. Any other value counts as 1.
Tag 1, Tag 2, Tag 3Tag 1 to Tag 3NoThe 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 fieldTemplate columnRequiredValues and rules
NameNameYesNot repeated in the file, and not the English name of a customer in tablies.
Email 1 to Email 3Email 1 to Email 3NoText.
Mobile 1 to Mobile 3Mobile 1 to Mobile 3NoAt most three numbers are stored per customer: mobiles first, then phones.
Phone 1 to Phone 3Phone 1 to Phone 3NoAs above.
DescriptionDescriptionNoText.
Tax NumberTax NumberNoText.
Address name 1Address name 1NoNot repeated among the customer's addresses.
Area 1Area 1Yes, if you fill in any field of the addressThe 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 1Country 1NoThe name of a country defined in tablies, in Arabic or English.
Subdivision 1Subdivision 1NoThe name of a subdivision defined in tablies within the country.
City 1City 1NoText.
Town 1Town 1NoText.
Village 1Village 1NoText.
Address detail area 1Detail area 1NoText.
District 1District 1NoText.
Sector 1Sector 1NoText.
Street 1Street 1NoText.
Alley 1Alley 1NoText.
Postal code 1Postal code 1NoText.
Address description 1Description 1NoText.
Complex 1Complex 1NoText.
Building name 1Building name 1NoText.
Building number 1Building number 1NoText.
Floor 1Floor 1NoText.
Unit 1Unit 1NoText.
PO Box 1PO box 1NoText.

Import File step​

The Import File step with the file card and the progress bar

FieldDescriptionRequiredValues and rules
Progress barImport progress, with "Importing your file. We'll notify you when it's complete." above it.—When it completes, the Result step opens by itself.
ButtonWhat it does
NextShows 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​

The Result step with the import status, the summary and the error log

FieldDescriptionRequiredValues and rules
Import statusThe outcome of the whole import.—Import Successful, Import Partially Successful or Import Failed, with an explaining sentence.
Import SummaryNumbers 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 LogThe rows that were not imported.—Shows if at least one row failed.
Failed recordsNumber of lines in the error log.—It can be higher than the number of failed rows, because a row can be listed twice.
Errors tableThe 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.
ButtonWhat it does
Download Error RecordsDownloads import-error-records.csv with every failed row and its reason. Download it before you start another import.
Upload Another FileReturns to the Import Data tab with the same type and opens the file picker.
FinishReturns 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.

ButtonWhat it does
Yes, LeaveCloses the wizard and returns to the Import Data tab.
BackCloses the window and stays in the wizard.

Messages​

Screen messages​

MessageWhen it appearsWhat to do
You do not have permission to import dataYou 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 400The 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 templateThe template was not downloaded.Check the connection and try again.
Failed to download error recordsThe 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​

MessageWhen it appearsWhat to do
Material name mandatory field is missingThe name is empty.Type the name.
Material name '...' already existsThe name is repeated in the file, or exists in tablies.Change the name or delete the row.
Material price must be a non-negative numberThe price is not a number, or is negative.Correct the price.
Material category is requiredThe category is empty.Type the category.
Material unit is requiredThe unit is empty.Type the unit.
Unit '...' does not existThere is no unit with this name.Add the unit in Units, or correct its name.

Customer row errors​

MessageWhen it appearsWhat to do
Name mandatory field is missingThe name is empty.Type the name.
Customer name '...' already existsThe name is repeated in the file, or exists in tablies.Change the name or delete the row.
Duplicate address name '...' for the same customerTwo addresses in the row have the same name.Change one of the names.
Country '...' is not a known countryThe country is not defined in tablies.Add it in Countries, or correct its name.
Subdivision '...' is not a known subdivisionThe subdivision is not defined, or not within the country.Correct the subdivision name.
Area '...' is not a known areaThe area is not defined, not within the country and subdivision, or the address has no area.Add it in Areas, or correct its name.