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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Getting Error in .Docx...
Power Automate
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 

 

Categories:
I have the same question (0)
  • kdbeanblossom Profile Picture
    13 on at

    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!
  • KRYPTON Profile Picture
    23 on at

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

     

  • poweruser261 Profile Picture
    2 on at

    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?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 664

#2
Haque Profile Picture

Haque 460

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard