cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rmmcgr
Kudo Collector
Kudo Collector

Start an approval failing with "500 bad gateway"

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

6 REPLIES 6
v-yuazh-msft
Community Support
Community Support

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

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

- Gabriel
Community Manager
Power Automate | Power Virtual Agents
Super User Program Manager



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

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

Anonymous
Not applicable

I have the same issue and tried many ways but all failed. Anyone has solution? Thanks.

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

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events happening this month - don't miss out!

 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (5,241)