[Solved] Error in .docx file. Attribute w:hAnsi redefined

Help with installation and general system troubleshooting questions concerning the office suite LibreOffice.
Post Reply
DrimuS
Posts: 3
Joined: Thu Nov 18, 2021 8:57 pm

[Solved] Error in .docx file. Attribute w:hAnsi redefined

Post by DrimuS »

Hi.
When trying to open the attached file I get "SAXException: [word/comments.xml line 2]: Attribute w:hAnsi redefined". Some pages from the document are missing, but most importanly many comments aren't showing. I tried fixing the file by looking for duplicate attributes in the comments.xml file but I'm clearly not knowledgeable enough because I couldn't find the problem. Opening in OpenOffice didn't help either.
If someone is able to help me recover the file I'd be extremely thankful.
Attachments
failed doc.docx
(71.81 KiB) Downloaded 340 times
Last edited by Hagar Delest on Thu Nov 18, 2021 9:58 pm, edited 1 time in total.
Reason: Tagged [Solved].
OpenOffice 4.1.11 on Windows 10
User avatar
RoryOF
Moderator
Posts: 34619
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: ERROR in .docx file. Attribute w:hAnsi redefined. Datalo

Post by RoryOF »

It opened immediately for me; it is 22 pages long and ends with footnote 52.

Try the attached copy.
Attachments
failed doc.odt
(63.6 KiB) Downloaded 358 times
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
DrimuS
Posts: 3
Joined: Thu Nov 18, 2021 8:57 pm

Re: ERROR in .docx file. Attribute w:hAnsi redefined. Datalo

Post by DrimuS »

Weird, it wouldn't open for me.
Your file is missing a few comments but it's not too bad, way better than losing everything. Thanks a lot, have a great day.
OpenOffice 4.1.11 on Windows 10
User avatar
RoryOF
Moderator
Posts: 34619
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: ERROR in .docx file. Attribute w:hAnsi redefined. Datalo

Post by RoryOF »

You could try opening the damaged file with AbiWord - you might get a better result.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
DrimuS
Posts: 3
Joined: Thu Nov 18, 2021 8:57 pm

Re: ERROR in .docx file. Attribute w:hAnsi redefined. Datalo

Post by DrimuS »

Nice, when opening with AbiWord I still didn't get the missing comments but at least it showed WHERE the comments were. So I only have to fill in those empty spaces, which makes things way easier. Thanks so much.
OpenOffice 4.1.11 on Windows 10
Post Reply