web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / OneDrive For Business ...
Power Automate
Unanswered

OneDrive For Business (OD4B) Convert HTML to PDF Fail

(1) ShareShare
ReportReport
Posted on by 77

Greetings all,

 

I'm having issues lately with my HTML to PDF conversion process.  I've followed the Chino Does Stuff  method:

2020-03-26_14-19-15.png

The flow run fails during the 6th step of the above, "Convert file using path" in OD4B:  

Error: Action 'Convert_file_using_path' failed
Error Details:  Bad Gateway
Status Code:  502
Body:

{

  "error": {

    "code": 502,

    "source": "canada-001.azure-apim.net",

    "clientRequestId": "64e3de4e-7ec3-4873-af96-5ba8d3e9d874",

    "message": "BadGateway",

    "innerError": {

      "status": 502,

      "message": "Service Unavailable - ....
      "source": "api.connectorp.svc.ms"
    }
  }
}
 
 
There doesn't seem to be a rhyme or reason for when/how it fails; some days for some users, there's no issues - other days, it's constantly failing, or the conversion during the 6th step resulting in ~60 second duration times.  This issue has only being happening for the past couple of weeks, never encountered an issue before the first week of March.
 
I've read through a few threads trying to find ways to remedy this.  I've tried disconnecting from OD4B entirely, rebuilt the flow, then reconnected.  No luck.
 
I've also read the structure of the HTML may be to blame?   Should I post a sample of the HTML for further commenting?
 
Thanks very much!
 
 
Categories:
  • abm abm Profile Picture
    33,004 Most Valuable Professional on at

    Hi,

     

    Try adding a delay step for a minute or so after creating the file. There might be an invalid response when Convert file using path is trying to find the file. So delaying a minute or so might resolve this. I might be completely wrong here but worth a try.

     

    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 244

#3
Henil Profile Picture

Henil 102

Last 30 days Overall leaderboard