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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / [SOLVED] Error while t...
Power Automate
Unanswered

[SOLVED] Error while trying to use the Run Script action of Excel Business on power automate

(0) ShareShare
ReportReport
Posted on by 17

Hello, I'm stuck with this issue:

limaluca_0-1703011073527.png

 

 

 

 

 

 

The dynamic operation request to API 'excelonlinebusiness' operation 'GetSingleScript' failed with status code 'BadGateway'. Error response: { "error": { "code": 502, "source": "brazil-001.azure-apim.net", "clientRequestId": id, "message": "BadGateway", "innerError": { "status": 502, "message": "The server experienced an issue and couldn't complete the request. Please try again in a few moments. clientRequestId: id, "error": { "message": "The server experienced an issue and couldn't complete the request. Please try again in a few moments." }, "source": "excelonline-bs.azconn-bs-001.p.azurewebsites.net" } } }

 

 

 

 

When I tried to save the flow despite the error message, that's what I got:

 

 

Flow save failed with code 'MultipleErrorsOccurred' and message 'The dynamic operation request to API 'excelonlinebusiness' operation 'GetSingleScript' failed with status code 'BadGateway'. Error response: { "error": { "code": 502, "source": "brazil-001.azure-apim.net", "clientRequestId": "id", "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: id", "error": { "message": "The server experienced an issue and couldn't complete the request. Please try again in a few moments." }, "source": "excelonline-bs.azconn-bs-001.p.azurewebsites.net" } } };The dynamic operation request to API 'excelonlinebusiness' operation 'GetSingleScript' failed with status code 'BadGateway'. Error response: { "error": { "code": 502, "source": "brazil-001.azure-apim.net", "clientRequestId": "id", "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: id", "error": { "message": "The server experienced an issue and couldn't complete the request. Please try again in a few moments." }, "source": "excelonline-bs.azconn-bs-001.p.azurewebsites.net" } } }'.

 

 

 

The part where it gets weird: I have access to another power platform of a different company and I was able to run the same script without trouble. What could that be? If its something internal, can someone from Microsoft help?

--------------------------------------------------------------------------------------------
SOLUTION:
I was creating the script with my personal account logged on excel. And then I copied the .osts file and pasted on the onedrive of another account, the one that was running the flow.

The solution is: The same account you log into Excel and create the script must be the same account that will run the flow.

 

Categories:
I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @limaluca 

     

    seems like an internal issue within API, have you reopened the flow again and ran it ?

     

    see whether it worked up ?

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • limaluca Profile Picture
    17 on at

    Hello @Nived_Nambiar , 

    I did reopen and run it again. I even created a new flow and also created a new connection for the excel business connector. I tried those without success

  • ramsha013 Profile Picture
    34 on at
    Hey,
     
    I am facing a similar issue as of 5 Feb 2025. 
     
    No changes were made recently, and has suddenly stopped working on a live environment causing major disruption to the client.
     
    I have tried creating a new excel file and a new script from the same account, however, the issue comes when we're accessing the power automate designer. The dropdown where we can select the script does not show anything but a huge error.
     
    Also, the flow that we're facing the issue in is in a live app, which was already being used, and has suddenly stopped today.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard