How do I import directory objects in Vaira Office?
Before you start: You should already be familiar with the purpose of directories and know roughly how they're structured.
The basics
You have a long list of components, entries for your bill of quantities, or something similar, and you don't want to enter them all by hand in Vaira Office? Understandable. That's why you can easily upload your data to Vaira as a CSV file.
- Sign in to Vaira Office as usual.
- Click Workflows in the header bar at the top and select Directories from the menu.
- If you haven't done so yet, create a new directory here. You can just as well open an existing directory by clicking it in the list.

Prepare the directory
First, make sure your table includes all the important information your components should have. To do this, you need to set up your directory and add the appropriate fields. Here's how: How can I set up my directories in Vaira Office and change the structure of my directory table?
Upload objects with a (template) CSV
Why use a template?
Once you've defined all the fields and properties of your directory, you can upload objects. You can think of directories as Excel tables in which each object takes up one row and each object field and object property has its own column. That's why it's important that the structure of your CSV matches the structure of your directory.
Download the template
The easiest way is to use the CSV template that Vaira provides. It already contains the structure of your directory, so all you have to do is copy your data into this table format. Here's how:
- In your directory, click the three-dot icon in the top right corner.
- Select Import assets.

- The Import directory window opens. Under CSV delimiter, click the separator you want to use in the template and in your CSV: comma, semicolon, Space, or Tabulator (tab). If you're not sure what this means, you'll find an explanation further down.
- Then click the Download Template button in the bottom left corner of the window. Your browser downloads the file as usual.

Why the delimiter matters
When choosing the delimiter, make sure it doesn't appear anywhere else in your table, or the data may be misread. For example, if Max Mustermann had several occupations in a sample table, a CSV with a comma as the delimiter might look like this:
Name,Vorname,Alter,Beruf
Mustermann,Max,24,Schornsteinfeger, Gärtner und Hobbyfotograf
Musterfrau,Monika,48,Sachbearbeiterin
Bauleiter,Bernd,52,Bauleiter
The problem: Max's row now has one more column than the header row specifies. As a result, the values no longer end up in the right columns and the import fails. In a case like this, it's better to choose the semicolon or the tab as the delimiter.
Good to know: When you upload your CSV later, Vaira automatically detects the delimiter from the header row and selects it in the window for you. Still, give the selection a quick check before importing.
After downloading the template CSV
The download gives you a CSV template that you can open in any common spreadsheet program and that has exactly the format you need. The first row contains Vaira's system columns, followed by the IDs of your object properties as separate columns. Now all you have to do is copy the data from your own table columns into the matching columns of the template CSV.
In our example, the directory has the object properties Hersteller (manufacturer, ID hersteller) and Nennweite (nominal size, ID nennweite). The header row of the template then looks like this:
asset_id,display_name,fields,pinned_fields,hidden_fields,symbol,restrict_geometry_types,assignable_geometry_types,hersteller,nennweite
Important: Don't change the header row or the column order of the template CSV afterward. Stick to the structure. That way, you can be sure all your data ends up in the right field when you import it. If you want to add or remove columns, do this in Vaira Office, as described for setting up the table. Then download the template again so it includes the changes.
Of course, you can also build your own CSV table with the IDs instead. Since this can be very error-prone, though, we strongly recommend using the template.
Fill in the CSV
Now it's up to you to fill the CSV with your data. If you already have your own table, simply copy the contents of its columns into the matching columns of the template file. Otherwise, you can of course type all the data into this table by hand.
The columns further to the right are your object properties and are therefore completely individual. The first eight columns are Vaira system columns and mean the following:
- asset_id: This is the ID of your object. It may contain letters (no umlauts), numbers, hyphens, underscores, and periods and can be up to 40 characters long. Spaces aren't allowed.
- display_name: This is the display name of your object. It can't be empty but otherwise isn't subject to any special rules.
- fields: Here you enter the IDs of the object fields that should be active for this object. This is the same as checking the box in front of an object field, since not every object field of a directory has to be active for every directory object. Separate multiple IDs with a comma without spaces.
- pinned_fields: Here you specify which fields should be pinned for this object. Enter the IDs of the fields; separate multiple fields with a comma without spaces.
- hidden_fields: Here you specify which fields should be hidden for this object. Enter the IDs of the fields; separate multiple fields with a comma without spaces.
- symbol: This contains a path to the symbol assigned to your directory object, for example
organizations/<organization ID>/symbolSets/<symbol set ID>/symbols/<symbol ID>. This column matters mainly when you back up finished data sets with Export assets to import them again later. That way, the assignments carry over smoothly.
However, we advise against filling in this field by hand. If you want to add symbols to brand-new objects, it's better to leave this field empty, import all components, and then assign the symbols in Vaira Office. Here's how: How do I assign a symbol from a symbol set to directory objects (e.g. components)? - restrict_geometry_types: This column only takes the values TRUE or FALSE. Here you specify whether the object can only be assigned to certain measurement objects: points, lines, or polygons.
Important: Really enter TRUE or FALSE (true/false or 1/0 also work), not localized terms such as the German WAHR or FALSCH. Some spreadsheet programs convert the values automatically when saving, so check this before importing. If you enter TRUE here, the next column becomes relevant. If you enter FALSE or leave the cell empty, the next column is ignored. - assignable_geometry_types: If the previous column contains TRUE, this is where you specify which measurement objects your directory object may be assigned to. Here, too, separate multiple values with a comma without spaces. The keywords are:
Pointfor individual pointsLineStringfor line objectsPolygonfor polygon objects
Point,LineString. In Vaira Office, you'll later find this setting on the object under Restricted assignable geometries with the options Points, Lines, and Polygons.
A completed CSV with a few components, using the semicolon as the delimiter, might look like this:
asset_id;display_name;fields;pinned_fields;hidden_fields;symbol;restrict_geometry_types;assignable_geometry_types;hersteller;nennweite
Muffe_DN100;Muffe DN 100;einbaudatum;;;;FALSE;;Musterhersteller;100
Schieber_DN150;Absperrschieber DN 150;einbaudatum;;;;TRUE;Point;Musterhersteller;150
Hydrant_DN80;Unterflurhydrant DN 80;einbaudatum;;;;TRUE;Point;Musterhersteller;80
Rohr_PE110;Rohr PE 110;einbaudatum;;;;TRUE;LineString;Musterhersteller;110
All other columns are your individual columns with their respective field types. Make sure you enter suitable values in the cells. For example, you can't import text into a number field. The following field types require a fixed format:
- Number: with a period as the decimal separator, for example
12.5instead of12,5 - Date: in the format year-month-day, for example
2026-11-30 - Checkbox:
TRUEorFALSE - Selection: the IDs of the selection options, multiple IDs separated by commas without spaces
Save the CSV
You can then save the file as usual. The only important thing is to choose the CSV file type with UTF-8 encoding.
Important: Your CSV has to be saved as CSV with UTF-8 encoding so that special characters such as umlauts (Ä, Ö, Ü) are imported correctly. To learn what UTF-8 is and how to save the file correctly, see this guide: How can I save a CSV in UTF-8 format?
Import the CSV
You import your CSV data in the same window where you downloaded the template.
- Go to Workflows > Directories and open the directory you want to import the objects into.
- Click the three-dot icon in the top right corner and select Import assets.
- Click the Upload CSV button and select the file on your computer. The file name appears next to the button.
- Under CSV delimiter, check that your CSV's delimiter is selected. Vaira usually detects it automatically when you upload the file.
- If you check Clear directory before import, all existing objects are deleted from your directory before the import. In this case, Vaira asks you to confirm. If you don't check the box, the new objects are added to the directory.
In addition, all objects that already exist are overwritten with the values from your CSV based on their IDs. So if your directory contains an object with the ID "Muffe" and the asset_id column of your CSV also says "Muffe", Vaira recognizes the two objects as the same and updates the existing record instead of creating a new object. - Once you're happy with all the settings, click Import in the bottom right corner.

All done! Vaira shows "Import succeeded" at the bottom, and your objects appear in the directory table.
If you click an imported object, you'll see that all the values from your CSV were applied, for example the restriction to points, the object properties, and the active object fields.
Don't be surprised: If the Uncommitted changes column in the directory list shows Yes for your directory, publish it with the Publish button so that all changes are available everywhere. You'll find more about this in the guide on setting up your directory table.
Getting an error message?
Then your CSV probably doesn't match the fields and properties of your directory, or there's an error in a cell value. Vaira shows a message at the bottom that starts with "Import failed:". Common causes are:
- The header row was changed, or the first three columns aren't named asset_id, display_name, and fields.
- A column contains the ID of a property that doesn't exist in the directory.
- An ID contains characters that aren't allowed, such as spaces or umlauts, or a display name is empty.
- A number contains a comma instead of a period, a date isn't in the year-month-day format, or a TRUE/FALSE column contains WAHR or FALSCH.
- A different delimiter was selected than the one used in the file.
Make sure the structure of your CSV exactly matches the template, and try again. If it still doesn't work, feel free to contact our team with your question.
