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 / BadGateway GetSingleSc...
Power Automate
Unanswered

BadGateway GetSingleScript failure Office Script run on Excel File

(0) ShareShare
ReportReport
Posted on by

Failed to retrieve dynamic inputs. Error details: 'The dynamic operation request to API 'excelonlinebusiness' operation 'GetSingleScriptV2' failed with status code 'BadGateway'. Error response: { "error": { "code": 502, "source": "msmanaged-na.azure-apim.net", "clientRequestId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "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: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "error": { "message": "The server experienced an issue and couldn't complete the request. Please try again in a few moments." }, "source": "excelonline-eus.azconn-eus-003.p.azurewebsites.net" } } }'

 

Above is the error I am receiving consistently when trying to run a script in Power Automate using Excel for Business. I have tried running different scripts including the one provided by the Microsoft tutorial and others found online (with and without script params) to ensure the script functions properly. The retrieval of my Excel file works as I have tested it with a single Get Worksheet action, and it succeeds, but when I integrate the script, it fails. I have tried saving and pulling it from OneDrive and SharePoint using the Run Script from SharePoint Library action, and I have tried pulling it from my OneDrive using the simple Run Script action with the file in my /Documents/Office Script/. It is allowing me to select the file properly (I am not custom filling out the boxes), so the connection must be somewhat correct. It also seems I have permissions to execute the script from a file properties standpoint (User, SYSTEM, and Admin). I am not sure what the problem is or what to do next; I would appreciate any and all help I can receive. Thanks!

Categories:
I have the same question (0)

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 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard