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)
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....
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.
I've made three screenshots. Word, Word Online, Notepad++. There is no named error - only a message that file is corrupted.
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.
Michael E. Gernaey
497
Super User 2025 Season 1
David_MA
436
Super User 2025 Season 1
Riyaz_riz11
244
Super User 2025 Season 1