Open Shukla-Dev opened 6 months ago
Thanks for reporting this, @Shukla-Dev.
@penglongzhaochina, could you please look into this further?
Hi @m-hellesen, could you please take a look this bug? Thanks.
Hi there, can you please share a manifest with us so we can debug further?
It works fine when I use Taskpane.Url to open taskpane and enable and disable controls. but I have multiple controls that opens different urls and in manifest I have different urls for them then it is showing this error...
<?xml version="1.0" encoding="UTF-8"?> <OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0" xmlns:ov="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="TaskPaneApp">
@m-hellesen and @mhelles (Are you the same person?) Another customer is reporting the same thing: sharedruntime id is missing. The common denominator is that both customers are using Angular. Can we bump this up in priority?
I am running into the same error in a TypeScript React.js Add-in:
excel-win32-16.01.js:25 Uncaught (in promise) RichApi.Error: The SharedRuntime ID is missing.
at new n (excel-win32-16.01.js:25:265603)
at i.processRequestExecutorResponseMessage (excel-win32-16.01.js:25:330050)
at excel-win32-16.01.js:25:328113
at async updateAoiRibbon (ribbon.ts?t=1725653491714:68:9)
Notes:
SourceLocation.resids
(same URL with different query strings)Office.onReady
in the command.ts file to call Office.context.document.addHandlerAsync
for the Office.EventType.DocumentSelectionChanged
eventDocumentSelectionChanged
attempts to update the Ribbon and fails.I do believe in a “Hello World” version of the code, a visible taskpane was able to turn on and off the controls on a ribbon. However, I want the ribbon to control which taskpanes are available.
The Manifest.xml file is 17k+ lines long :(
I am facing the same error as Dev, i am using Angular & Typescript. RichApi.Error: The Sharedruntime ID is missing. at new n (excel-win32-16.01.js:25:265618) at i.processRequestExecutorResponseMessage (excel-win32-16.01.js:25:330065) at excel-win32-16.01.js:25:328128 at _ZoneDelegate.invoke (zone.js:372:26) at Zone.run (zone.js:134:43) at zone.js:1275:36 at _ZoneDelegate.invokeTask (zone.js:406:31) at Zone.runTask (zone.js:178:47) at drainMicroTaskQueue (zone.js:585:35)
Hello, are you still seeing this issue?
So I was able to repro this error, when you specify a sharedruntime, your URL for your sharedruntime and taskpane need to match.
For example:
Manifest snippet 1:
`
`
Manifest snippet 2:
`
<Group id="TPGroup1">
<Label resid="SharedTPGroup.Label" />
<Icon>
<bt:Image size="16" resid="Icon16" />
<bt:Image size="32" resid="Icon32" />
<bt:Image size="80" resid="Icon80" />
</Icon>
<Control xsi:type="Button" id="BtnShow1">
<Label resid="ShowSharedTP.Label" />
<Supertip>
<Title resid="ShowSharedTP.Label" />
<Description resid="ShowSharedTP.Tooltip" />
</Supertip>
<Icon>
<bt:Image size="16" resid="Icon16" />
<bt:Image size="32" resid="Icon32" />
<bt:Image size="80" resid="Icon80" />
</Icon>
<Action xsi:type="ShowTaskpane">
<SourceLocation resid="SharedRuntimeUrl" />
</Action>
</Control>
</Group>`
So I was able to repro this error, when you specify a sharedruntime, your URL for your sharedruntime and taskpane need to match.
Please confirm that, based on your findings, if an add-in uses a shared runtime, that add-in is then limited to a single task pane and URL until this issue is resolved.
Can the single task pane in a shared runtime add-in use different resid's, where each resid points to the same URL but maps to a different set of query parameters?
So when your add-in uses sharedruntime, the add-in is running all of it's code in one browser. It gives the add-in the ability to share global state between say a taskpane and functions. There is 1 endpoint (conceptually you can think of it as having 1 display surface). The endpoint is what you specified in the runtime element. So it's by design this way, we do not support multiples.
If you want to have multiple taskpanes (multiple display surfaces) then you cannot use shared runtime. What you might have to do is make sure your multiple taskpanes are all under the same domain, and use cookies, local storage if you need to shared data.
I am trying to develop excel addin with custom functions and taskpane and I want to achieve enable and disable control functionality but when I try to use Office.ribbon.requestUpdate method it throws Rich Api : SharedRuntime ID is missing Error.
I followed steps shown in this doc : https://learn.microsoft.com/en-us/office/dev/add-ins/design/disable-add-in-commands
Useful logs
This is the error I am getting in console.
Thank you for taking the time to report an issue. Our triage team will respond to you in less than 72 hours. Normally, response time is <10 hours Monday through Friday. We do not triage on weekends.