Skip to main content
Community site session details

Community site session details

Session Id : 84ja6BDeUds8A4bii0udg9
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

Like (0) ShareShare
ReportReport
Posted on 3 Feb 2022 15:23:38 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 21 Sep 2023 at 11:47:58
    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 04 Feb 2022 at 05:51:25
    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 03 Feb 2022 at 21:46:15
    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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Featured topics

Restore a deleted flow
Loading complete