How must my CSV for bulk importing processes be structured?
Good to know: A CSV file for importing processes has to follow a certain structure. This article explains exactly how.
You can then, for example, create processes in bulk via CSV, add users to your account via CSV or import directory objects into Vaira via CSV.
Bulk import via CSV – how to get it right
The header row – where all references to fields in your workflow go
The header row contains the headings of all columns and therefore also defines the number of columns in the table. Each string is separated by a comma. There's no minimum or maximum number of columns.
General structure
Any number of columns are separated from each other by commas.
priority, tasks.(...).fields.(...), ...
Example
priority, tasks.MasterData.fields.FirstName, tasks.MasterData.fields.LastName
This header row creates three columns.
- The first column
priority
The first column of the table will contain all priority values, - the column delimiter
,
the comma separates this column from the next one, - the second column
tasks.(...).fields.(...)
the second column always takes its values from the task "MasterData" and there from the field "FirstName" (tasks.MasterData.fields.FirstName), - the column delimiter
,
another comma for a new column (,), - the third column
...
there could be any number of further columns here; we fill the third and last example column with values from the task "MasterData" and there from the field "LastName" (tasks.MasterData.fields.LastName). - Result
The header row recognized by Vaira consists of three columns; the first column is a simple priority value, the second and third columns refer to specific field values in tasks.
The body row(s) – this is where your individual processes go
Body rows are all rows below your header row – in other words, the rows that contain the actual content. In principle, they're structured exactly like the header row.
Each row in your CSV represents a row in a table or, for a process import, a single process. Here, too, the comma separates the columns.
One special feature: you can also create empty cells. Two commas in a row are read as an empty cell (,,).
An example table including the header row like this one:
priority | tasks.MasterData.fields.FirstName | tasks.MasterData.fields.LastName |
| High | Max | Mustermann |
| Low | Musterfrau |
becomes this in the CSV:
priority,tasks.MasterData.fields.FirstName,tasks.MasterData.fields.LastName
High,Max,Mustermann
Low,,Musterfrau
The second content row also nicely shows how empty cells are handled in CSVs.
Which field types are supported for the import and what format do the values need?
| Type | Example | Explanation |
|---|---|---|
| Text | Max | Content for text fields |
| Text area | Max broke a hammer at work. | Content for text areas Line breaks are carried over as well. In the CSV, they also take up several lines. The reason this doesn't create separate processes is that the quotation marks ( |
| Number | 142.2345123 | Content for number fields In line with the international standard, the decimal separator here is the period. Make sure not to use commas. In most programs, you can set this when exporting the CSV. |
| User | "user:abcdef,group:123abc,user:aabbbcc" | Content for user fields, to add users or groups based on their ID The part before the The part after the If you add several users and/or groups, make sure to put them in double quotation marks ( |
| Date | YYYY-MM-DD | Content for date fields The date format must be Example:
|
| Timestamp | YYYY-MM-DDThh:mm:ss+02:00 | Content for timestamp fields The format is RFC3339. The value is made up of:
Example:
which in words would be: April 25, 2024 at 1:25:59 PM in the time zone +0200 (Central European Summer Time). |
Selection | "hammer,drill,paper" | Content for selection fields The IDs of the individual objects, each separated by a Important: You must use the IDs of your selection objects here, not the display names! |
| Checkbox / Boolean | true | Content for checkbox fields These can be either Vaira doesn't accept any other values. |
Special types for further imports
In addition to the familiar field types, you can use these special types:
| Type | Example | Explanation |
|---|---|---|
priority | lowest, low, medium, high, highest | You have five priorities available for the import: from Upper and lower case don't matter, so you could also import a value like Vaira also allows the prefix |
priority_note | New deadline due to parallel construction work. | Plain text as a note on a prioritization. |
annotations.(...)/(...) | annotations.mycompany/label | Gives the process a label. You can also create several labels at once; in this case, make sure to wrap all labels in double quotation marks and to use the comma as the separator as well:
The first part The part before the The subcategory The part after the Vaira then takes the value for the label from the corresponding cell in your table. |
annotations.vaira.app/(...) | annotations.vaira.app/sync-group | This annotation follows the familiar pattern but is reserved for sync groups (i.e. linked processes). If you create two or more processes, use the command on the left as the reference in the header row. Then give the processes that should be linked the same value in their respective cells. This links the processes with each other. To find out what linked processes are and how to use them in Vaira, read this comprehensive article: » Guide to linking processes in Vaira |
How Vaira handles errors, detecting errors and fixing them
Here are some of the most common sources of errors and what you can do about them.
- Vaira rejects your imported CSV completely
In this case, something is wrong with the basic structure of your CSV. Please check whether all the fields you want to import really exist in exactly this form in your Vaira workflow. Watch out for typos, too. Also check whether Vaira supports all the field types you want to import. - The import works, but some processes couldn't be created
As long as the basic structure of your CSV is correct and only individual fields contain incorrect values, Vaira runs the import and skips the faulty process rows. After the import, you can download a CSV that lists all faulty rows that weren't imported, including the reason for the error. Each row is a faulty row from your original CSV. The new error columns in the CSV are:
vaira.row: Refers to the row in the original import CSV so you know which row(s) couldn't be imported. Counting in your original CSV starts at 1.vaira.errors: A short explanation of why this row couldn't be imported.
vaira.rowandvaira.errorsfor this; Vaira ignores these columns during the import.
An error message in the CSV can look like this, for example:
| vaira.row | vaira.errors | annotations.vaira.app/comment | tasks.t.fields.boolean |
|---|---|---|---|
2 | invalid value for field tasks.t.fields.boolean: "hello" is not a boolean value | invalid value | hello |
| 16 | invalid value for field tasks.t.fields.number: hello is not a number | invalid value | hello |