Skip to main content

Error Copying Database to Backup Location

When using Design Master Photometrics, I get an error saying it can't create a backup database or folder.​

The error may be similar to one of these:

Error

Error copying database to backup location.
<File Path>
You can continue to work on the project.

warning

Could not create backup folder <File Path>. Backup folder must be created before command can be run.

You may also get a database connection error when attempting to open a project that has been moved to a new location.

Cause​

By default, Windows has a 256-character limit on file paths. If you attempt to create a file in a location such that the file name and its location exceeds 256 characters total, the file creation will fail. Similarly, if you move a file to a location such that the new location exceeds the character limit, the file can become unusable.

Design Master Photometrics creates backups at certain intervals while you are working on a project. This error occurs when that backup cannot be created because the complete path to the backup file(s) would exceed the 256-character limit.

As indicated by the error message highlighted above, this error will not stop you from working on your project; however, Design Master will be unable to create backups of your project, which can cause greater problems if the error is not addressed.

There are two solutions to this problem, detailed below.

Shorten the File Path​

Shorten the file path for the project such that backup file paths no longer exceed the character limit. The exact steps to shorten the file path will depend on your situation, but can include:

  • Renaming one or more folders
  • Moving project files to a location with fewer subfolders
  • Renaming the project database file using the Rename Database command

Disable the Character Limit​

It is possible to disable the 256-character limit in Windows. However, this solution involves directly editing your Windows registry, which can render your computer unusable.

As such, the solution will not be detailed here. Further research and steps toward this solution can be taken at your own risk.

In addition, disabling the limit will only allow the files to be created; it does not solve database connection errors resulting from file path length.