Configure access to the Client Data Management Utility
Whether
Accounting CS
is installed locally or in a network environment, the Client Data Management Utility uses a temporary path during the backup and restore processes. The default folder used for the temporary path is the SQL server data location, such as
You cannot access the Client Data Management Utility in
Accounting CS
when the local machine's path to the SQL server data location doesn't match the server machine's path to the SQL server data location, or when you don't have full permissions set up to access the SQL server data location.
important
We recommend that you notify your certified IT professional and advise them of the issue.
Follow these steps for each workstation if you receive a message that indicates an issue with the path to the SQL server data location, or if your IT administrator makes significant changes to your SQL server (for example, an installation of a new SQL instance). This procedure shows you how to add an alternate temporary path in the NetworkInstallation.ini file that will be used instead of the default SQL server data location when you launch the application.
note
Make sure that you can view file extensions in Windows Explorer before completing the following steps.
Close
Accounting CS
.
Add a new subfolder in the WINCSI folder, such as \\SERVER\WINCSI\ClientBackup (where \\SERVER represents the location of your WINCSI folder).
In Notepad or a similar text editor, open the NetworkInstallation.ini file (not the NetworkInstallation.ini.readme file) for
Accounting CS
found at \\SERVER\WINCSI\
Accounting CS
(where \\SERVER represents the location of your WINCSI folder).
Enter the following line in the [appSettings] section of the file, using the following format and the path you created in step 2 after the equal sign:
When you add the alternate path in the NetworkInstallation.ini file, be sure that you are referencing the UNC (universal naming convention) path and not a path for a mapped drive, which often varies across different computers.
Save and close the NetworkInstallation.ini file.
Reopen
Accounting CS
and select
File
, then
Client Data Management Utility
.
note
If the SQL version used to create the client backup file is newer than your current SQL version,
Accounting CS
will not allow you to select the file and display a message about the SQL versions in use. To continue with restoring the client backup file, contact your certified IT professional or contact our Support team and ask about alternate configurations to allow the file to be restored.
In some circumstances with restrictive network permissions (for example, when integrating with other applications or reading/writing files from/to your local and network drives), you may need to run the application as an administrator (by right-clicking the
Accounting CS
icon, choosing Properties, and marking the
Run this program as an administrator
checkbox in the Compatibility tab).
Permissions
There are 2 users who need full permissions to the backup folder:
The user making the backup.
In most situations, this should not need any changes if you are using a folder in the WINCSI folder because the user already has full control.
The user account that is running the SQL server service.
To find the user account:
Select
Start
,
Control Panel
,
Administrative Tools
, then
Services
.
Right-click the
SQL Server
service and select Properties.
Select the
Log On
tab to see the user account that is displayed. For SQL 2014 and higher, a user with the instance name is created (e.g., Service\MSSQL$SQL2014, where my instance name is SQL2014.)
To set the permissions for the user account:
Right-click the folder you created for backups and select Properties.
On the
Security
tab of the folder, provide full control for the user account.
On the
Sharing
tab, select the
Advanced Sharing
button, and then the
Permissions
button. Set the permissions to enable access to the shared drive or folder.
note
The SQL instance should be configured so that the CreativeSolutionsPracticeCsDatabaseOwner user has the
sysadmin
role.
Error logs
Error logs can be helpful in figuring out what the cause of the problem is. You can find the error logs at C:\users\{windows login}\appdata\local\Creative Solutions\
Accounting CS
\log.txt.
An error that includes the words "Unable to determine local path to server file" most likely means that the path doesn't exist, although it may also be a permissions issue:
\\FS1\W:\BackupRestoreTempPath\dummy_e8892f37b57949a99a011176673cf6fd.junk at CreativeSolutions.Common.DataAccess.SqlServer.SqlServerAccessProvider.MapFileServerToLocalPath(String serverName, String filePath)
An error that includes the words "Access Denied" always points to a permissions issue:
CS.Accounting.Schema.BackupRestoreDataErrorsException: map FS1\CREATIVESOLUTION, \\FS1\WinCS\AccountingCSBackup\dummy_ae4d7fa18fc8402fa353f1e956e2abd4.junk ---> System.Data.SqlClient.SqlException: Cannot open backup device '\\FS1\WinCS\AccountingCSBackup\dummy_ae4d7fa18fc8402fa353f1e956e2abd4.junk'. Operating system error 5(
Access is denied
.)
Error: The path to the SQL server data location ... does not exist or you do not have proper permission to it
For non-network installations
: You can resolve this error message by following the path listed in the message and opening the folder. Do not change anything in this folder, just open it and give yourself permission to the folder when prompted. If
Accounting CS
was open when you opened the folder, make sure to close and re-open the program again.