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

Community site session details

Session Id : 8TRkq1nbP3287LKZRperXq
Power Automate - Building Flows
Unanswered

Populate Word Template and Create New File

Like (0) ShareShare
ReportReport
Posted on 18 Mar 2022 09:34:16 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)

I have the same question (0)
  • dsafsdfasd Profile Picture
    4 on 22 Mar 2022 at 07:51:52
    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 21 Mar 2022 at 12:55:57
    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 21 Mar 2022 at 07:29:30
    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 18 Mar 2022 at 11:18:10
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 783 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 515 Moderator

#3
trice602 Profile Picture

trice602 299 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading started
Loading complete