Skip to main content

Notifications

Power Automate - Building Flows
Answered

Power Automate a Word Template to PDF

Posted on by

Inkedpowerautomate_PDF connector_LI.jpgInkedCapture_LI.jpg

I cannot get my flow to run properly.

 

I am trying to create an item in list-->populate a MS Word Template-->create file in SharePoint-->convert Word Document to PDF--> save to SharePoint.

 

My flow works until the PDF step. I am trying to use dynamic content in the word template, and save that word template as a PDF. (Error: Action 'Convert_Word_Document_to_PDF' failed Error Details: The selected file doesn't exist, please select a valid file and drive.)

 

I have attached a photo to my flow. Please help, i have tried every option for the file path. 

 

  • DC-14111813-0 Profile Picture
    DC-14111813-0 5 on at
    Power Automate a Word Template to PDF
    Thank you @AnthonyAmador!  I spent hours on chatGPT trying to resolve this before coming across your post.  I am eternally grateful.
  • Re: Power Automate a Word Template to PDF

    Yay this worked!

  • Verified answer
    AnthonyAmador Profile Picture
    AnthonyAmador 2,521 on at
    Re: Power Automate a Word Template to PDF

    Hi @Anonymous 

     

    I think the action should look like this. 

    AnthonyAmador_0-1636123813524.png

    In the file input, add the name of the file not the path. 

    Let me know if that works. 

     

    Kind regards. 

     

  • Re: Power Automate a Word Template to PDF

    @OliverR-82 Thanks so much! I am trying to stay in SharePoint if possible. I have been working on this flow for days and cannot figure out this error. Any help you can provide is appreciated. 

  • OliverR-82 Profile Picture
    OliverR-82 615 on at
    Re: Power Automate a Word Template to PDF

    Hi @Paulie78 ,

    That is not true, the fill in word template and convert word to pdf actions work with files in both OneDrive and SharePoint.

     

    I've used those actions in a flow some time ago and I remember getting the same error. The solution was really simple. I'll look up my flow later and come back to this topic if someone else hasn't already offered the solution by then.

  • Paulie78 Profile Picture
    Paulie78 8,413 on at
    Re: Power Automate a Word Template to PDF

    Your word document needs to be in OneDrive, not SharePoint.

  • Re: Power Automate a Word Template to PDF

    @AnthonyAmador I am still getting an error "The selected file doesn't exist, please select a valid file and drive" after adding the delay. I have attached another image of my flow. I appreciate your help 🙂 capture115.PNG

  • AnthonyAmador Profile Picture
    AnthonyAmador 2,521 on at
    Re: Power Automate a Word Template to PDF

    Hi @Anonymous 

     

    Try adding a delay between the "Create File" action and the "Convert Word Document to PDF".

     

    Let me know if that helps. 

     

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,487

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,014

Leaderboard