Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

BadGateway error using "Export Email V2"

(0) ShareShare
ReportReport
Posted on by 36

Hello

I started receiving this error about 24 hours ago.  Can anyone help please?
My whole flow is failing.  😞 Error.JPG

 

BODY OUTPUT
{
  "error": {
    "code"503,
    "source""australia-001.azure-apim.net",
    "clientRequestId""221335f3-7aea-4e9d-af1a-0ccb5e4faa6c",
    "message""BadGateway",
    "innerError": {
      "error": {
        "code""ErrorMailboxMoveInProgress",
        "message""Mailbox move in progress. Try again later., The user and the mailbox are in different Active Directory sites."
      }
    }
  }
}

HEADERS

{
  "Transfer-Encoding""chunked",
  "Retry-After""15",
  "Vary""Accept-Encoding",
  "Strict-Transport-Security""max-age=31536000",
  "request-id""a7931c66-269b-4ec6-b620-2075b92fc4d2",
  "client-request-id""a7931c66-269b-4ec6-b620-2075b92fc4d2",
  "x-ms-ags-diagnostic""{\"ServerInfo\":{\"DataCenter\":\"Australia Southeast\",\"Slice\":\"E\",\"Ring\":\"4\",\"ScaleUnit\":\"001\",\"RoleInstance\":\"ML1PEPF000034A4\"}}",
  "Timing-Allow-Origin""*",
  "x-ms-apihub-cached-response""true",
  "Cache-Control""private",
  "Date""Thu, 22 Apr 2021 05:59:28 GMT",
  "Content-Type""application/json",
  "Content-Length""416"
}
  • Chris_Williams Profile Picture
    52 on at
    Re: BadGateway error using "Export Email V2"

    Update for my situation.  I can use Move email V2 to a shared folder inside it's own scope & no errors are flagged. Works fine

  • Chris_Williams Profile Picture
    52 on at
    Re: BadGateway error using "Export Email V2"

    I'm also getting these errors.  The flow works and the email is copied to the shared folder, but the run history shows a failure.  Very confusing

  • kgregg Profile Picture
    23 on at
    Re: BadGateway error using "Export Email V2"

    Interesting.  I tried that before and it didn't fix it but did it just now to one of my workflows and it did.  I'll try it on the others.

     

  • Ell_ Profile Picture
    36 on at
    Re: Bad Gateway error using "Export Email V2"

    Thanks @SrinathMothe this seems to have enabled the flow to work again 😄 😄 

  • Ell_ Profile Picture
    36 on at
    Re: BadGateway error using "Export Email V2"

    Providing "Original Mailbox Address" has worked. I wonder why it just suddenly stopped when it was working for weeks prior. 

  • kgregg Profile Picture
    23 on at
    Re: BadGateway error using "Export Email V2"

    Something is broken on the MS side.  We are getting this same issue along with many other people.

  • Verified answer
    SrinathMothe Profile Picture
    19 on at
    Re: Bad Gateway error using "Export Email V2"

    Hi ,

     

    If you are trying to export email from other shared mailbox, provide  original mailbox address  along with the Message Id as inputs for Export Email(v2) action. Hope it will resolves the issue

  • Ell_ Profile Picture
    36 on at
    Re: Bad Gateway error using "Export Email V2"

    In the image below, the flow run on the right was the last successful before it now won't work. 
    I notice the left side has a different Content-Type. 
    Could this be the problem? 
    Nothing has changed, it just stopped working as of that point. and all I can see that is different is this value. 

    Flow snapshot.JPGLast successful Run on the right. First failed run on the left.Last successful Run on the right. First failed run on the left.

  • Ell_ Profile Picture
    36 on at
    Re: Bad Gateway error using "Export Email V2"

    Thank you for the reply @Gopala_Krishna 

    They have advised no changes have been made
    I tried to re-run and still errors.
    I also refreshed the connections and even tried to export the flow .zip and reimport. 
    All still the same error.

  • Gopala_Krishna Profile Picture
    1,491 on at
    Re: Bad Gateway error using "Export Email V2"

    @Ell_ 

    It seems that there is some issue with your mailbox configuration, can you please check with your administrator once if they have done any changes to your mailbox. 

     

    Also, you can try re-running the flow again to check if there are any issues now.

     

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    if the information shared helps you, please consider giving a thumbs up 👍 and mark solution as resolved

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz โ€“ Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Communityโ€ฆ

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,522 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,890 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow