In Excel I can't create new or access already existing scripts in the Automate ribbon. After a moment the following error message appears:
// German
"Ein unerwarteter Fehler ist aufgetreten. Schließen Sie den Aufgaben Bereich, um es erneut zu versuchen.
Wir konnten Ihre Skripts nicht laden. Versuchen Sie es erneut."
// English
"An unexpected error occurred. Close the task pane to try again.
We could not load your scripts. Try it again."
How can this problem be solved?
Thank you in advance and best regards,
Daniel
Thank you for sharing the info @ryan666 ! Yea unfortunately it seems the patch rollout took a bit longer than expected. But I believe it is fully rolled out now.
As always, thanks again for everyone's patience and support!
All is back to normal again. Thanks to Yutao for your interest in helping.
I have 2 workstations: One in Canada and another in Poland.
The Canadian one started working yesterday. The Poland one now works today.
My o365 tenant is in Canada.
Not sure if any of that info is helpful ..... but like the others who reported this, I just had to wait.
Hi and yes. Here it is:
@ryan666 - can you share the clientRequestId of the failed Run scrip action? You can find that ID from the Error Details pane on the run history page.
Thanks for the reply. the problem seems to still be happening.
I continue to try and will update.
@ryan666 -
Sorry to hear you were experiencing the issue with the Run script action. We were aware of an outage in one of the services we depend on that might have potentially caused the problem. A patch is being rolled out at the moment. Please give it a try and let me know if the issue persists. Thanks for your patience and support!
The full Power Automate 'Run Script' error that Im getting:
Could not retrieve values. The dynamic invocation request failed with error: Unexpected error occurred when calling the ApiHubsRuntime API: 'Microsoft.Azure.ProcessSimple.Data.Entities.Exceptions.ProcessSimpleDataException: The ApiHubsRuntime API call failed with http status code 'BadGateway' and response content '{ "error": { "code": 502, "source": "canada-001.azure-apim.net", "clientRequestId": "a0b46dab-1799-4988-8fa3-b63ab5b88c98", "message": "BadGateway", "innerError": { "status": 502, "message": "The server experienced an issue and couldn't complete the request. Please try again in a few moments.\r\nclientRequestId: a0b46dab-1799-4988-8fa3-b63ab5b88c98", "error": { "message": "The server experienced an issue and couldn't complete the request. Please try again in a few moments." }, "source": "excelonline-ce.azconn-ce-001.p.azurewebsites.net" } } }' at Microsoft.Azure.ProcessSimple.Data.DataProviders.HttpClientDataProvider.<>c__DisplayClass47_1`2.<<CallService>b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.WindowsAzure.ResourceStack.Common.Algorithms.AsyncRetry.<Retry>d__3`1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult() at Microsoft.Azure.ProcessSimple.Data.DataProviders.HttpClientDataProvider.<CallService>d__47`2.MoveNext()'.
Any updates? I just noticed this for the first time today.
Not sure I can afford to just wait/hope that this goes away.
And
And I believe that whatever is going on might be the cause of this Power Automate issue as well:
Hi all, please follow this thread for any further updates: Execute Excel Script - Unauthorized - Power Platform Community (microsoft.com). Thank you!
FYI - although not a good solution, it is A solution. This is why I'll mark it as such.