-
Notifications
You must be signed in to change notification settings - Fork 120
Shared runtime issues after Excel.createWorkbook #6531
Description
Calling Excel.createWorkbook opens a new Excel window where the ribbon menu freezes.
In addition the launch of the add-in shared runtime does not seem to work.
Your Environment
- Platform [PC desktop, Mac, iOS, Office on the web]: PC desktop
- Host [Excel, Word, PowerPoint, etc.]:Excel
- Office version number: 2601 | 19628.20214
- Operating System: Windows
Expected behavior
Ribbon menu should not freeze
Current behavior
Ribbon menu freezes
Steps to reproduce
- Load the "SAP Analytics Cloud" add-in from the store
- Close all Excel windows
- Open Excel
- Run the attached ScriptLab script
- Click the first button
After that the ribbon menu in the opened Excel window freezes. The real issue is that the taskpane app of the add-in does not succeed reading out the custom XML part of the workbook. There are no errors on the console and no errors in the runtime log. I guess the freezed ribbon is related to this.
The opened workbook contains content created by SAP Analytics Cloud add-in. In addition a custom function of the SAP namespace is used in the workbook.
My assumption is that the shared runtime of the add-in is somehow launched too early and probably the Office.onReady call hangs or the first call to context.sync has issues.
The issue does not occur if no custom function is used in the workbook (second button).
In general the issue only occurs the very first time after creating Excel.createWorkbook. The issue does not occur when you reopen the created workbook or when you refresh the taskpane app.
Useful logs
- Console errors
- Screenshots
- Test file (if only happens on a particular file)