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
Poll IntervalHow often (in seconds) the client checks for new data. Default is 300 seconds (5 minutes). Minimum is 5 seconds
Server URLThe DataSync server URL (e.g., https://datasync-portal.dsapp.io/). This will be provided by your administrator
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 text box. 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.
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. 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 IDA unique identifier automatically generated from this computer's MAC address. This field is read-only. Advanced users can override it in appsettings.json if needed
Poll IntervalHow often (in seconds) the client checks for new data. Minimum: 5 seconds. Default: 300 seconds
Server URLThe base URL of the DataSync server (provided by your administrator)

Database Tab

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

ElementDescription
Connection StringFull SQL Server connection string for your local database
Test ConnectionValidates the connection string by attempting to connect to the database

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

3. Authentication

The DataSync Client uses Azure Active Directory (Azure AD) for secure authentication. You must sign in before the service can connect to the server.

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

4. 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

5. 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:


6. 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

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