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 / One Drive Convert File...
Power Automate
Unanswered

One Drive Convert File from html to pdf "Bad Gateway"

(0) ShareShare
ReportReport
Posted on by

Hi All, 

 

I have created a flow which gets content from a PowerApp, creates a html file, converts the html file to pdf and then sends an email via outlook. However, the flow will create a html document in one drive but not convert it to pdf, as it gets the result "Bad Gateway" after a long period of time on the conversion action. Some of the resolutions I have tried. 

- Reconnect One drive connection

- Create the flow on another users account 

- Remove the powerApps trigger for a manual input trigger with a one line html incase it was the size of the file

- Use a word document with fields and word conversion to PDF action 

- Use convert using pathway

 

None of the above has worked, any ideas? 

Categories:
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @JJC223 ,

     

    Please check:

    • Whether there is any issues in the HTML code
    • Whether the size of the file is too large

    I think this link will help you a lot:

    Solved: Bad GateWay Error on Convert file using path - Power Platform Community (microsoft.com)

     

    In addiction, you could also consider trying out more professional third-party services

    Three ways to convert HTML to PDF using Microsoft Flow – CleverWorkarounds

     

    Best Regards,

    Bof

     

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 317 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 247

#3
Henil Profile Picture

Henil 117

Last 30 days Overall leaderboard