Skip to main content

Notifications

Power Automate - General Discussion
Unanswered

Power Automate trying to convert from HTML to PDF

(0) ShareShare
ReportReport
Posted on by 1

I am trying to convert HTML files to PDF using Power Automate. I want an automated flow to trigger when a HTML file is created in a folder on Sharepoint and then convert that file to PDF and save in another folder in Sharepoint. My flow is as below:

 

Hurricane35_0-1687340037078.png

When I test the flow it always fails at the convert file step with the below error, any ideas what is causing the issue?

 

Hurricane35_1-1687340322733.png

 

  

Hurricane35_2-1687340363050.png

 

  • OneSleepyPanda Profile Picture
    OneSleepyPanda 17 on at
    Re: Power Automate trying to convert from HTML to PDF

    Hey @Hurricane35 

     

    The OneDrive for Business connector is going to look for that document id in the OneDrive for the account selected under "My Connections" when you select the ellipsis on the action. Since the file is in sharepoint, the connector can't see it.  However, you can use the SharePoint copy file action to copy the file to a location in the OneDrive for the account you're using since OneDrive is just SharePoint Under the hood.

     

    When you configure the Copy File action, in the destination field, enter the url for the onedrive you want to use. Then use the "Convert file using path" action instead of "Convert File" and use the Name parameter from the copy file action. 

    OneSleepyPanda_0-1687357207500.png

     

    The rest of your flow should work as configured. 

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,508

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,839

Leaderboard