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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / SPO: Docx to PDF flow ...
Power Automate
Unanswered

SPO: Docx to PDF flow runs but when opening pdf it says 'failed to open document'

(0) ShareShare
ReportReport
Posted on by 21

So created a flow when a docx file is saved to sharepoint with an atribute pdf enabled it creates a pdf in the same doc library the flow runs but it throws an error when opening. tried opening with different pdf viewers...

 

what am i missing? 

 

here is the flow:

 

ezJurgen_0-1597130028403.png

 

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,856 Most Valuable Professional on at
    Re: SPO: Docx to PDF flow runs but when opening pdf it says 'failed to open document'

    Hi @ezJurgen 

     

    You need to use convert PDF action step to convert the docx to pdf.

     

     

    image.png

     

    Here are the detailed steps

    https://natechamberlain.com/2017/10/03/convert-sharepoint-documents-to-pdf-automatically-using-microsoft-flow/

  • ez Jurgen Profile Picture
    21 on at
    Re: SPO: Docx to PDF flow runs but when opening pdf it says 'failed to open document'

    Hi @abm ,

     

    thanks for the swift answer. I will try it out. so we still need to use a Onedrive task and location for the conversion? grrr. not really sure what onedrive to use as the flow should work for everyone on sharepoint, and they do not have access to my onedrive of course

  • Verified answer
    v-alzhan-msft Profile Picture
    on at
    Re: SPO: Docx to PDF flow runs but when opening pdf it says 'failed to open document'

    Hi @ezJurgen ,

     

    You could refer to screenshot below to create the flow:

    1.png

     

    Best Regards,

    Alice

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • abm abm Profile Picture
    32,856 Most Valuable Professional on at
    Re: SPO: Docx to PDF flow runs but when opening pdf it says 'failed to open document'

    Hi @ezJurgen 

     

    Remember the file need to create first before it gets uploaded to Sharepoint or other data sources. So you need a onedrive business or local account needed.

     

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard