Relatics allows users to import data using Microsoft Excel files. Since Excel is commonly available and easily understood, it is considered a low-entry option to import data into Relatics. This article describes the format of these files in order to import data correctly.
Generate an MS Excel template for import*
One of the quickest ways to ensure data can be imported is to generate an empty MS Excel sheet from your own workspace. As such, it is guaranteed that it completely matches your own model. This Excel sheet can subsequently be the basis for populating data from the external source.
- In the type list, click on the type element from which the data originates.
- In the overview, click on the
My view tab.
- Using the
Model selector, add the desired model objects that represent the supplied data.
- In the
context menu of the
My view tab, click on
Download MS Excel template for import.
- Open the MS Excel file and transfer the data from the other application.
Structure Excel workbook
Each type element has a sheet in the Excel workbook. The sheet contains the element property values and relations. Relations are always included in the sheet of the type element that originates (from the outgoing direction/from-element).
Notes:
- The sheet name has no additional meaning for the import and is freely usable.
- Visual changes to the sheet text or borders are ignored at import.
Structure model row
The first two rows of the Excel sheet are reserved for the model structure. Cell A1 must contain the name of the type element. Row 2 contains the names of the type properties. The type property named in cell A2 will be used to identify elements in a relation. Therefore, this type property has an additional requirement that it must be of the data type single-line text. The values in this column must be unique to prevent ambiguity.
After the last type property, type relations can be added. The cell in row 1 contains the type relation name. This name is a concatenation of the type relations role and the type element name of the to type element, separated by a colon, e.g., has source: Document, applies to: Object. The cell in row 2 contains the type property of data type single line text, which can be used to identify the specific element.
Notes:
- The names in the model row must match the names of the model objects of the type model.
- An empty cell in row 2 of the model row is interpreted as a headless column and is ignored at import.
- Type relations to the same type element must use the same identifying property throughout the whole workbook. For example, a combination of Actions with ‘has executive: Person’ using the EmployeeNumber as identification and Work packages with ‘has responsible: Person’ using the Name as identification is not allowed.
- Collection relations are added separately for each to-type element. For example, the type relation ‘has stakeholder’, which originates from type element Requirement to type element Person and Organisation, has two columns in the sheet ‘has stakeholder: Person’ and ‘has stakeholder: Organisation’.
Format Properties of an Element
Rows 3 and below contain the data that will be included in the workspace upon import. Each property value must follow the formatting convention belonging to its data type.
| Data type | Value format |
|---|---|
| Attachment | The name and extension of the file.
When attachment data is used in the workbook, the Excel file must be imported as a zip file. |
| Date | The cell in the Excel sheet must be set as date format or as text and formatted as YYYY-MM-DD, e.g., 2025-06-20. |
| List | The value is an exact match of a list value. |
| Number | Value follows the number format of the Excel workbook. The number of digits cannot exceed the precision of the type property. |
| Single line text | Value with a maximum length of 255. |
| Text | Text value can be presented in one of the following two formats:
When text values are formed in HTML format, the type property name in row 2 needs a postfix #HTML so that the import knows how to interpret the values. Note:
|
| URL | Value as a complete URL. |
Notes:
- Element data is imported following the same rules as manual data editing.
- Number property configured as a formula cannot receive data from an import.
- The property value ###Unspecified### sets the value of the property to the default value of the property.
Format Relations of an element
Relations are created using one type property as an identifier, which comprises unique values. If the to-type element is part of the import file, the element must be part of the dataset. Otherwise, if the to-type element is not part of the import file, the import uses the elements in the workspace to find the named element. The source of the to-type element is determined for every type relation. Using both the import file and the workspace as the source of a type relation is prohibited.
The syntax to provide multiple elements to a relation is by separating the values with a newline.
Notes:
- To create relations for already existing elements, consider using a combination of the subset of elements feature and pasting data.
- For derived elements, the relation to the origin must be included in order to import the data.
- For middle elements, the relations to the origin and target must be included in order to import the data.
- Recursive elements can be directly related to the elements in the sheet.
Format attachments
To import attachments, a zip file is needed. The zip consists of the Excel file and a folder named ‘Attachments’. In the Attachments folder are the files referred to in the Excel file for the properties of the attachment data type.
Example structure:
./requirements.zip/
├── Attachments/
│ ├── Verification Plan - Bridge preview.pdf
│ ├── Test report lightning Oct. 27, 2023.pdf
│ ├── Requirement Specification - Bridge 002.pdf
│ └── Public Lighting Standards - Part I.pdf
└── Projectdata.xslx
Note:
- Only files named in the Excel file are imported into the workspace.