Ask Your Question

got error loading docx [closed]

asked 2016-08-05 08:41:07 +0200

sammazza gravatar image

updated 2020-09-10 10:53:32 +0200

Alex Kemp gravatar image

File format error found at when trying to open the file SAXParseException: '[word/document.xml line 2]: Attribute w:hAnsiTheme redefined ', Stream 'word/document.xml', Line 2, Column 86307(row,col).

noting in the backup folder. Windows 10/ libreoffice x64

how can I fix/recover the file?


edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by Alex Kemp
close date 2020-09-10 10:54:14.953255


You can convert your corrupted doc or docx in pdf first from given link and then change it to pdf to doc. Try It. May be possible to get 90% data back.

ayush.kumar gravatar imageayush.kumar ( 2018-07-13 14:40:08 +0200 )edit

2 Answers

Sort by » oldest newest most voted

answered 2016-08-05 09:21:41 +0200

floris v gravatar image

Make a copy of the file, change the extension to 'zip', extract the 'word/document.xml' from the archive, open it in a real plain text editor, or a real XML editor (one that doesn't refuse to open a file with errors), remove the error, save, enter it in the archive and it should work.

edit flag offensive delete link more


original file was in LibreOffice. I pasted some comments from a MS word doc. but I am not sure that was the cause of the problem. maybe too many xml clauses switching between languages. Sadly I am back to using MS Word.... thanks for the help.

sammazza gravatar imagesammazza ( 2016-08-06 22:14:18 +0200 )edit

answered 2016-08-06 09:10:01 +0200

sammazza gravatar image

Not easy to fix the error. there seem to be many. And the text seems truncated. probably a bug in LibreOffice. I should say the language of the doc is Hebrew with some english characters. is it possible that there is more text that is not visible in the document.xml file that I could retrieve?

edit flag offensive delete link more


How did you get the file in that state? Was it converted from LibreOffice, did you get it from somebody? It's on you to provide all the information that other people need so they can help you. The AOO community forum may be a better place to get help because there aren't any restrictions on posting there and it has many experienced users of Libre as well.

floris v gravatar imagefloris v ( 2016-08-06 11:51:07 +0200 )edit

Question Tools

1 follower


Asked: 2016-08-05 08:41:07 +0200

Seen: 453 times

Last updated: Aug 06 '16