Usage Note 63409: An application error regarding an object reference occurs when you use SASĀ® Add-In for Microsoft Office in Microsoft Excel
You might encounter an error like the following example when you use SAS Add-In for Microsoft Office in Microsoft Excel:
Object reference not set to an instance of an object.
------------------------- Technical Information Follows --------------------------
Exception Details:
----------------------------------------
Exception type: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: office
Target Site: remove_OnUpdate
A SAS Add-In for Microsoft Office log file might also show the following:
ERROR SAS.OfficeAddin.Global [(null)] - Loading the Excel Addin
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Office.Core._CommandBarsEvents_EventProvider.remove_OnUpdate
This type of error is rare, and it occurs only in Excel. The error can occur due to a timing issue as Excel is invoked and SAS Add-In for Microsoft Office loads.
The following steps for including a configuration option should correct this issue.
- Close all Microsoft Office applications on the client machine.
- Locate and back up a copy of the SAS.OfficeAddin.dll.config file from the SAS Add-In for Microsoft Office installation directory.
- Edit the SAS.OfficeAddin.dll.config file to include the <add key="EnableCommandBarsUpdateEvent" value="false"/> configuration option. Here is an example:
<configuration>
<assemblySettings>
<add key="EnableCommandBarsUpdateEvent" value="false"/>
</assemblySettings>
</configuration>
4. Save the file.
Operating System and Release Information
| SAS System | SAS Add-in for Microsoft Office | Microsoft Windows 8.1 Enterprise 32-bit | 7.1 | | 9.4 TS1M2 | |
| Microsoft Windows 8.1 Enterprise x64 | 7.1 | | 9.4 TS1M2 | |
| Microsoft Windows 8.1 Pro 32-bit | 7.1 | | 9.4 TS1M2 | |
| Microsoft Windows 8.1 Pro x64 | 7.1 | | 9.4 TS1M2 | |
| Microsoft Windows 10 | 7.1 | | 9.4 TS1M2 | |
| Microsoft Windows Server 2008 | 7.1 | | 9.4 TS1M2 | |
| Microsoft Windows Server 2008 R2 | 7.1 | | 9.4 TS1M2 | |
| Microsoft Windows Server 2012 Datacenter | 7.1 | | 9.4 TS1M2 | |
| Microsoft Windows Server 2012 R2 Datacenter | 7.1 | | 9.4 TS1M2 | |
| Microsoft Windows Server 2012 R2 Std | 7.1 | | 9.4 TS1M2 | |
| Microsoft Windows Server 2012 Std | 7.1 | | 9.4 TS1M2 | |
| Windows 7 Enterprise 32 bit | 7.1 | | 9.4 TS1M2 | |
| Windows 7 Enterprise x64 | 7.1 | | 9.4 TS1M2 | |
| Windows 7 Home Premium 32 bit | 7.1 | | 9.4 TS1M2 | |
| Windows 7 Home Premium x64 | 7.1 | | 9.4 TS1M2 | |
| Windows 7 Professional 32 bit | 7.1 | | 9.4 TS1M2 | |
| Windows 7 Professional x64 | 7.1 | | 9.4 TS1M2 | |
| Windows 7 Ultimate 32 bit | 7.1 | | 9.4 TS1M2 | |
| Windows 7 Ultimate x64 | 7.1 | | 9.4 TS1M2 | |
*
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.
An "Object reference not set to an instance of an object" error occurs in Microsoft Excel when SAS Add-In for Microsoft Office is loading.
| Date Modified: | 2018-12-20 09:09:42 |
| Date Created: | 2018-12-19 10:44:27 |