Import from CSV¶
Most sections can add many records at once from a CSV file, a spreadsheet saved as CSV. Click Import () in the section's table toolbar. You need Create/Edit in the section's area; the import of User management is for admins only. Without the rung the button is greyed out.
This page explains what every import shares. Each section's page explains its own columns in detail.
Importing step by step¶
- Open the section's table and click Import.
- If the dialog shows Select template, pick what the file holds: the records themselves, or extra data such as supplier prices or checklist entries.
- If it shows Template for, pick the blueprint, or the kind of row, whose columns you want to see.
- Click Download template () and fill the file in a spreadsheet, one record per row, under the header row.
- Save it as CSV.
- Drag the file onto the dialog's drop area, or click the area to choose it.
- Click Import (). It stays greyed out until a file is chosen.
If every row is fine, a green message says how many rows were imported, such as "12 rows imported", and the table reloads. If not, nothing is imported and the dialog lists the problems; see Errors.
Tip
Try a file with two or three rows first. Once they come out right, import the rest.
The template¶
The dialog's guide table has two columns:
- CSV column: the name to put in the header row. A red * marks a required column, and a column whose value no other record may share.
- Note: what goes in the cell, what a blank cell means ("Blank means ..."), and any rules.
Download template gives a CSV file with just the header row.
The header row follows these rules:
- Every required column must be there.
- Optional columns may be left out, and columns may come in any order.
- Upper and lower case in the names don't matter.
- A column the import does not know is refused, and so is a name used twice.
The column names are the same in every language, such as name, blueprint or assigned_to.
Template for changes only the guide and the downloaded template:
- On Individual items, Lot items and Assemblies it picks a blueprint, and the guide adds that blueprint's custom field columns. One file may still mix blueprints: each row reads the custom fields of its own blueprint.
- On a Custom fields template it picks a field type, and on the Items template of Invoices a kind of line. The guide then lists only the columns that kind of row reads. One file may still mix kinds.
File rules¶
| Rule | What JAI Tool accepts |
|---|---|
| Encoding | UTF-8, with or without the byte-order mark Excel adds to "CSV UTF-8", or Windows-1250. |
| Separator | Comma, semicolon or tab. JAI Tool picks the one used most in the header row. |
| Size | At most 5 MB and 2000 rows. Blank rows are skipped and don't count. |
| Rows | No row may have more cells than the header has columns, and no value may sit in a column without a name. |
| Spaces | Spaces at the start and end of a cell are ignored. |
Cells:
| Kind of cell | How to write it |
|---|---|
| Yes or no | true or false, in any case. A blank cell means false, unless the Note says otherwise. |
| Number | Digits, with a dot or a comma as decimal mark: 12.5 or 12,5. Spaces are ignored, so 1 234,50 works; 1,234.50 does not. |
| Whole number | Digits only. |
| Date | The date format set in System settings, shown in the Note, such as YYYY-MM-DD. Leading zeros and spaces may be left out, so 6. 10. 2026 reads in the DD.MM.YYYY format. Month names are the English three-letter ones. |
| A choice | One of the values the Note lists, written exactly as shown, such as unpaid or paid. |
| Several values | Separated by a vertical bar; see below. |
| Another record | Its name; see Referring to other records. |
A cell with several values separates them with a vertical bar, such as ann@example.com|bob@example.com.
Names and options may contain spaces and commas, so the bar is the only separator.
A cell exported by JAI Tool may start with an apostrophe before =, +, - or @; see Export filtered rows.
The import removes that apostrophe, so exported values come back as they were.
Referring to other records¶
A cell that names another record, such as a blueprint, customer or location, takes that record's name. The Note says which kind, such as "Item blueprint name" or "Customer name".
- Upper and lower case don't matter.
- Users are named by email address.
- A record without a name of its own is named as the app shows it, such as
Sensor hub board v2 #143. - The record must exist, or the row is refused: "There is no customer "Acme"."
- It must also be allowed in that place; for example a supplier must be a partner with a supplier role, or the row is refused: "This partner cannot be chosen here."
Some columns take more than one kind of record:
| Column | What it takes |
|---|---|
assigned_to |
An email address means a user; anything else is a location name. No record name may be an email address, so the two never mix. On Lot items only a warehouse location. |
serviced |
The name of an assembly or of an individual item (Maintenance). |
maintainer |
User emails separated by a vertical bar, a partner name, or any other text, which is saved as written (Maintenance). |
Custom field columns¶
Each custom field is a column named cf_ followed by the field's key, such as cf_serial_number for a field labelled "Serial number".
The key comes from the label the field had when it was created, and renaming the field keeps it, so take the names from the template.
- In Categories, Partners, Locations, Customers, Invoices, Maintenance and User management, the section's fields are in the records template.
- In Individual items, Lot items and Assemblies, the template lists the fields of the blueprint picked in Template for. A value in a field the row's blueprint does not have is refused: "blueprint has no such field. Leave it blank on this row."
| Field type | Cell |
|---|---|
| Text | Any text. If the field is unique, no other record may use the value; for blueprint fields, no other record of the same blueprint. |
| Checkbox | true or false. |
| Radio, Dropdown | Exactly one of the options the Note lists, or blank. |
| Date | A date in the system's date format. |
To create or change the fields themselves from a file, pick the Custom fields template; its columns are below.
Errors¶
An import is all or nothing. JAI Tool checks every row; if any row has a problem, nothing at all is imported, a red message says "Nothing imported", and the dialog lists every problem it found.
- A problem in a row reads "Row 5, customer: There is no customer "Acme"." Row numbers are the spreadsheet's own: the header is row 1, and blank rows count.
- A problem with the whole file has no row, such as "The file is larger than 5 MB.", "The file is not text. Save it from Excel as CSV." or "Two columns have the same name."
- A problem in the header names the column, such as "Unknown column. The template lists the columns this import takes." or "This column is required."
- The first 100 problems are listed, then "And 12 more problems."
Fix the file and import it again; nothing from the failed attempt was saved.
Other rules:
- The records templates only create records. A name another record already uses is refused, such as "Another category already uses this name."; change existing records in the app, or with Edit multiple.
- A file may not name the same record twice, such as two rows with one name: "Row 3 already has this name."
- A blank cell takes the default the Note gives ("Blank means ...").
Some other templates can also change existing data: Supplier prices, Custom fields, Added blueprints, the Items of invoices, Checklist and Permissions. In these, a blank cell usually keeps the existing value; the Note says so per column. When a file would change existing rows, the dialog warns first, such as "This import will also update 3 existing rows.", and shows Slide to confirm. Drag the slider all the way to the right to import. Choosing another file cancels the warning.
Every record an import creates gets a Created entry in its History, as if made by hand. New accounts from the User management import are emailed a link to choose a password when email is set up; otherwise each account's link is on its Actions tab, see User management.
Sections with an import¶
| Section | Select template | Template for |
|---|---|---|
| Items > Individual items | The blueprint | |
| Items > Lot items | The blueprint | |
| Items > Individual blueprints | Blueprints, Supplier prices, Custom fields | The field type (Custom fields) |
| Items > Lot blueprints | Blueprints, Supplier prices, Custom fields | The field type (Custom fields) |
| Assemblies > Assemblies | Assemblies, Added items | The blueprint (Assemblies) |
| Assemblies > Blueprints | Blueprints, Custom fields, Added blueprints | The field type (Custom fields) |
| Invoices | Invoices, Items, Custom fields | The kind of line (Items), the field type (Custom fields) |
| Maintenance | Maintenance records, Checklist, Custom fields | The field type (Custom fields) |
| Categories | Categories, Custom fields | The field type (Custom fields) |
| Partners | Partners, Custom fields | The field type (Custom fields) |
| Locations | Locations, Custom fields | The field type (Custom fields) |
| Customers | Customers, Custom fields | The field type (Custom fields) |
| User management (admins) | Users, Permissions, Custom fields | The field type (Custom fields) |
The Order list and Restore deleted have no import.
Columns of each import¶
A quick reference; * marks a required column, and cf_… stands for the custom field columns.
The guide in the dialog has the full notes, and each section's page explains the columns.
| Import | Columns |
|---|---|
| Individual items | blueprint*, name, faulty, reserved, retired, customer, assigned_to, due_date, note, cf_… |
| Lot items | blueprint*, name, quantity (needed on every row), customer, assigned_to, note, cf_… |
| Individual blueprints: Blueprints | name*, category, manufacturer, min_stock, note |
| Lot blueprints: Blueprints | name*, category, manufacturer, unit, min_stock, note |
| Item blueprints: Supplier prices | blueprint*, supplier*, lead_time_days, supplier_code, min_qty, unit_price |
| Item and assembly blueprints: Custom fields | blueprint*, label*, type, options, unique |
| Assemblies | blueprint*, name, customer, manufacturer, assigned_to, due_date, note, cf_… |
| Assemblies: Added items | assembly*, name, quantity, blueprint, warehouse_location |
| Assembly blueprints: Blueprints | name*, min_buildable, note |
| Assembly blueprints: Added blueprints | blueprint*, name*, amount |
| Invoices | name, supplier*, date, payment, delivery, note, cf_… |
| Invoices: Items | invoice*, add_method*, name, description, quantity, blueprint, unit_price, vat_rate, warehouse_location |
| Maintenance records | name, serviced*, status, completed_on, maintainer*, note, cf_… |
| Maintenance: Checklist | maintenance*, text*, done |
| Categories | name*, note, cf_… |
| Partners | name*, role, note, cf_… |
| Locations | name*, warehouse, address, latitude, longitude, note, cf_… |
| Customers | name*, note, cf_… |
| Users | email*, first_name*, last_name*, cf_… |
| Users: Permissions | email*, admin, items, item_blueprints, assemblies, assembly_blueprints, invoices, maintenance, categories, partners, locations, customers |
| Sections with their own fields: Custom fields | label*, type, options, unique |
In the Custom fields templates:
typeistext(when blank),checkbox,radio,dropdownordate.optionslists a Radio or Dropdown field's options separated by a vertical bar, such asRed|Green|Blue; an option cannot contain a comma.uniqueistrueorfalse, for Text fields only.- A row whose label the blueprint or section already has changes that field; fields the file leaves out are kept.
In the Items template of Invoices, add_method is create, link existing individual items, link existing lot items, non-stock, shipping or vat, and each method reads only some of the other columns; see Invoices.
In the Permissions template, each area column takes none, view, edit or delete, and admin takes true or false; see User management.
Each section's page gives the details: Individual items, Lot items, Assemblies, Assembly blueprints, Invoices, Maintenance, Categories, Partners, Locations, Customers and User management.
