Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Getting Error in .Docx file 'Sorry, this document can't be opened for editing.' after creating it form Ms Flow

(0) ShareShare
ReportReport
Posted on by 23

Hi, I have created .Docs file from Ms flow on OneDrive but at open time the file i am getting a error "Sorry, this document can't be opened for editing.

 

I am trying to solve the problem where I Have to generate a word docs file while someone save the account records. (Note: word docs should have grid data also)

for that I am creating a word document for account entity on save in notes(TimeLine) from workflow. which I have already setup with word file template also.

Now for saving the records i am trigging a Ms cloud flow at ADDED in entity Notes.

here are images.

2022-02-03 20_24_19-Photos.png and making condition to check file name after the saving it to OneDrive.

2022-02-03 20_24_57-Edit your flow _ Power Automate - Brave.png

flow is working good. creating file 🙂 

2022-02-03 20_27_14-Settings.png

But the problem is file not opening and giving this error

2022-02-03 20_27_44-Settings.png

Could anyone Please! tells me What wrong is happening?

Note : putting .doc extension & base64ToBinary(). I have already test these are not working.

  and also not working on MS Word Desktop Application 

 

  • poweruser261 Profile Picture
    2 on at
    Re: Getting Error in .Docx file 'Sorry, this document can't be opened for editing.' after creating it form Ms Flow

    I am seeing exactly the same issue, 'Sorry this document can't be opened'. I have tried the suggestion of using Base64ToBinary() but no luck. Any inputs?

  • KRYPTON Profile Picture
    23 on at
    Re: Getting Error in .Docx file 'Sorry, this document can't be opened for editing.' after creating it form Ms Flow

    Thank you @kbeanblossom for your efforts but in my case this is not working.

     

  • kdbeanblossom Profile Picture
    13 on at
    Re: Getting Error in .Docx file 'Sorry, this document can't be opened for editing.' after creating it form Ms Flow

    I was trying to do pretty much the exact same thing has you! Here's what I did:

     

    On the Create File step in the File Content, you need to use base64ToBinary() on the dynamic content.

     

    This is what mine looked like: 

    base64ToBinary(triggerOutputs()?['body/documentbody'])
    Once I did that, everything was gravy!
     
    I know you said you've tried it, but make sure you are using the correct field names in the base64ToBinary(). Peek at the code on the Create File step to see what it should be.
     
    Hope this helps!

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow