Hi,
I have a flow triggered by PowerApps, which, based on several conditions, takes the attachments from two sharepoint lists and send an email with these attachments combined (attachments are appended to array). Sometimes the flow fails - the error occurs in the part when the email needs to be sent. I get error: BadGateway

"error": {
"code": 502,
"source": "flow-apim-europe-001-westeurope-01.azure-apim.net",
"clientRequestId": "54d0c117-b7d2-4b17-98c8-a0b3c5411122",
"message": "BadGateway",
"innerError": {
"status": 502,
"message": "Request failed. Try again later.\r\nclientRequestId: 54d0c117-b7d2-4b17-98c8-a0b3c5411122",
"source": "office365-we.azconn-we-01.p.azurewebsites.net"
I know that the error is "temporary or transient", but anyways the flow cannot be simply re-submitted, therefore I would like to have a solution how to avoid it (kind of crucial process fails due to this error). I found somewhere that it could be due to attachments size? One attachment is maximum 10MB, but it could be several of them in this case. Would it help to add second step to send an email and set it to run if previous send email step failed?