Skip to main content

Notifications

Power Automate - General Discussion
Unanswered

Start an approval failing with "500 bad gateway"

(0) ShareShare
ReportReport
Posted on by 58

I have a flow where a variable is initialised with two email address in our organisation, separated with semicolons, and then further emails are added to the variable, again separated with semicolons.

 

This variable is then used as the list of approvers to send to.

 

However each time the flow runs the "Start an Approval" task fails with the error: 
InternalServerError. The request failed. Error code: '500'. Error Message: 'BadGateway'.

This messages does not tell me anything useful, so I am unsure as to what the problem is.

Here is my flow:

 

flowwitherror.png

 

And here is the "Start and approval" task in edit mode:

approvaltask.png

 

What could the problem be?


Thanks for any help,

Richard

  • rmmcgr Profile Picture
    rmmcgr 58 on at
    Re: Start an approval failing with "500 bad gateway"

    So it turns out the problem in our case was related to the fact that we were using some an email addresses that were  distribution groups/Office 365 groups.

     

    I think the approval flows will only work with approval requests to emails associated with proper user accounts in Office 365. Once we removed the group email addresses it started working.

     

    Hope this helps,

    Richard

  • Re: Start an approval failing with "500 bad gateway"
    I have the same issue and tried many ways but all failed. Anyone has solution? Thanks.
  • dave-jorgensen Profile Picture
    dave-jorgensen 502 on at
    Re: Start an approval failing with "500 bad gateway"

    Did you get any resolution on this issue? I'm running into the same thing

  • rmmcgr Profile Picture
    rmmcgr 58 on at
    Re: Start an approval failing with "500 bad gateway"

    I did try the recommendation but unfortunately it did not work.

     

    I have raised a support ticket and will see what happens from there.

     

    Thanks,

    Richard

  • Re: Start an approval failing with "500 bad gateway"

    Hello,  @rmmcgr!

    Have you had an opportunity to apply @v-yuazh-msft‘s recommendation to adapt your Flow? If yes, and you find that solution to be satisfactory, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify!


    Thank you for being an active member of the Flow Community!

    -Gabriel
    Flow Community Manager

  • v-yuazh-msft Profile Picture
    v-yuazh-msft on at
    Re: Start an approval failing with "500 bad gateway"

    Hi @rmmcgr,

     

    If the error code 500 appears, the failure is temporary or transient. Click or tap Resubmit to try the flow again.

    Also please take a try to delete the dynamic conteent in the "Start an approval" action to see if the issue still exists.

     

    Best regards,

    Alice

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,636

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,942

Leaderboard