Skip to main content
Most of what the ERP Sync agent does is set in Omnilinker, on the connection, and the agent downloads it. 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__AutoUpdateEnabled or Updates__Channel.
  3. appsettings.json in the install folder.
  4. The built-in defaults listed below.

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\OmnilinkerErpSync\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.

Settings

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

Cloud connection

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 while the agent is not running a command from Omnilinker. If installing fails, the agent tries again the next night.

Stock reading

How often the agent reads the stock of a Wapro database. This setting is in the ErpSync:Feeds section, so its environment variable is ErpSync__Feeds__StockDiffIntervalMinutes. Change it only when Omnilinker support or your Wapro partner asks you to, for example for a very busy database.

Reading orders back

How often the agent reads the status, invoices and KSeF numbers of the orders Omnilinker sent to a Wapro database. This setting is in the ErpSync:Feeds section too, so its environment variable is ErpSync__Feeds__SalesOrdersDiffIntervalMinutes. Change it only when Omnilinker support or your Wapro partner asks you to.

Reading prices

How often the agent reads the ERP’s prices of a Wapro database, for comparison with yours. This setting is in the ErpSync:Feeds section too, so its environment variable is ErpSync__Feeds__PricesDiffIntervalMinutes. Change it only when Omnilinker support or your Wapro partner asks you to, for example for a very busy database. The agent reads prices only while Omnilinker asks for them; see Prices.

Lists read by comparison

The agent reads by comparison the lists named in ErpSync:Feeds:DiffStreams. Nothing needs to be set: the default is stock, the orders sent from Omnilinker and prices (Stock, SalesOrders and Prices). If Omnilinker support has set a list of your own, it must include SalesOrders and Prices; without SalesOrders the orders are read only once a day, with the complete read, and the order card says Not read back from ‹ERP› yet for longer, and without Prices the prices are read only once a day, and the comparison is as old as that read. The shipped file is replaced on every update, so keep such a list in appsettings.<Environment>.json or in environment variables. This setting is a list, so an environment variable holds one entry of it and carries the entry’s number. Set one variable for each entry:
In appsettings.<Environment>.json the same list is a JSON array: "DiffStreams": [ "Stock", "SalesOrders", "Prices" ]. A single variable without a number, such as ErpSync__Feeds__DiffStreams=Stock,SalesOrders,Prices, does not work: it empties the list, and then neither stock, the orders nor the prices are read by comparison, only once a day with the complete read.

Data root (support only)

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 two folders on the machine. Install folder: C:\Program Files\OmnilinkerErpSync\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, except credentials.dat. Uninstalling keeps this folder. See Remove the agent.
Do not delete agent.db while the agent is installed: the agent uses it to finish reporting the commands it was working on.
Earlier versions kept a database called erpsync.db in the Local System profile (C:\Windows\System32\config\systemprofile\AppData\Local\Omnilinker\ErpSync). The agent no longer reads it; you can delete that folder.