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 / Update Sharepoint Word...
Power Automate
Answered

Update Sharepoint Word document content Error "sorry, this document can not be opened for testing"

(0) ShareShare
ReportReport
Posted on by 30
I have created a new empty word document inside SharePoint, then i tried to update its content with an HTML table:-
 
 
 
 
but when i tried to open the file i got this error:-
 
Categories:
I have the same question (0)
  • Verified answer
    MParikh Profile Picture
    508 Super User 2026 Season 1 on at
    You're trying to update a SharePoint Word document through Power Automate but hitting the "document can't be opened for editing" error.
    This happens when you insert HTML content into a Word document. SharePoint needs to convert the HTML to proper Word format, which requires opening the document. The action you're using doesn't support this conversion.
     
    Here's what you need to do:
    Stop using the "Update file content" action for Word documents with HTML. This action works for plain text files, not Word.
     
    Switch to one of these approaches:
    Use Word Online connector actions instead. Look for "Word Online (Business)" connector. Use actions like "Add content to document" or "Replace table in document." These handle the conversion properly.
    Create the document from a template. Build your HTML table structure once in a template document. Then use variables to populate the data through the Word Online connector actions.
     
    Convert HTML to Word format before upload. Process the HTML outside SharePoint first, then upload the completed .docx file.
     
    The root cause: SharePoint's file update action treats Word documents as binary files. You're essentially corrupting the document by jamming raw HTML into a .docx file structure. Word Online connector actions understand the Word document format and insert content correctly.
     
    Check the Word Online (Business) connector in Power Automate. Start with "Create document from template" or "Add rows to table" actions.
     
    These work with actual Word document structure, not raw file content.
    Your HTML table will need to exist in the template first, then you populate the rows programmatically.
     
     
  • Suggested answer
    chiaraalina Profile Picture
    2,023 Super User 2026 Season 1 on at
    Hi
     
    Use a connector like Encodian (Thirdparty)  to convert your HTML to a Word file before saving it.
    Because updating a Word document directly won't work. 
    If you still try to update it directly, the only value that works must be real Word (binary/base64) content, not text or HTML.
     

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 840

#2
Valantis Profile Picture

Valantis 661

#3
Haque Profile Picture

Haque 589

Last 30 days Overall leaderboard