Back to Home

DataSync Client User Manual

Version 1.1 | Last Updated: December 2024

Quick Start Guide

  1. Download the installer from the DataSync portal landing page
  2. Install the application by running the installer as administrator
  3. Configure your database connection and settings using the Configuration Tool
  4. Authenticate with your Azure AD credentials
  5. Start the Windows service to begin synchronization

1. Setup Guide

Follow these steps to install and configure the DataSync Client on your computer. The entire setup process typically takes about 10-15 minutes.

1

Download the Installer

  1. Visit the DataSync landing page provided by your administrator
  2. Click "Download Latest Version" to download the installer package
  3. Save the file to your computer (e.g., Downloads folder)
2

Run the Installer

Right-click the downloaded installer file and select "Run as administrator".

The Setup Wizard will guide you through the installation:

Installer Welcome Screen

Figure 1: The Setup Wizard welcome screen

Click Next to proceed. You will be presented with the license agreement:

License Agreement Screen

Figure 2: Accept the license agreement to continue

  1. Read the license agreement carefully
  2. Check "I accept the terms in the License Agreement"
  3. Click Next to continue
  4. Choose the installation location (default: C:\Program Files\DispatchScience\DataSyncClient)
  5. Click Install to complete the installation

The installer will automatically:

Once installation is complete, you'll see the completion screen:

Installation Complete Screen

Figure 3: Installation complete - check the box to launch the Configuration Tool

Check "Launch DataSync Configuration Tool" and click Finish to open the configuration tool immediately.

3

Configure Client Settings

After installation, open the DataSync Configuration Tool from the Start Menu.

Navigate to the Settings tab to configure your client:

Configuration Tool Settings Tab

Figure 4: The Settings tab in the Configuration Tool

Configure the following settings:

SettingDescription
Client IDA unique identifier for this client, automatically generated from the computer's MAC address. This field is read-only and ensures the same machine always uses the same ID
Server URLThe DataSync server URL (e.g., https://datasync.dsapp.io/). This will be provided by your administrator

Note: The polling interval (how often the client checks for new data) is managed by the server and can be adjusted by your administrator from the DataSync portal.

4

Configure Database Connection

Navigate to the Database tab to configure your local SQL Server connection:

Configuration Tool Database Tab

Figure 5: Configure your local database connection

Enter your SQL Server connection string in the Connection String box, then click Save Connection String. The value is stored locally in this machine's appsettings.json (ConnectionStrings:LocalDb). Example connection strings:

Windows Authentication:

Server=localhost;Database=DataSyncLocal;Trusted_Connection=True;TrustServerCertificate=True

SQL Server Authentication:

Data Source=.;Database=DataSyncDb;Integrated Security=false;User ID=sa;Password=yourpassword;TrustServerCertificate=True;Encrypt=True;
Tip: Click "Test Connection" to verify your database connection before saving.
Local to this machine: The database connection string is configured here, on the client, and never leaves the machine — it is not stored or managed in the portal. The service reads it when it starts, so after you save a change, restart the DataSyncClient service for it to take effect.
5

Sign In with Azure AD

Navigate to the Authentication tab and click "Sign In / Re-authorize".

Configuration Tool Authentication Tab

Figure 6: The Authentication tab before signing in

  1. A browser window will open to the Microsoft login page
  2. Enter your Azure AD credentials (email and password)
  3. Complete multi-factor authentication (MFA) if prompted
  4. Grant consent for the DataSync application if requested
  5. Return to the Configuration Tool - your authentication status will update
Configuration Tool Authentication Success

Figure 7: Successfully authenticated with Azure AD

6

Save Configuration and Start Service

Click "Save Configuration" at the bottom of the window to save all your settings.

Navigate to the Service tab to start the Windows service:

Configuration Tool Service Tab

Figure 8: Manage the Windows service from the Service tab

  1. Click Start to start the DataSync service
  2. The Service Status will change to Running
  3. The service will now automatically synchronize data in the background
Tip: Check the "Restart service after save" checkbox to automatically restart the service whenever you save configuration changes.
Note: Starting or stopping the service requires administrator privileges. If you encounter access denied errors, run the Configuration Tool as Administrator.

2. Updating an Existing Installation

When a new version of the DataSync Client is available, you can update your existing installation without losing your configuration.

How to Update

  1. Download the latest installer from the DataSync portal landing page
  2. Run the installer as administrator (same as a fresh install)
  3. The installer will automatically detect the existing installation and perform an in-place upgrade

What Happens During an Update

The update process is seamless:

Note: You do not need to uninstall the previous version first. Simply run the new installer. The update can also be performed with the same version to repair the installation. No reconfiguration is needed after the update.

3. Configuration Tool Reference

The DataSync Configuration Tool provides a graphical interface for managing all client settings. This section provides detailed information about each tab and its options.

Settings Tab

Essential connection and client settings:

SettingDescription
Client IDThe unique identifier for this client, as assigned by the server based on your install key. This field is read-only and always comes from the server — it is not read from or overridden in appsettings.json.
Server URLThe base URL of the DataSync server (provided by your administrator)

Note: The polling interval is managed by the server and can be adjusted by your administrator from the DataSync portal.

Database Tab

Configure your local SQL Server database connection. The client will synchronize data to this database.

ElementDescription
Connection StringThe SQL Server connection string for your local database, stored in this machine's appsettings.json under ConnectionStrings:LocalDb. Edit it here and click Save Connection String to write it back to the file.
Test ConnectionTests the connection string currently shown in the box by attempting to connect to the database.
Save Connection StringSaves the connection string to appsettings.json. You'll be offered to restart the service so it picks up the new value.

Client ID, Client Name and Tenant shown in the Configuration Tool always come from the server based on your install key — they are never read from local settings.

Note: The service reads the connection string when it starts. After you save a change, restart the DataSyncClient service for it to take effect.

Authentication Tab

Manage your Azure AD authentication status:

ElementDescription
StatusShows current authentication state (Authenticated / Not authenticated)
UsernameYour authenticated Azure AD account email
Token ExpiresWhen your current authentication token expires
Sign In / Re-authorizeOpens browser for Azure AD sign-in
Clear Cached TokensRemoves stored authentication tokens (useful for troubleshooting)

Service Tab

Monitor and control the DataSync Windows service:

ElementDescription
Service StatusCurrent state: Running, Stopped, or Not Installed
StartStart the service (requires administrator privileges)
StopStop the service gracefully
RestartStop and restart the service
RefreshUpdate the displayed service status
Open Event ViewerLaunch Windows Event Viewer to see service logs

Bottom Action Bar

ButtonDescription
Save ConfigurationSaves all changes to the configuration file
ReloadDiscards unsaved changes and reloads from disk
ValidateChecks for missing required fields without saving
Restart service after saveWhen checked, automatically restarts the service after saving

4. Authentication

The DataSync Client authenticates to the server with an install key (a dsk_live_… token you obtain from the portal and set via the Configuration Tool). The install key is what the service uses for all syncing.

About Azure AD sign-in: Azure AD sign-in is only used for a one-time automatic migration when upgrading from an older version that authenticated with Azure AD. During that upgrade the client uses your existing Azure AD token once to obtain an install key, which it then saves and uses from then on. For a new client — or if that migration cannot complete — simply paste an install key in the Configuration Tool; Azure AD sign-in is not required for syncing. If the client has no valid install key it will not sync until one is set.

Getting Your Install Key

When the Configuration Tool needs an install key it shows the Install Key dialog, which offers two ways to obtain one.

Option 1 — Generate with Microsoft sign-in (recommended)

  1. Click Generate with Microsoft sign-in.
  2. A browser window opens to the Microsoft (Entra ID) sign-in page. Sign in with the account your administrator associated with this client.
  3. The tool fetches a fresh install key, fills it into the Install Key box, and validates it automatically.
  4. Click Save & Continue.
Sign-in only issues a first key: "Generate with Microsoft sign-in" works when exactly one client linked to your account is still waiting for its first install key. It will not replace a key that already exists. If you need to replace an existing key, ask your administrator to regenerate it for your client from the portal.
"No client is linked to your email": Your administrator has not yet created a client for your Microsoft account, or set your email on it. Ask them to create the client and set your Entra ID email on it in the portal. Your account must also belong to your organization's DataSync tenant group.
"More than one client is awaiting an install key" / "every client already has a key": Your Microsoft account is associated with several clients, so the tool can't decide which one to set up automatically. Ask your administrator to generate the key for the specific client from the portal, then paste it using Option 2 below.

Option 2 — Paste a key from the portal

  1. Open the DataSync portal and sign in.
  2. Go to Clients, pick (or create) the client for this machine, and click Generate New Key.
  3. Copy the key (it is shown only once), paste it into the Install Key box, and click Validate.
  4. Once it shows Valid, click Save & Continue.

Re-Authorization (When Token Expires)

Authentication tokens expire periodically for security. When your token expires, you'll see these symptoms:

To re-authorize:

  1. Open the DataSync Configuration Tool
  2. Go to the Authentication tab
  3. Click "Sign In / Re-authorize"
  4. Complete the sign-in process in the browser
  5. Restart the service if it was running
Note: Authentication tokens are stored in a shared cache file accessible by both the Configuration Tool and the Windows Service. Any user can sign in via the Configuration Tool, and the service will use those cached tokens. Tokens are automatically refreshed when possible, but you may need to re-authorize periodically.

Clearing Authentication

If you experience persistent authentication issues, try clearing the token cache:

  1. Open the DataSync Configuration Tool
  2. Go to the Authentication tab
  3. Click "Clear Cached Tokens"
  4. Click "Sign In / Re-authorize" to sign in fresh

5. Managing the Service

Using the Configuration Tool

The easiest way to manage the service is through the Configuration Tool's Service tab:

Using Windows Services

  1. Press Win + R, type services.msc, press Enter
  2. Find "DataSyncClient" in the list
  3. Right-click and select Start, Stop, or Restart

Using Command Line

Run these commands as Administrator:

sc start DataSyncClient    (Start the service)
sc stop DataSyncClient     (Stop the service)
sc query DataSyncClient    (Check service status)

Viewing Service Logs

The DataSync Client logs detailed information to multiple locations:

Windows Event Log:

  1. Open Event Viewer (eventvwr.msc)
  2. Navigate to: Windows Logs > Application
  3. Filter by Source: "DataSync"

Log File:

[Installation Directory]\log.txt

6. System Requirements

Minimum Requirements

Component Requirement
Operating SystemWindows 10/11 or Windows Server 2016+
.NET Runtime.NET 10.0 or later (included in installer)
DatabaseSQL Server 2016 or later
NetworkInternet access to DataSync server
Disk Space100 MB for application, additional space for local database

Network Requirements

Ensure outbound HTTPS (port 443) access to:


7. Automatic Updates

The DataSync Client supports automatic updates. When a new version is available on the server, the client will automatically detect, download, and apply the update without user interaction.

How It Works

  1. The client reports its current version to the server with each heartbeat
  2. If a newer version is available, the server includes update information in the response
  3. The client downloads the update package and extracts it
  4. A dedicated updater utility stops the service, copies the new files, and restarts it
  5. Your configuration (appsettings.json) is preserved during updates

Update Log

The updater writes a log file for troubleshooting:

C:\Program Files\DispatchScience\DataSyncClient\updater.log

Rollback

If an update fails, the updater automatically rolls back to the previous version and restarts the service. No manual intervention is required.

If an Update Keeps Failing

A failed update does not stop data synchronization — the client keeps syncing on its current version the whole time. To avoid repeatedly retrying a problematic update, the client limits itself to a few attempts per version (spaced a few minutes apart) and then stops trying, leaving you running safely on your existing version. It will try again automatically later in case a corrected update has been published. If a client seems stuck on an old version, contact your administrator, who can remove it from the update or investigate using the log above.


8. Troubleshooting

Service Won't Start

Check Authentication:

Check Configuration:

Authentication Errors

ErrorCauseSolution
"401 Unauthorized" Token expired Re-authorize using Configuration Tool
"403 Forbidden" No tenant permission Contact administrator
Sign-in page errors Network/browser issues Check network, try different browser

Sync Not Working

IssuePossible CauseSolution
No jobs available No new data on server Check with administrator
Connection timeouts Network issues Verify server URL and firewall
Database errors Connection string invalid Test connection in Config Tool
"Execution Timeout Expired" while applying a table A very large table is slow to update on the local SQL Server The client applies changes in batches so this is rare; if it persists, ensure the local SQL Server is not under heavy load and contact your administrator (the apply timeout is managed by the server — see note below)
SQL command timeout: When the client applies downloaded data to your local database it uses a per-command timeout (600 seconds by default). This value is provided by the server, not set in appsettings.json, so there is nothing to configure on the client. If a very large table genuinely needs more time, contact your administrator.

8. Support

Getting Help

If you encounter issues not covered in this manual:

  1. Check the Logs: Review the Event Viewer logs for detailed error messages
  2. Verify Configuration: Ensure all settings match what your administrator provided
  3. Contact Your Administrator: They can verify server-side configuration and tenant settings

Information to Provide When Requesting Support


Quick Reference

ItemLocation
Configuration File[Installation Directory]\appsettings.json
Log File[Installation Directory]\log.txt
Token Cache%PROGRAMDATA%\DispatchScience\DataSyncClient\msal_token_cache.bin
Service NameDataSyncClient
Default Install PathC:\Program Files\DispatchScience\DataSyncClient

This manual is maintained by Dispatch Science.

Return to Home

An unhandled error has occurred. Reload