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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Fill Word Document Tem...
Power Automate
Unanswered

Fill Word Document Template, Convert To PDF And Send Via E-mail

(1) ShareShare
ReportReport
Posted on by 86

Hello All,

 

I'm having trouble with a flow and was not able to find a solution online.

Summary of what I have:

  1. Power Apps forms which triggers a flow when a new item is created in an SP list.
  2. Power automate flow runs and fills a word document template which I have stored somewhere in a SP site.
  3. Power automate then creates a new file with the populated information and dumps it into another folder in SP
  4. Using the convert doc to pdf connector I try and convert the new doc to pdf
  5. Flow should end by sending an e-mail to the original form submitter with the filled document converted into pdf.  

I am currently getting stuck on step 4 (in green the steps that work and in red the ones that fail), I get the error message "There was an error accessing the file. Please try again or select a different file."

The file is not open and even with a 2-minute delay between file creation and conversion the flow still fails.

Below is how the flow is setup

fabiofa_0-1683655327254.png

 

And a screenshot of where it fails

fabiofa_1-1683655421506.png

 

fabiofa_2-1683655578952.png

 

Any help is much appreciated

 

Categories:
I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @fabiofa 

     

    Try to see if it works with below parameter 🙂

    Nived_Nambiar_0-1683656798451.png

     

     

  • fabiofa Profile Picture
    86 on at

    Hey Nived, I tried with Id but I'm getting the following error "The selected file doesn't exist, please select a valid file and drive."

    fabiofa_0-1683661064854.png

     

    Will attempt again with a delay and see if that helps

     

    Attempted with a 3-minute delay but was unsuccessful

    fabiofa_1-1683661367967.png

     

     

    fabiofa_3-1683661420274.png

     

     

     

  • Verified answer
    Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @fabiofa 

     

    Could you store the files in onedrive and once bot creates it , move to sharepoint ?

     

    something like below

    Nived_Nambiar_0-1683684959929.png

     

     

    This would work 🙂

  • fabiofa Profile Picture
    86 on at

    This works, a little extra work to move back to SP but  I guess beggars can't be choosers

  • Verified answer
    AlexEncodian Profile Picture
    4,409 Moderator on at

    @fabiofa 

    I believe you can avoid the OneDrive step if you put a "Get File Properties" action before the convert step and then use the Folder Path dynamic value in the *File field of the convert function.

    The *File field takes the folder path relative to the site and full file name with extension, not an ID.

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 425 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard