Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Populate Word Template and Create New File

(0) ShareShare
ReportReport
Posted on by 4

Hi everyone,

I have a simple flow that fills Word Template and then creates file from it. I've made few cells using develop tools and fill them with dynamic content taken from Sharepoint list. Issue is that, without any reason, with no key, randomly, created file is unreadable. Flow is executed without errors.

File is being created, so when I delete broken one, then re-run Flow I got a new file again - this one is being generated properly. Sometimes i need to run it few times, where one of it creates good file. It's so annoying, does someone knows where I should look for a solution?

 

I won't show you a Printscreen because my page language is in Polish. Flow looks like that.

Populate Word Template

                 |

Create File (with content from Populate Word)

  • dsafsdfasd Profile Picture
    4 on at
    Re: Populate Word Template and Create New File

    Hi again. I did make some delays between those steps. Nothing happend, still the same. 

    I wonder to make some re-run whole flow if error will be detected. Two steps later I'm changing this docx to pdf -this will fail if word is corrupted. Maybe i can use this fact?

     

    Whats the strangest - if file is corrupted I can Create File without delete it. I file is fine Create File will fail if file exist, hmmm....

  • shoog Profile Picture
    2,164 on at
    Re: Populate Word Template and Create New File

    The headers appears to be a normal Word file, but very short.

    For debugging: you could try to unpack the file and check the contents (rename the docx file to .zip and extract using Windows explorer).

    As an attempted fix you could try to insert a 10 second delay between the Word template action and the create file action.

  • dsafsdfasd Profile Picture
    4 on at
    Re: Populate Word Template and Create New File

    I've made three screenshots. Word, Word Online, Notepad++. There is no named error - only a message that file is corrupted.

     

    Zrzut ekranu 2022-03-21 082352.png

    Zrzut ekranu 2022-03-21 082501.png

    Zrzut ekranu 2022-03-21 082644.png

  • shoog Profile Picture
    2,164 on at
    Re: Populate Word Template and Create New File

    What exactly do you mean the file is unreadable? Can't you open using Word or can't you access the file completely?

    In case of the first option, it might be worth downloading the file and opening with an editor like Notepad++ or similar, to see if there is an error message inside the generated file.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1