DataMigrate Pro·Operation
DataMigrate Pro Synch Service
The Synch Service runs the DataMigrate Pro Service Bus listener as a Windows service. This page explains installation, registration and operation.
This documentation describes how to install and operate the DataMigrate Pro Service Bus listener as a Windows service named "DataMigrate PRO Synch-Service". The guide is based on the available CLI references and the requirements for settings.json.
Overview
The command
DataMigratePro -t listen --install "DataMigrate PRO Synch-Service" --registration "<registration-key>" --tenantid "<TenantID>"performs the following steps in sequence:
-t listenstarts the DataMigrate Pro Azure Service Bus listener. For productive operation, the connection settings are loaded fromsettings.json.--install "DataMigrate PRO Synch-Service"installs the listener in the Windows service wrapper (launcher) and sets up the specified service name.--registration ... --tenantid ...validates and stores the registration/license key and the Azure AD tenant. Without a valid registration, the tool refuses to run the service after a short time.
For the scheduled service mode with serviceSchedule, the following also applies: The service can run as a Windows service even if it was installed directly with sc.exe create. In this case, however, the respective copy of the program must contain a matching settings.json in the same folder.
Prerequisites
- Windows server with administrator rights (required for the service installation).
- .NET Desktop Runtime matching the DataMigrate Pro version.
- Copy of the DataMigrate Pro program folder (including
DataMigratePro.exe,DataMigratePro.Launcher.exe,settings.json). - Network access to:
- SQL Server of the Business Central databases.
- Business Central OData endpoint (
Upload_LoadData). - Azure Service Bus namespace for incoming jobs.
- Registration key (
--registration) and Azure AD tenant ID (--tenantid).
Installation steps
Prepare the folder
- Copy the entire delivery package to
C:\Programme\DataMigratePro(or another location without spaces in the path). - Make sure that
DataMigratePro.exeandDataMigratePro.Launcher.exeare writable so that logs andsettings.jsoncan be written.
- Copy the entire delivery package to
Create/adjust settings.json
- Create or update
settings.jsonin the installation folder according to the example in the section Example configuration.
- Create or update
Prepare the registration
- Open an administrative PowerShell.
- Navigate to the installation folder:
cd C:\Programme\DataMigratePro.
Run the registration
- Run the command above, but without
--install, to validate the license and Service Bus data:PowerShell .\DataMigratePro.exe -t listen --registration "<registration-key>" --tenantid "<TenantID>" - On success, the Service Bus parameters (queue names, connection string) are added to
settings.json.
- Run the command above, but without
Install the service
- Then start the final installation:
PowerShell .\DataMigratePro.exe -t listen --install "DataMigrate PRO Synch-Service" --registration "<registration-key>" --tenantid "<TenantID>" - The launcher registers a Windows service. The log output is redirected to the Windows event log.
- For the scheduled service mode with
serviceSchedule, a directsc.exe createinstallation is also sufficient. What matters then is that the service copy has a matchingsettings.jsonin the same folder.
- Then start the final installation:
Start the service
- Open
services.msc, find DataMigrate Pro Synch-Service, set the startup type to Automatic, and start the service.
- Open
How the Service Bus listener works
- The listener monitors the configured
RequestQueueNamefor incoming messages. Each message triggers the DataMigrate Pro data processing pipeline. - Responses and status messages are written to
ResponseQueueName. - The loop runs continuously and uses short polling intervals (about 1 second) to detect new messages.
- Errors are written to the Windows event log; in case of serious errors, the service stops with a corresponding error code.
Flow overview

Scheduled service mode (serviceSchedule)
This mode is intended for time-controlled single or interval runs that are executed directly in the Windows service. Unlike -t listen, the service does not wait for Service Bus messages but reads the CLI arguments to be executed from settings.json.
Example configuration
{
"ServiceSchedule": {
"CommandArguments": "-t printerdiscovery --listenerconnectionid \"7A7B2D10-8A7A-4C61-9A9A-3C2F5A1C8D2E\" --transactionid \"9D3E5B2C-1A2F-4B7D-9C5E-4A1B2C3D4E5F\"",
"StartDate": "2026-07-01",
"EndDate": "2026-12-31",
"RecurringType": "Interval",
"RecurringInterval": "01:00:00",
"StartingTime": "18:00:00",
"EndingTime": "06:00:00",
"Days": "Mo,Tu,We,Sa,Su"
}
}Important rules
CommandArgumentscontains exactly the DMP call that is to be executed within the time window, for example-t printerdiscoveryfor a regular update of the printer inventory.RecurringIntervaldefines the interval between two checks or executions.Daysaccepts weekday abbreviations such asMo,Tu,We,Th,Fr,Sa,Su.- If
StartingTimeis later thanEndingTime, the window may cross midnight. - As usual, the service can be installed either with
--install "service name"or directly withsc.exe create. - For several parallel instances, we recommend a separate folder per service, each with its own
settings.jsonand its own service name. - To remove an installed service, use
DataMigratePro.exe --uninstall "service name".
Installation by parameter
DataMigratePro.exe --install "DataMigratePro-Scheduled-Runner" --registration "<registration-key>" --tenantid "<TenantID>"Installation with sc.exe
sc.exe create "DataMigratePro-Scheduled-Runner" binPath= "\"C:\Programme\DataMigratePro\DataMigratePro.exe\"" start= autoThen start the service and check the execution in the Windows event logs. In this case, the service starts directly from the folder of the respective copy and reads settings.json from there.
Uninstallation
DataMigratePro.exe --uninstall "DataMigrate PRO Synch-Service"The command stops the service if it is running and removes the Windows service registration.
Configuration in Business Central
- The same
connectionIdmust be stored in the Business Central extension as insettings.json, so that messages are unambiguously assigned to the listener. - Where possible, use a uniquely generated identifier (for example a GUID or generated password) as the
connectionIdto rule out overlaps with other integrations. - The Business Central configuration also stores the endpoint of the prepared Azure Function together with the access key generated in Azure. Only then can the application successfully place messages in the Service Bus queue.
Example configuration (settings.json)
{
"SqlConnectionString": "Data Source=SQLSERVER;Initial Catalog=BC_PROD;Integrated Security=SSPI;",
"SourceCompany": "CRONUS AG",
"DestinationCompany": "CRONUS AG",
"SourceDatabase": "BC_PROD",
"MappingDatabase": "BC_PROD",
"MigrationDatabase": "BC_MIGRATION",
"EndpointUrl": "https://api.businesscentral.dynamics.com/v2.0/<TenantID>/Production/ODataV4/Upload_LoadData?company=CRONUS%20AG",
"BlobMagicSignature": [2, 69, 125, 91],
"IsSaaS": true,
"Environment": "Production",
"TenantInfo": {
"TenantId": "<TenantID>",
"ClientId": "<Azure AD App ID>",
"ClientSecret": "<Azure AD App Secret>"
},
"ServiceBus": {
"ServiceBusConnectionString": "Endpoint=sb://<namespace>.servicebus.windows.net/;SharedAccessKeyName=<Name>;SharedAccessKey=<Key>",
"RequestQueueName": "datamigratepro-requests",
"ResponseQueueName": "datamigratepro-responses",
"connectionId": "LISTENER"
}
}Notes:
- Set
EnableServiceBustotrueif this service runs-t listenor listener-based file service, printer, or PowerShell functions. TheServiceBussection is then mandatory; missing values cause a validation exception when the service starts. - Align the
connectionIdentered here with the configuration in Business Central. Use a unique identifier to avoid incorrect assignments. TenantInfois required for SaaS/OAuth. For on-premises operation, setIsSaaStofalseand useBCUser/BCPasswordinstead ofTenantInfo.BlobMagicSignaturecan be kept as is, unless there is an individual requirement.SqlConnectionStringMigration,AppSourceEnabled,OnPrem, andNewNumberingare no longer added manually.IsSaaScontrols SaaS or on-premises behavior and the object numbering.
Verification and maintenance
- Check the service status
- Run
Get-Service "DataMigrate PRO Synch-Service"in PowerShell.
- Run
- Check the log output
- Event Viewer → Applications and Services Logs → DataMigrate Pro.
- Adjust the settings
- Stop the service first, edit
settings.json, and restart the service.
- Stop the service first, edit
- Uninstall the service
- Run
DataMigratePro.exe --uninstall "DataMigrate PRO Synch-Service".
- Run
Troubleshooting
| Symptom | Cause | Solution |
|---|---|---|
| Service starts and stops immediately | Invalid or missing ServiceBus entries |
Check settings.json, run the registration again |
| Error message "Registration invalid" | Wrong key or tenant ID | Check the values, contact support if necessary |
| No message processing | Wrong RequestQueueName or missing permissions |
Check the queue names and the SAS policy |
| OAuth authentication fails | TenantInfo incomplete or app registration without BC permissions |
Check the Azure AD app, renew the secret |
With this guide, you should be able to install and operate the DataMigrate Pro Synch Service reliably.