Skip to main content

Notifications

Power Automate - General Discussion
Answered

Excel Automate: New Script → Error Message

(0) ShareShare
ReportReport
Posted on 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
    Yutao Huang on at
    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
    ryan666 14 on at
    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
    ryan666 14 on at
    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
    Yutao Huang on at
    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
    ryan666 14 on at
    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
    Yutao Huang on at
    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
    ryan666 14 on at
    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
    ryan666 14 on at
    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
    Yutao Huang on at
    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!

  • 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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,636

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,942

Leaderboard