Hello Everyone,
I had built a flow 2 months ago that would convert word files on a sharepoint document repository into PDF. Eventually it evolved to converting excel files so a switch case was built to accomodate. This was all working fine for a while until yesterday 10/28.
The flow was able to save the file to onedrive but failed on the conversion to PDF with a bad gateway 502 error. In the body it stated:
not seen that before as you describe but a good one to keep in mind.
currently the onedrive pdf conversion is not premium connector i am sure it will change in the future though.
Hi @JasonK,
I have tested on my side using the Chrome, it runs successful, not happened the issue you met:
Convert file into PDF feature not need premium license. The error message is "The underlying connection was closed" , so the issue may be caused by the fact that connection of OneDrive was invalid, to let it go ahead, you need to create a new connection. But sometimes, the invalid connection will store in the browser, so you may need to clear them, and try again. Or save as a copy Flow, export it and import it back, etc. Hope it helps.
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for the reply,
Thats the thing, this flow had worked fine for 2 + months and then all of a sudden stopped working. Are there any changelogs on specific functions? Only thing i can think of if something changed with the pdf converter (in terms of code or functionality) that would cause it to stop functioning with old code and require a recreation. Either way this causes a negative impact to users needing to be aware of backend functionality changes.
Hi @JasonK,
At present, it seems that connection is more likely to expire. You can try to recreate a new connection just like I told, if it work, it will be caused by the connection expire.
Or you can recreate the action, if it can resolve your issue, it may be caused by the your deduction.
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I'm having a similar issue where the Convert File step results in a Bad Gateway error, but it happens very inconsistently. For example, I have a Flow the converts a variable set of files to pdf every morning. This morning it failed converting 3 of 16 files. Yesterday it failed converting 2 of 8 files. When I rerun the Flow it either fails on different files or it successfully converts all of them. There seems to be no rhyme or reason as to when it fails.
I would really like to know of a way make this conversion process more stable short of using a 3rd party connector.
From what I can tell this issue is recurring and sporadic because its network issues on microsoft's end. I have a feeling some CDNs where stuff is stored is having connectivity issue thus the bad gateway errors.
My only suggestion is keep opening tickets to MS for this and keep an eye on the admin center health status. There may be some correlations to their network outages and bad gateway msgs that are occurring (Onedrive, Powerautomate, Sharepoint, etc.).
One other possible suggestion is take a look at the trigger properties. There is a retry policy setting there:
My response got flagged as spam for some odd reason.
Basically i think the issue is network connection related on microsoft side.
One thing i would suggest trying is tweaking the retry policy on the trigger policy.
And i have cursed myself as BAD GATEWAY on pdf conversion has started popping up again on all pdf conversions since 1/14/20. Opening another ticket with microsoft as no changes were made to the flow.
I'm running into the Bad Gateway errors again this morning as well. I'm in the midwest. This is getting annoying.
Are you in GCC tenant btw? The pattern seems to be network related issue on microsoft's end. Thats my guess
I am not in a government tenant. I'm in a regular enterprise tenant.
Support was no help. They had me run through the hoops of rebuilding, reconnecting, exporting, importing. Again i told the tech this seems to be at a server or network level on the cloud. They had me do this on IE too. Again what does my browser have to do with a flow working for months then all of a sudden failing when no changes are made on my end?
I will update this post accordingly
@rjhale can you paste your error you are getting? Here is mine. I redacted some ID information but curious to know if the error you are receiving on your 502 is same as mine. Appears some kind of service failure on o365 side
@JasonK Here is what I was seeing earlier in the day. Like the problems I was seeing last week, it errored a couple of times and then ran successfully.
@rjhale Thankyou. Exactly the same arena as the error i have.
Can we get someone from microsoft to explain why the service keeps failing intermittently? Phone support keeps troubleshooting the front end (my pc, my browser, my network) when the issue is on the back end with the service that converts the file on the microsoft end.
The overall approach from microsoft on these issues needs to be overhauled for Powerautomate to be successful product. Simply having clients wait for the issue to fix itself is completely ridiculous. (oh the problem fixed itself? lets just close the ticket). There is no root cause or prevention for further occurrences. If there is an outage for a connector then state so, clients will lose patience and not bother with this product. My 2 cents *soapbox
The issue overnight resolved itself. It appears for this instance the converting service was failing.
I am not sure if something was done to fix it, or it just "went away". Either way microsoft needs a better way to monitor these outages before pointing to the customer's flow as the issue.
Same here. My Flow converted 10 files this morning without issue, and I haven't changed a single thing.
I couldn't agree more about the need for better monitoring. Having a Flow that fails 10% of the time kind of defeats the purpose of automating the process in the first place.
And it just started failing again. I guess I will need to see what Microsoft says.
After retrying the flow 4 times it processed. Has anyone tweaked the retry Policy under the settings of the converter?
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
72 | |
27 | |
22 | |
15 | |
14 |
User | Count |
---|---|
141 | |
43 | |
42 | |
34 | |
30 |