Error on Backup and Restore: System cannot find the file specified


 Product(s):Promis.e, Bentley Substation
 Version(s):through 08.11.13.140
 Environment:N\A
 Area:Project Management
 Subarea:Backup and Restore Project

Error or Warning Message

When trying to [[Backup Project|Backup]] or [[Restore Project|Restore]] a project, the following error message is displayed and the operation stops.

Internal Error
API Error Message: The system cannot find the file specified.
TargetSite: Boolean StartWithShellExecuteEx(System.Diagnostics.ProcessStartInfo)
DeclaringType: System.Diagnostics.Process
Attributes: private
MemberType: Method
StackTrace: C:\ProgramData\Bentley\Promise V8i\Config\LastError.txt
Product Version: Promise V8i (SELECTseries 8)
DB Version: SQLServer 8.1.42

The LastError.txt file contains:

Boolean StartWithShellExecuteEx(System.Diagnostics.ProcessStartInfo): The system cannot find the file specified
0: at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
1: at System.Diagnostics.Process.Start()
2: at ECT.ECAD.API.ZipTool.UnZip2(String sZipFileName, String sToPath, Boolean bWithRootFolder)
3: at Bentley.Electrical.API.Base.RestoreServiceBase.UnZipFolder(String sZipFileName)
4: at ECT.ECAD.API.Projects.Restore(String sZipFileName, String sToPath, String sTargetName, Boolean SuppressMessages)

Explanation

This error has occurred when the 7zG.exe file was missing from the program's folder. The error could possibly occur if a different file was missing or in an unexpected path.

How to Avoid

Option 1 - Copy the missing file from another workstation

The 7zG.exe file is typically found in a path such as one of the following:

C:\Program Files (x86)\Bentley\Promise V8i\Promise\Promise\7-Zip
C:\Program Files(x86)\Bentley\Substation V8i\Substation\Promise\7-Zip\

Copy the 7zG.exe file from another workstation and place it into the same path on the workstation with the problem.

Option 2 - Repair the application

  1. Open the Windows' Control Panel > Programs and Features / Uninstall a Program.
  2. Right-click the Promis.e or Substation application in the list of installed programs and select Repair.

If that does not help, uninstall and reinstall Promis.e/Substation.

 Original Author:Matt_P