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 Automate - Building Flows
Answered

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

 

I have the same question (0)
  • abm abm Profile Picture
    32,598 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,598 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 659 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 386 Moderator

#3
chiaraalina Profile Picture

chiaraalina 290

Last 30 days Overall leaderboard