Skip to content
English
  • There are no suggestions because the search field is empty.

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:

prioritytasks.MasterData.fields.FirstNametasks.MasterData.fields.LastName
HighMaxMustermann
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?

TypeExampleExplanation
TextMaxContent for text fields
Text areaMax broke a hammer at work.

It needs to be replaced.
 

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 ("...") around the text with line breaks clearly indicate that these values belong together in one cell – no matter how many paragraphs there are.

Number142.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 : is either user or group.

The part after the : is the ID that Vaira uses for the user or the group.

If you add several users and/or groups, make sure to put them in double quotation marks ("...") so that the content is read as one field.

DateYYYY-MM-DD

Content for date fields

The date format must be YYYY-MM-DD, i.e. year-month-day.

Example:

2024-04-25

TimestampYYYY-MM-DDThh:mm:ss+02:00

Content for timestamp fields

The format is RFC3339. The value is made up of:

  • YYYY-MM-DD for year, month and day,
  • T as a separator,
  • the time in the format hh:mm:ss, i.e. hours:minutes:seconds,
  • the offset from UTC; in Germany, this is +02:00 in summer and +01:00 in winter. 

Example:

2024-04-25T13:25:59+02:00

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 ,. Here, too, it's important that all objects are wrapped together in double quotation marks ("...") so that they are imported into one cell.

Important: You must use the IDs of your selection objects here, not the display names!

Checkbox / Booleantrue

Content for checkbox fields

These can be either true or false. For a checkbox, for example, "true" if the checkbox is ticked.

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:

TypeExampleExplanation
prioritylowest, low, medium, high, highest

You have five priorities available for the import: from lowest up to highest.

Upper and lower case don't matter, so you could also import a value like LOWEST or even HiGhEsT.

Vaira also allows the prefix Priority_. So you can also import values like PRIORITY_low or priority_HIGHEST.

priority_noteNew 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:

"annotations.mycompany/abc-123,annotations.mycompany/def-456".

The first part annotations. always stays the same.

The part before the / is a subcategory. Here, you can use your company name, for example. You can also use different subcategories for different annotations.

The subcategory vaira.app is a special case, which you'll learn more about in the next row.

The part after the / is the label. You can use numbers and letters here.

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.
    You can fix the errors in the error CSV and then upload the corrected file to Vaira. You don't need to remove the columns vaira.row and vaira.errors for this; Vaira ignores these columns during the import.

    An error message in the CSV can look like this, for example:
vaira.rowvaira.errorsannotations.vaira.app/commenttasks.t.fields.boolean
2
invalid value for field tasks.t.fields.boolean: "hello" is not a boolean valueinvalid valuehello
16invalid value for field tasks.t.fields.number: hello is not a numberinvalid valuehello