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

Announcements

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 286

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard