SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 71015: Error 180-322 occurs in SAS® Add-In for Microsoft Office and returns "program-name encountered errors while opening the results"

DetailsHotfixAboutRate It

If you attempt to run code or a task using SAS Add-In for Microsoft Office in a Microsoft client, the following error dialog box might appear:

program1 encountered errors while opening the results

If you click the Show Details arrow, you see the following error:

      GOPTIONS XPIXELS=0 YPIXELS=0;
      ________
      180
ERROR 180-322: Statement is not valid or it is used out of proper order.

The problem occurs when SAS/GRAPH is not installed on the server because the wrapper code contains statements for SAS/GRAPH.

Pressing Continue in the dialog box causes the code to execute. However, every time you run the code, the dialog box opens.

Click the Hot Fix tab in this note to access the hot fix for this issue.

Post Hot Fix Instructions

To circumvent this issue, you must use a configuration option to keep the SAS/GRAPH statements from being added to the wrapper code after you install the hot fix.

  1. Create a backup copy of the sas.officeaddin.dll.config file if one exists. If the file does not exist, create a file called sas.officeaddin.dll.config in the SAS Add-In for Microsoft Office installation directory.
  2. Add the following code to the sas.officeaddin.dll.config file:
<configuration>
    <assemblySettings>
      <add key="GenerateGraphOption" value="false" />
    </assemblySettings>
</configuration>
  1. Save the file.
  2. Restart your Microsoft client and run the code.


Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Add-In for Microsoft OfficeWindows 7 Ultimate x648.39.4 TS1M7
Windows 7 Ultimate 32 bit8.39.4 TS1M7
Windows 7 Professional x648.39.4 TS1M7
Windows 7 Professional 32 bit8.39.4 TS1M7
Windows 7 Home Premium x648.39.4 TS1M7
Windows 7 Home Premium 32 bit8.39.4 TS1M7
Windows 7 Enterprise x648.39.4 TS1M7
Windows 7 Enterprise 32 bit8.39.4 TS1M7
Microsoft Windows Server 20228.39.4 TS1M7
Microsoft Windows Server 20198.39.4 TS1M7
Microsoft Windows Server 20168.39.4 TS1M7
Microsoft Windows Server 2012 Std8.39.4 TS1M7
Microsoft Windows Server 2012 R2 Std8.39.4 TS1M7
Microsoft Windows Server 2012 R2 Datacenter8.39.4 TS1M7
Microsoft Windows Server 2012 Datacenter8.39.4 TS1M7
Microsoft Windows Server 2008 for x648.39.4 TS1M7
Microsoft Windows Server 2008 R28.39.4 TS1M7
Microsoft Windows Server 20088.39.4 TS1M7
Microsoft Windows 118.39.4 TS1M7
Microsoft Windows 108.39.4 TS1M7
Microsoft Windows 8.1 Pro x648.39.4 TS1M7
Microsoft Windows 8.1 Pro 32-bit8.39.4 TS1M7
Microsoft Windows 8.1 Enterprise x648.39.4 TS1M7
Microsoft Windows 8.1 Enterprise 32-bit8.39.4 TS1M7
Microsoft Windows 8 Pro x648.39.4 TS1M7
Microsoft Windows 8 Pro 32-bit8.39.4 TS1M7
Microsoft Windows 8 Enterprise x648.39.4 TS1M7
Microsoft Windows 8 Enterprise 32-bit8.39.4 TS1M7
Microsoft® Windows® for x648.39.4 TS1M7
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.