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 (502) when ...
Power Automate
Unanswered

BadGateway (502) when forwarding an email to a shared mailbox

(1) ShareShare
ReportReport
Posted on by 64

Hi,

A flow that has been running for several months is now failing with the BadGateway error:

- trigger='When a new email arrives in a shared mailbox'

- action='Forward an email' or 'Forward an email (V2)'

- status code=502

- Body=

{
"error": {
"code": 500,
"source": "flow-apim-msmanaged-na-centralus-01.azure-apim.net",
"clientRequestId": "7eef32fc-f78a-44e7-b5c9-3eeae8627a67",
"message": "BadGateway",
"innerError": {
"error": {
"code": "ErrorInternalServerError",
"message": "An internal server error occurred. The operation failed., Cannot open mailbox.",
"innerError": {
"request-id": "24a9e885-6755-4046-a563-29b1edf761ab",
"date": "2019-09-13T15:01:09"
}
The email is forwarded to another shared mailbox.
Thanks for helping me to fix this issue.
Categories:
I have the same question (0)
  • v-bacao-msft Profile Picture
    on at

     

    Hi @Erick ,

     

    Could you share the details of the Flow configuration and the Flow run history?

    I did a similar test on my side, but I was unable to reproduce such an issue.

    I noticed that the error code shows 500/502. This seems to be a temporary error. Please try to update the connection or recreate the connection and see if the issue still exists.

     

    Best Regards,

  • Community Power Platform Member Profile Picture
    on at

    We have an incident opened with Microsoft regrading this issue.

    We have 15+ Flows that take attachements from Shared Mailboxes and place them in SharePoint Lists. Currently all of them are giving us the 502 error.

    The response back we have so far is:

    "Other actions might have worked with shared mailboxes till last week but now have started to fail, as the Office team have started shared mailbox migration and moving them to a different cluster. "

    No ETA on a solution yet..

  • Erick Profile Picture
    64 on at
    Hi Barry, Thanks for your reply. I did what you said (deleted and recreated all connections) and it is working since. I am only hoping the issue won't come back later. Here is the link on the flow: https://flow.microsoft.com/galleries/private/templates/5593c729da6a4ac7875c2db57ae5b136?utm_source=sendacopy&utm_medium=email&loginTenant=3ac94b33-9135-4821-9502-eafda6592a35 Let me know if you don't have access. Regarding the flow history I don't know how to export it. Is a screenshot enough? Thanks & Best Regards Eric
  • Verified answer
    v-bacao-msft Profile Picture
    on at

     

    Hi @Erick ,

     

    Thank for your reply!

    It seems that re-creating the connection can slow down this situation, if it happens again, please let us know.

    And according to the message provided by @Anonymous , this seems to be by design, and it seems that someone has already stepped in.

     

    Best Regards,

  • sebkodem Profile Picture
    6 on at

    I observed this behavior with the Forward an email (V2) if I forgot to set the "Original Mailbox Address". The problem disappeared once I added it.

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard