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.