# Error when try to open .docx document

**URL:** <https://forum.collaboraonline.com/t/error-when-try-to-open-docx-document/1904>\
**Category:** Development\
**Created:** [June 21, 2023, 8:25am UTC](https://forum.collaboraonline.com/t/error-when-try-to-open-docx-document/1904 "2023-06-21T08:25:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![abk](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/abk/32/781_2.png) [@abk](https://forum.collaboraonline.com/u/abk)\
**Post date:** [June 21, 2023, 8:25am UTC](https://forum.collaboraonline.com/t/error-when-try-to-open-docx-document/1904/1 "2023-06-21T08:25:03Z")

</div>

i got error like this,  
“failed to open document. Please ensure file type is supported and not corrupted and try again”  
when try to open file doc… any idea for this?

this is my code to open the file

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/collaboraonline/original/1X/0b12c77ac3945345200152d15a86d20dcd339e1d.png)

but when i try to open file .xml it works. any idea?
