I have a PowerApps application that calls an instant flow. It worked fine in testing -- it works fine for weeks. Then all of a sudden I get an error:
InstantWorkflow.Run failed: {"error":{"code": 502, "source": "msmanaged-na.azure-apim.net", "clientRequestId": "[guid]", "message": "BadGateway", "innerError": {"error": {"code": "noResponse", "message": "The server did not receive a response from an upstream server. Request tracking id '[34 letters and numbers]'."}}}}
The solution to fix the problem has always been to go back in, copy the code from the event that's executing the run method of the instant flow, click "power automate" -> reselect the flow I'm trying to run, then paste my code overwriting what PowerApps put in there.
To me, this is an unacceptable solution since my end users see an error and I have to go in and do a fix.
Why does this happen? Is there a way to prevent it?