Error message: "Run-time Error 5 - Invalid Procedure Call or Argument" when generating an exception report.
Last Modified: 3rd Jan 2013
Category: Quality Control and Management > Quality Analyst
Platform: Windows 95 Windows 98 Windows 2000 Windows ME Windows XP
Version: 5.2
Article Ref.: CB52

Error message: "Run-time Error 5 - Invalid Procedure Call or Argument" when generating an exception report.

The run-time error 5 is normally due to a Universal Naming Convention (UNC) reference; if you look in the "About Quality Analyst" information, you'll see items like:

Directory, Application: \\sepanet\sepadata...

Here are the details to fix this:

The "Run-time Error 5" problem is that the menu item or icon that starts up Quality Analyst has the location for Quality Analyst specified using the "UNC" server name convention (the "\\..." form).  Quality Analyst needs to be referenced from a mapped drive letter.

This is set in the Windows Properties for the menu item or icon or shortcut that you use to start up Quality Analyst.  Go to the Properties for the menu item, and select the Shortcut tab.  Change the drive specified in both the "Target" and the "Start in" to use a mapped drive letter (and directory name as needed), not the "\\" server name notation.

 
 
Related Articles