web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : npOkqZtp9CaSWQVjh9UcE2
Power Automate - General Discussion
Answered

Excel Automate: New Script → Error Message

Like (0) ShareShare
ReportReport
Posted on 23 Sep 2022 14:58:04 by

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."

 

Excel_002.gif

 

 

 

How can this problem be solved?

 

Thank you in advance and best regards,

Daniel

  • Yutao Huang Profile Picture
    Microsoft Employee on 28 Jun 2023 at 15:50:05
    Re: Excel Automate: New Script → Error Message

    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!

  • ryan666 Profile Picture
    14 on 27 Jun 2023 at 07:51:19
    Re: Excel Automate: New Script → Error Message

    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.

     

    ryan666_0-1687851920652.png

    ryan666_2-1687852212375.png

     

     

  • ryan666 Profile Picture
    14 on 25 Jun 2023 at 11:09:01
    Re: Excel Automate: New Script → Error Message

    Hi and yes. Here it is:

    clientRequestId: 1ebcd360-b66d-4659-942e-997359602f80
     Edit: Actually that is just one I was toying with to try to get around the problem.
     
    Here is what the desired one is like:
    clientRequestId: 4a350312-b907-4a24-b137-e7bf5a94380b
     
    The steps look like this:
    The 'Outputs' in ScriptParameters is my image.
    The script itself is in a compose and dropped into the Script field as custom value because I cant search for actual scripts due to the error:
     
    ryan666_1-1687691855095.png

     

    ryan666_2-1687691952129.png

     


     

     
     
  • Yutao Huang Profile Picture
    Microsoft Employee on 24 Jun 2023 at 17:57:15
    Re: Excel Automate: New Script → Error Message

    @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.

    Yutao_0-1687629304323.png

     

  • ryan666 Profile Picture
    14 on 24 Jun 2023 at 17:50:53
    Re: Excel Automate: New Script → Error Message

    Thanks for the reply. the problem seems to still be happening.

    I continue to try and will update.

  • Yutao Huang Profile Picture
    Microsoft Employee on 24 Jun 2023 at 17:35:13
    Re: Excel Automate: New Script → Error Message

    @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!

  • ryan666 Profile Picture
    14 on 24 Jun 2023 at 13:32:39
    Re: Excel Automate: New Script → Error Message

    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()'.

  • ryan666 Profile Picture
    14 on 24 Jun 2023 at 12:55:33
    Re: Excel Automate: New Script → Error Message

    Any updates? I just noticed this for the first time today.

    Not sure I can afford to just wait/hope that this goes away.

    ryan666_0-1687610999405.png

    And

    ryan666_1-1687611024545.png

     

    And I believe that whatever is going on might be the cause of this Power Automate issue as well:

    ryan666_2-1687611204856.png

     

     

     

     

  • Yutao Huang Profile Picture
    Microsoft Employee on 11 Jan 2023 at 16:50:45
    Re: Excel Automate: New Script → Error Message

    Hi all, please follow this thread for any further updates: Execute Excel Script - Unauthorized - Power Platform Community (microsoft.com). Thank you!

  • Community Power Platform Member Profile Picture
    on 11 Jan 2023 at 09:51:39
    Re: Excel Automate: New Script → Error Message

    FYI - although not a good solution, it is A solution. This is why I'll mark it as such.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2