Using SAS/ACCESS® Interface to PC Files with Microsoft Office 2016 fails with "Read Access Violation" or "Write Access Violation"


When SAS/ACCESS Interface to PC Files is installed with Microsoft Access Runtime version 16 drivers, SAS failures might occur after you apply certain Microsoft updates.

If you encounter similar behavior when using Microsoft 365 Apps, refer to SAS KB0036381 instead.

In the scenario for Microsoft Office 2016 / Microsoft Access Runtime version 16, the SAS log shows messages similar to the following: 

ERROR:  An exception has been encountered.
Please contact technical support and provide them with the following traceback information:
The SAS task name is [EXPORT]
ERROR:  Read Access Violation EXPORT
Exception occurred at (0B0E57F2)
Task Traceback
Address   Frame     (DBGHELP API Version 4.0 rev 5)
00007FFB0B0E57F2  00000000350D9A80  mso20win32client:Ordinal721+0x32
00007FFAEE3C2CFF  00000000350D9A88  mso:Ordinal2409+0xC7
00007FFB03AA6ACC  00000000350D9AB8  0001:00000000001A5ACC acecore.dll
00007FFB0393BB6B  00000000350D9B10  0001:000000000003AB6B acecore.dll
00007FFB04CE9072  00000000350D9B18  ACEOLEDB:DllCanUnloadNow+0x13A7E
00007FFB04CE9044  00000000350D9B90  ACEOLEDB:DllCanUnloadNow+0x13A50

When this condition occurs, the Windows Event Viewer typically shows the faulting module as ACEOLEDB.DLL or mso20win32client.dll. Here is an example:

Faulting application name: sas.exe, version: 9406.100.23523.40334, time stamp: 0x5be39dae
Faulting module name: ACEOLEDB.DLL_unloaded, version: 16.0.5287.1000, time stamp: 0x61fb5d40
Exception code: 0xc0000005

Since ACEOLEDB.DLL and mso20win32client.dll are used when working with Microsoft Office file types such as Microsoft Excel and Microsoft Access, this issue is most often encountered when you use SAS/ACCESS Interface to PC Files with LIBNAME or PROC statements. 

Microsoft Support has confirmed this problem was corrected in subsequent versions of Update for Office 2016, beginning with KB5002226. They recommend using one of these fixes:

 

If you do not want to apply the Microsoft fix in your environment right away, there are two known workarounds for this issue:

1. Roll back the Microsoft Office updates that were applied before the error started occurring. Some known updates that might contribute to this issue are Microsoft KB5002160 and Microsoft KB5002182, but others might also be involved depending on your specific environment. 
 

2. If you are working with Excel files when the issue occurs, using the SAS XLSX engine instead of EXCEL bypasses the problematic Microsoft components.