---
title: "Configuration"
description: "Invantive Data Hub reads three kinds of configuration before it does anything: an application configuration file, the Settings files which define the\u2026"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/docs/invantive-data-hub/configuration
original: https://documentation.invantive.eu/en/docs/invantive-data-hub/configuration
updated: 2026-10-31T00:00:00Z
license: https://documentation.invantive.eu/en/
---

Invantive Data Hub reads three kinds of configuration before it does anything: an application configuration file, the [[Settings]] files which define the databases, and the licence.

## Application Configuration File
From release 28.0 the product starts without an application configuration file. Both `appsettings.json` and the file of the environment, such as `appsettings.Production.json`, are optional, and every setting can be given by an environment variable or by a file of a secrets folder. A start in a container needs none of the files. The sources are read in this order, a later one overruling an earlier one:
- the defaults of the settings, which `/print-required` lists;
- `appsettings.json` in the configuration folder, normally `%USERPROFILE%\Invantive`;
- `appsettings.{environment}.json` in that folder, where the environment is the value of `ASPNETCORE_ENVIRONMENT`, which is `Production` in the container image;
- the environment variables, in the form of ASP.NET: the setting `DataHub:ElasticApm:Enabled` is the variable `DataHub__ElasticApm__Enabled`, a double underscore for each level;
- the files of the secrets folder: the folder named by `INVANTIVE_SECRETS_FOLDER`, or `/run/secrets` when the variable is absent. A file holds one setting: its name is the name of the setting in the form of an environment variable, its content is the value and a line ending at the end is not part of it. Use this for a value which must not appear in the environment of the process.

Every start writes one report of the settings to the trace, one row per setting with its value, where the value came from and its message code. A value which is a secret is never written. When `INVANTIVE_STARTUP_REPORT_FILE` names a file, the report is also appended to it as one line of JSON per start. A start which lacks a required setting reports all of them at once, instead of one per attempt, and ends with [[Invantive Data Hub/Exit Code|exit code]] 9. The arguments `/print-required` and `/check-configuration` of [[Invantive Data Hub/Command Line Options|Command Line Options]] give the list of settings and the check without a start.

Up to and including release 27.0 the product refused to start without the file of the environment, in the configuration folder, normally `%USERPROFILE%\Invantive`. The failure was:

```
itgencuy002: The application configuration file must be present in either '…\Invantive'
as 'appsettings.Development.json' or 'appsettings.json'.
```

and the program ended with exit code 9, after writing a [[Sample Settings File]] with every setting into the configuration folder. The file which was required was the one belonging to the environment: with `ASPNETCORE_ENVIRONMENT` set to `Development` it had to be `appsettings.Development.json`, and `appsettings.json` on its own did not satisfy the check, although the message said so. Without that variable, `appsettings.json` applied. From release 28.0 `itgencuy002` is only reported for a file which exists and cannot be read.

The file holds one section, `DataHub`, with the settings for Elastic APM under it:

```json
{ "Logging": { "LogLevel": { "Default": "Warning" } }
, "DataHub":
  { "ElasticApm":
    { "Enabled": false
    , "Description": "Invantive Data Hub appsettings configuration"
    }
  }
}
```

`Description` is optional and not used by the product. Up to and including release 27.0.36 the start ended with `itgeneay003`, "Elastic APM configuration not loaded", when it was absent or copied unchanged from the sample; from the next release it does not. Monitoring itself is switched on with `Enabled`, which then also requires `ServerUrl`; without it the start ends with `itgeneay005`, "Elastic APM is enabled, but no server URL has been configured". An APM server which demands authentication also needs `SecretToken` or `ApiKey`. While `Enabled` is false, none of these is used.

Up to and including release 26.0 the start ended with `itgeneay001`, "Missing tracer", whenever `ServerUrl` was absent, also with `Enabled` false. On those releases the file above needs a `ServerUrl` with any absolute URL, such as `"ServerUrl": "http://localhost:8200"`; with `Enabled` false nothing is sent to it.

## Licence
The licence is held per product installation and is stored encrypted, so it cannot be placed in a file by hand. Without a licence the product opens its agreement menu:

```
1. Enter Invantive license key      L. Load Invantive license key from file
2. Acknowledge agreement            T. Load trial license
4. Show agreement text              5. Save agreement to file    6. Show details
E. Exit menu                        C. Exit application
```

Answer `1` and paste the licence key, or `T` for a trial licence. `/licensekey` on the command line supplies a key for one run without storing it; see [[Invantive Data Hub/Command Line Options|Command Line Options]].

A run which has no console to answer with reports `itgencmm002`, "No answer received to question", and then `itgenlic681` with exit code 7. From release 27.0 an unattended task can accept the agreement itself, with `/acceptlicense` or `INVANTIVE_ACCEPT_LICENSE`, and provide the user in the same way; see [[Unattended Start]]. Up to and including release 26.0 it has to be run once by hand first, so that the key and the agreement are stored.

## What the Start-up Reports
Before the first statement runs, the product reports the script file, the log file, the licence, the operating system user and machine, the .NET release, the Invantive installation identification and session identification, the current folder, the three settings files it uses, and the database it is connecting to.

That output is not neutral material. It names the licence contract code and the licensee (`itgendhb066`, `itgendhb067`), and the name, e-mail address and telephone number of the user (`itgendhb227` to `itgendhb229`). A log file of a run therefore contains personal data and is kept and shared accordingly.

The three personal lines are read from the global user settings, so they follow whoever the profile belongs to. The operating system log-on code and the machine name (`itgendhb033`, `itgendhb034`) come straight from the operating system and cannot be set anywhere in the product.

## User Identity
Name, e-mail address, telephone number and gender are held once per user in `user.settings` in the configuration folder, and are shared by every Invantive product on the device.

Since the conversion to JSON there are two files, `user.settings` and `user.settings.json`, and the JSON file decides. Changing only the XML has no effect. The names of the fields differ slightly between the two: the telephone number is `PersonPhoneWork` in the XML and `PersonPhoneWorkNumber` in the JSON.

The settings also record how the values were given, in `PersonInformationVia`: `interactive`, `command-line` or `environment`. The product asks for these values once, in the "Personalize your salutation" window which appears after a licence key is registered; a run without a window takes them from `/personfirstname`, `/personlastname` and `/personphonework` or from the environment variables of [[Unattended Start]]. The e-mail address there is fixed to the address the licence was issued to and cannot be changed in that window.

## Release Notes

- [Invantive Data Hub](/en/release-notes/products/invantive-data-hub)
  - [26.0 to 27.0](/en/release-notes/products/invantive-data-hub?step=26.0-to-27.0)
  - [25.0 to 26.0](/en/release-notes/products/invantive-data-hub?step=25.0-to-26.0)

