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 / Converting Word-Docume...
Power Automate
Answered

Converting Word-Document to PDF Action fails

(1) ShareShare
ReportReport
Posted on by 48

Hello everyone, 

in my project I am getting some data from Power Apps and then in Automate I am using the data to populate a MS Word template and then generating a .PDF from it.
Here's an overview of the main part of the flow:

Screen_1.PNG

Now I got the problem that the Action "Word-Dokument in PDF konvertieren" (Poplulate MS Word Template) SOMETIMES gives the error message: "Failed to access file". The weird thing ist that this only happens every now and then, even when I make the exact same Inputs in Power Apps.
Does anyone have an idea how to fix this? Is it possible to re-execute that specific "Word-Dokument in PDF konvertieren" when it fails? Or even re-execute the whole flow when that action fails ? As this is the main output of my project I can not allow that action to fail...

Thanks for your help!
Julian

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @servicesGB95 

     

    After create file step add a delay action step. This could be system still creating the file and not ready to convert to PDF.

     

    Thanks

  • servicesGB95 Profile Picture
    48 on at

    Hey,
    already tried that, but that doesn't seem to be the best solution, the error still occurs...
     
    Greetings
    Julian 

  • Verified answer
    servicesGB95 Profile Picture
    48 on at

    Update:

    after further research I found out that the 'Convert Word Document to PDF' (still) seems to be buggy with dynamic files which are located in SharePoint. Many people are complaining about such problems, but there doesn't seem to be a fix for it yet.

    I still found a workaround to fix the problem, my last 20 Flow exections were successful: 

    Loop.PNG

     

    At the beginning of my flow I initialized a boolean variable called ConvertSuccess = false. 
    In the main part of my flow I added the "Do until" action which checks the value of ConvertSuccess. Only if the Convert Word Cocument to PDF action succeeds, this variable will be set to true and the loop will be finished. 
    In the Run-History of my Flow I see that the runtimes now reach from 0:20 min to 6min, but they are successful, which is the most important to me. 
    Hope this also works for you, Microsoft definitly has to fix that buggy action (especially because it's premium and my company pays for it)

    Cheers
    Julian



  • rjhale Profile Picture
    212 on at

    @servicesGB95 This seems like a good approach to fixing the intermittent problems I've been getting with the Convert to PDF action, however; I'm running into a problem.  I've set my Flow up the same way, but I'm seeing the convert to pdf action fail occasionally, and it just stops the entire Flow rather than loop and try again.  Here is how I have things configured: 

    FlowDoUntilImage2.png

     

    And here is the results of one of my failures from last night:

    FlowDoUntilImage1.png 

    As you can see in the results, the Flow fails after the first attempt and never moves onto the Delay action.  Any idea what I may be doing wrong here?  

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard