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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

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,138 Super User 2026 Season 1 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,138 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 569

#2
Valantis Profile Picture

Valantis 484

#3
Vish WR Profile Picture

Vish WR 460

Last 30 days Overall leaderboard