Skip to main content
Most of the ERP Sync agent’s behavior is set in Omnilinker, on the connection’s sync configuration, and the agent downloads it. See Sync configuration. The local settings on this page are for the machine the agent runs on. You rarely need to change them.

Where the agent gets its configuration

For the settings in appsettings.json, the order of precedence is, highest first:
  1. Command-line arguments.
  2. Environment variables, named <Section>__<Setting>, for example ErpSync__PollingIntervalSeconds or Updates__Channel.
  3. appsettings.json in the install folder.
  4. The built-in defaults listed below.
Where a setting also exists in the cloud configuration or in credentials.dat, that value wins. Each setting below says so.
ApiKey and ConnectionId in appsettings.json and in environment variables are ignored. The agent takes the API key and connection only from credentials.dat. Configure them with the setup wizard.

Change a setting

Set the value as a machine environment variable, in PowerShell as Administrator, then restart the service. The service reads these settings only when it starts:
You can also edit appsettings.json in the install folder, by default C:\Program Files\Omnilinker\ErpSync\current, as an administrator, and restart the service.
Every update replaces appsettings.json, and the agent updates itself at night. A change you made in the file is then lost without notice. Environment variables are not affected by updates, so prefer them.
The shipped file looks like this (its Logging section is left out):
appsettings.json

Settings

“Default” is the value the agent uses when the setting is missing from appsettings.json.

Cloud connection

Local API

Leave LocalApiPort at 5555. Omnilinker’s web app and the tray app’s fallback connection both expect the local API on port 5555 and do not read this setting.

Change detection

Sending to Omnilinker

The agent queues every change in a local outbox and sends it to Omnilinker in batches.

Plugins

Updates

How the agent updates itself. AutoUpdateEnabled is in the ErpSync section. The others are in the Updates section, so their environment variables start with Updates__. A version is installed only inside the window and only when no sync is running. If installing fails, the agent tries again the next night.

Fixed values

The agent has these settings internally, but does not read them from appsettings.json or environment variables. They always have the values shown. They are listed so you can interpret the agent’s logs.

Logging

The service writes one log file per day to %ProgramData%\Omnilinker\ErpSync\logs (see Local files) and keeps the last 30 files. Each line has a timestamp, the level, the component and the message. Setup, updates and uninstalling add to setup.log in the same folder: done, or one line for each step they could not complete. The log level is fixed: Information for the agent, Warning for framework components. The Logging section in appsettings.json has no effect on the log files.

Local files

The agent keeps three folders on the machine. Install folder: C:\Program Files\Omnilinker\ErpSync\current when you install as described in Install the agent. Setup replaces its contents on every update. Data folder: %ProgramData%\Omnilinker\ErpSync, usually C:\ProgramData\Omnilinker\ErpSync. The service and everyone who uses the tray app see the same folder. Setup lets only SYSTEM and administrators change it. Other users can read it. Service profile folder: C:\Windows\System32\config\systemprofile\AppData\Local\Omnilinker\ErpSync, the local application data folder of Local System, which the service runs as.
Do not delete erpsync.db while the agent is installed. Events that have not been sent yet are lost, and the agent has to rebuild its change-detection state.