Message - Unable to create an Excel workbook in the specified location.

Applies to TestComplete 15.73, last modified on March 04, 2025

This message appears if TestComplete is unable to create a new Excel file in the specified location. The following are the possible causes of the problem:

  • The specified file name is invalid. For example, it includes reserved characters (< > : " / \ | ? *) or coincides with reserved device names (such as con or nul). To resolve the problem, correct the file name so that it follows Windows file naming rules. For complete information on these rules, please see the Naming Files, Paths, and Namespaces article in the MSDN library.

  • The fully-qualified file name exceeds 218 characters, which is Excel’s limitation on the maximum path length. To resolve the problem, specify a shorter file name that contains no more than 218 characters.

  • The destination folder does not exist. To resolve the problem, make sure that the folder where you wish to create the file exists on the disk and then try to create the file again.

  • Your user account does not have permissions to create files in the destination folder. To resolve the problem, specify another destination folder or ask your system administrator to grant your user account necessary permissions.

See Also

Add DB Table Variable Wizard

Highlight search results