Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 6/YyLX3e/3aEQIUrDYbKc9
Power Automate - Building Flows
Answered

Converting Word Document to PDF actions fails to find the file

Like (0) ShareShare
ReportReport
Posted on 24 Feb 2021 13:39:12 by

Hi all, 

 

I am trying to build a flow that converts a Word document to PDF and I am using SharePoint to store created files. Flow, I've created, populates the word template and creates a file in the SharePoint library. However, when the action Convert Word Document to PDF is activated I get the following error:

 

The selected file doesn't exist, please select a valid file and drive.
clientRequestId: ##############

 

My flow:

mantastg08876_0-1614173635155.png mantastg08876_1-1614173783644.png

 

 I am not sure why does the error say that the selected file does not exist if it was successfully created in the previous step. 

Perhaps someone could advise what to do?

  • Community Power Platform Member Profile Picture
    on 24 Feb 2021 at 19:49:18
    Re: Converting Word Document to PDF actions fails to find the file

    thanks a heap! Amazing. Followed you on all social media 😄

    https://www.youtube.com/channel/UC3Hscto0sm7Oh3u08o0RDzg/videos

    https://twitter.com/mydevexperience

    https://mydevexperience.wordpress.com/

  • Verified answer
    abm abm Profile Picture
    32,464 Most Valuable Professional on 24 Feb 2021 at 19:01:34
    Re: Converting Word Document to PDF actions fails to find the file

    Hi @Anonymous 

     

    So what you need to do is under the File property click the path and manually select the file name. Then select the dynamic name which is the Display name from SharePoint. Remove the filename which was selected earlier.

     

    image.png

  • Community Power Platform Member Profile Picture
    on 24 Feb 2021 at 18:29:24
    Re: Converting Word Document to PDF actions fails to find the file

    @abm , yes the word document is created as expected and it is saved in the sharepoint library. 

     

    Tried using the path action, but get the error: The provided workflow action input is not valid.

    mantastg08876_0-1614191294114.png

     

  • abm abm Profile Picture
    32,464 Most Valuable Professional on 24 Feb 2021 at 18:03:44
    Re: Converting Word Document to PDF actions fails to find the file

    Hi @Anonymous 

     

    Can you see the file in SharePoint? Try getting the SharePoint file content using path (Action Step) and pass on to Word PDF connector and see whether it works or not?

     

     

    Thanks

  • Community Power Platform Member Profile Picture
    on 24 Feb 2021 at 16:56:41
    Re: Converting Word Document to PDF actions fails to find the file

    @abm, I have tested it with 1,3, 5min delays. Still get an error The selected file doesn't exist, please select a valid file and drive. If the file size is >3MB perhaps the delay should be longer? How big is your file?

     

     

  • Community Power Platform Member Profile Picture
    on 24 Feb 2021 at 16:38:04
    Re: Converting Word Document to PDF actions fails to find the file

    @abm , thanks. Interesting.. Will try to add a delay. The generated word document is 3.57MB

  • abm abm Profile Picture
    32,464 Most Valuable Professional on 24 Feb 2021 at 16:28:29
    Re: Converting Word Document to PDF actions fails to find the file

    Hi @Anonymous 

     

    I tried this and worked for me.

     

    image.png

     

    How big is this file? Could you please add a delay action step and see whether it works.

     

    Thanks

  • Community Power Platform Member Profile Picture
    on 24 Feb 2021 at 15:07:42
    Re: Converting Word Document to PDF actions fails to find the file

    hi @abm , 

     

    many thanks for the reply. I have tried the method suggested in your link, but still, get the error message about accessing the file. 


    I have tried checking the path by copy-pasting the location's link and file's link in the browser. The result is that the file downloaded to my pc.  Perhaps I should create files in the One Drive because SharePoint has some limitations?

    mantastg08876_0-1614179084704.png

     

     

  • abm abm Profile Picture
    32,464 Most Valuable Professional on 24 Feb 2021 at 14:30:11
    Re: Converting Word Document to PDF actions fails to find the file

    Hi @Anonymous 

     

    Check path property Convert word document to PDF action is correct or not?

     

    Please see below

     

    Solved: Convert Sharepoint Word Document to PDF - Power Platform Community (microsoft.com)

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,700 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard