SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 67351: SAS® Visual Analytics reports that you open from the metadata are not refreshed when scheduled using the SAS® Add-In for Microsoft Office

DetailsHotfixAboutRate It

If you schedule a SAS Visual Analytics report to refresh using the SAS Add-In for Microsoft Office, the scheduled task does run. However, the SAS Visual Analytics report might not refresh in Microsoft Office. This issue typically happens if you open the SAS Visual Analytics report using the metadata server.  Due to a timing issue, it might also occur if you open the SAS Visual Analytics report using additional SAS Visual Analytics servers.

To circumvent this issue, you can follow these instructions to allow the scheduled SAS Add-In for Microsoft Office report to refresh the SAS Visual Analytics report:

  1. Open the report using the SAS Visual Analytics server, rather than a metadata server:

             va report

  1. Add a line to increase the wait time before the refresh in the Visual Basic script that is created by the SAS Add-In for Microsoft Office:
 Dim SASAddin
 Set SASAddin = excel.COMAddIns("SAS.ExcelAddIn")
 Set AddinObj = SASAddin.Object
 Set SASAddin = Nothing
'Add a wait time before the refresh, approximately 20 seconds
   Wscript.sleep 20000                    
 '-----
 ' refresh the workbook
 '-----
 AddinObj.Refresh( workbook )
 If CheckError("Addin.Refresh") = True Then
  Exit Sub
 End If
  1. Also increase the wait time after the refresh and before the save to approximately 20 seconds:

    Wscript.sleep 20000

 '-----
 ' Save the newly refreshed workbook
 '-----
 workbook.Save
 If CheckError("workbook.Save") = True Then
  Exit Sub
 End If

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



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Add-in for Microsoft OfficeWindows 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 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 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
Windows 7 Professional x648.39.4 TS1M7
Windows 7 Ultimate 32 bit8.39.4 TS1M7
Windows 7 Ultimate 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.