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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Excel Run Script retur...
Power Automate
Unanswered

Excel Run Script return error with no detail

(1) ShareShare
ReportReport
Posted on by 8

I have a excel script work fine in browser Excel, basically just copy the existing sheet and create a new one and parse some value and save in the same row at different column. Like other previous topics, I have 502 BadGateway error however, with nothing telling me whats wrong 

 

"body": {
        "error": {
            "code"502,
            "source""asia-001.azure-apim.net",
            "clientRequestId""0a1ed183-a464-4b93-9255-faa9ae3159fa",
            "message""BadGateway",
            "innerError": {
                "message""We were unable to run the script. Please try again.\r\nclientRequestId: 0a1ed183-a464-4b93-9255-faa9ae3159fa",
                "logs"null
            }
        }
    }
Categories:
I have the same question (0)
  • cam_scott Profile Picture
    8 on at
    I'm having the same problem too, even when testing with a very simple office script in excel.
     
     
    {
      "error": {
        "code"502,
        "source""australia-001.azure-apim.net",
        "clientRequestId""557326b1-74d8-4932-927e-c2ea16fadf86",
        "message""BadGateway",
        "innerError": {
          "message""We were unable to run the script. Please try again.\r\nclientRequestId: 557326b1-74d8-4932-927e-c2ea16fadf86",
          "logs"null
        }
      }
    }
     
    Have you managed to find a solution to this?
  • testingMSK Profile Picture
    8 on at

    I cannot find the solution, I have contact Microsoft and have a meeting with them. They said they are looking into this matter but do not have any workaround at the moment

  • cam_scott Profile Picture
    8 on at

    That's frustrating, thank you for letting me know. Please let me know how it goes : ) 

  • Alex_MSFT Profile Picture
    Microsoft Employee on at

    Hello, my name is Alex and I'm with the Office Scripts team at Microsoft.

     

    Thank you for providing the requestID. I looked into our logs, and it looks like this issue should have been transient -- at the time of your request, we were not able to handle the request due to the volume we were receiving at that time. If you try again now, I expect it to work.

  • Alex_MSFT Profile Picture
    Microsoft Employee on at

    Are you still having this problem? Looking at our logs based on your requestID, it seems to me that this issue should have been transient, and should be resolved and working fine now. Please let me know if that isn't the case.

  • cam_scott Profile Picture
    8 on at

    Thank you Alex, I can confirm that it is working as expected now : ) 

  • testingMSK Profile Picture
    8 on at

    Hi Alex, 

    Thank for your reply, the simple script is working now, i will test with my intended script now, thanks again. 

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
trice602 Profile Picture

trice602 239 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 177 Super User 2026 Season 1

#3
Kalathiya Profile Picture

Kalathiya 97 Super User 2026 Season 1

Last 30 days Overall leaderboard