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 / New BadGateway error o...
Power Automate
Unanswered

New BadGateway error occuring out of the blue.

(1) ShareShare
ReportReport
Posted on by

My flows have been working for about 9 months and on Wed the 21st the flows stopped moving items from point A to point B and started throwing this error instead:

This is using the Outlook365 Move Email (V2) connection. Any thoughts on how to fix this? My local IT team tells me no changes were made to the mailbox settings, and I've tried replacing the connection, the authorization keys, and changing the folders that things were to land in to try and sort this out. What's more odd is other flows using Move Email (V2) work just fine but most of them are broken.

{
"error": {
"code": 502,
"source": "flow-apim-msmanaged-na-westus2-01.azure-apim.net",
"clientRequestId": "68da9dae-d861-489c-ad5c-3fd2be2172d2",
"message": "BadGateway",
"innerError": {
"status": 502,
"message": "Mailbox move in progress. Try again later., The user and the mailbox are in different Active Directory sites.\r\nclientRequestId: 68da9dae-d861-489c-ad5c-3fd2be2172d2\r\nserviceRequestId: 1a63f55d-be1f-44ed-bd12-7d8b49c2920f",
"error": {
"message": "Mailbox move in progress. Try again later., The user and the mailbox are in different Active Directory sites.",
"code": "ErrorMailboxMoveInProgress",
"originalMessage": "Mailbox move in progress. Try again later., The user and the mailbox are in different Active Directory sites."
},
"source": "office365-eus2.azconn-eus2-01.p.azurewebsites.net"
}
}
}

{
"Pragma": "no-cache",
"x-ms-datasourceerror": "True",
"x-ms-request-id": "1a63f55d-be1f-44ed-bd12-7d8b49c2920f",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
"X-Frame-Options": "DENY",
"Cache-Control": "no-store, no-cache",
"Set-Cookie": "ARRAffinity=e0b482a211bb8d11992ab083795f48047a477257bf228166fa883d2e1acee181;Path=/;HttpOnly;Secure;Domain=office365-eus2.azconn-eus2-01.p.azurewebsites.net,ARRAffinitySameSite=e0b482a211bb8d11992ab083795f48047a477257bf228166fa883d2e1acee181;Path=/;HttpOnly;SameSite=None;Secure;Domain=office365-eus2.azconn-eus2-01.p.azurewebsites.net",
"Timing-Allow-Origin": "*",
"x-ms-apihub-cached-response": "true",
"Date": "Fri, 23 Apr 2021 16:53:27 GMT",
"Content-Length": "915",
"Content-Type": "application/json",
"Expires": "-1"
}

Categories:
I have the same question (0)
  • jordancrane Profile Picture
    8 on at
    We have been getting the same error for over a week now, it is very frustrating and I have spent hours trying to get it to work and have pretty much given up.

    Here is our error:
    {
      "error": {
        "code"502,
        "source""unitedstates-002.azure-apim.net",
        "clientRequestId""052447af-684b-4823-8781-d3a8a94ac8ea",
        "message""BadGateway",
        "innerError": {
          "status"502,
          "message""Mailbox move in progress. Try again later., The user and the mailbox are in different Active Directory sites.\r\nclientRequestId: 052447af-684b-4823-8781-d3a8a94ac8ea\r\nserviceRequestId: e46ad527-f503-445d-beb2-0e56964b4578",
          "error": {
            "message""Mailbox move in progress. Try again later., The user and the mailbox are in different Active Directory sites.",
            "code""ErrorMailboxMoveInProgress",
            "originalMessage""Mailbox move in progress. Try again later., The user and the mailbox are in different Active Directory sites."
          },
          "source""office365-wus.azconn-wus-01.p.azurewebsites.net"
        }
      }
    }
    {
      "Pragma""no-cache",
      "x-ms-datasourceerror""True",
      "x-ms-request-id""e46ad527-f503-445d-beb2-0e56964b4578",
      "Strict-Transport-Security""max-age=31536000; includeSubDomains",
      "X-Content-Type-Options""nosniff",
      "X-Frame-Options""DENY",
      "Cache-Control""no-store, no-cache",
      "Set-Cookie""ARRAffinity=fa9050a86380ecce883d8ff2e805dd22d58cc29332b6761a0fc08c7d82b3fa74;Path=/;HttpOnly;Secure;Domain=office365-wus.azconn-wus-01.p.azurewebsites.net,ARRAffinitySameSite=fa9050a86380ecce883d8ff2e805dd22d58cc29332b6761a0fc08c7d82b3fa74;Path=/;HttpOnly;SameSite=None;Secure;Domain=office365-wus.azconn-wus-01.p.azurewebsites.net",
      "Timing-Allow-Origin""*",
      "x-ms-apihub-cached-response""true",
      "Date""Thu, 29 Apr 2021 00:13:06 GMT",
      "Content-Length""896",
      "Content-Type""application/json",
      "Expires""-1"
    }
  • Community Power Platform Member Profile Picture
    on at

    Yup. This solution worked for our needs for about 9 months and it all fell apart this last week. 

  • ZS-26091239-0 Profile Picture
    2 on at
    i am having this same issue on the V3 connector. was working for a long time, all of a sudden it's not. 
  • krakesh Profile Picture
    2 on at
    Same here, even we are experiencing the similar error all of a sudden.
    Last week it was working fine, this week suddenly we see this error.
  • Michael E. Gernaey Profile Picture
    53,452 Super User 2025 Season 2 on at
    Lots of issues related to network and services last 2 days has really gotten bad

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard