Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Error code 500, bad gateway - send an email (V2) - with attachments

This flow has been working flawlessly for over 4 months. It stated failing on Fridy, but only when the combined attachment sizes from the sharepoint list are over 2MB (or so). Smaller files still go through OK. Sending the same email manually (with the same large files) through outlook has no issue, so I doubt the problem is with the exchange sesrver. 


"error": {
"code": 500,
"source": "",
"clientRequestId": "d227cb03-44e8-4d88-9e5d-7c79c9e145b7",
"message": "BadGateway",
"innerError": {
"status": 500,
"message": "Unknown Error : {\r\n \"error\": {\r\n \"code\": \"BadRequest\",\r\n \"message\": \"Maximum request length exceeded.\",\r\n \"innerError\": {\r\n \"request-id\": \"d24ab112-038a-4e03-a6d7-bcafb2e60b83\",\r\n \"date\": \"2019-07-22T16:54:45\"\r\n }\r\n }\r\n}\r\nclientRequestId: d227cb03-44e8-4d88-9e5d-7c79c9e145b7\r\nserviceRequestId: d24ab112-038a-4e03-a6d7-bcafb2e60b83",
"source": ""

Correct. You click the "Show code button" and copy and paste the email.

A pain when you have as many flows as I did... 🙂

Glad that worked for you too.



Hi @Momerath , @FoDelement ,


Thanks for updating with more details.


The issue could be reproduced now. When the total file sizes are over 2 MB, the error message “Maximum request length exceeded” returned.


I will help report and back to you once I got any updates on this issue.


Best regards,



Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (89,842)