What is a " SAXParseException" error, and how do I retrieve my work?

I have encountered the following error:

 File format error found at 
SAXParseException: '[word/document.xml line 2]: Attribute w:themeTint redefined
', Stream 'word/document.xml', Line 2, Column 179818(row,col).        

What does this mean? And how do I retrieve my work? I’ve never had this happen before.

Please edit into your question all relevant information (OS, LibO version, etc.). Thanks.

This error means that the file has been saved with an error. But it sounds like the error in not fatal, and your data may be retrieved back without any loss.

First: what version of LO do you use? We had fixed some bugs like that already, so chances are that if you’d upgrade, you’d not have this kind of problem in the future (however, the file needs fixing anyway).

Newer versions also have ability to open such files even after the error; but this isn’t perfect, since such repair is very likely to loose part of data.

The proper way to fix this file is to open DOCX as ZIP, extract the word/document.xml from it, find the duplicating w:themeTint and remove the second instance in the same tag, and write the fixed XML back to ZIP; possibly several such tags would need to be corrected. If appropriate, you could also rely on others helping you - you could upload the corrupted file to an online share and post a link here - if it’s not some confidential data, of course.

If the problem is with a recent LO version, you’d possibly want to file a bug report - but it’s only useful if you can provide a test document (opening OK) and exact steps what to do with it to get the faulty result.

1-V 5.3
2-proper way to fix this file is to open DOCX as ZIP, extract the word/document.xml from it => not sure how to do that! What are the steps?
3- If appropriate,(…) you could upload the corrupted file to an online share and post a link here - if it’s not some confidential data, => is confidential & in any event want to understand how to solve, so can do again soonest next time it happens. Thanks

  1. make a copy of the file
  2. Rename the extension of the file to .zip
  3. Use an archive manager (like 7-zip) to open the .zip
  4. Find document.xml inside word subfolder inside the archive, and extract it
  5. Use a plain text editor to edit the xml file. Inside, find the duplicating tag w:themeTint (there will be tags with 2 or more of the attributes), and in such tags, remove all but first w:themeTint="…".
  6. Put edited file inside archive, rename back and try. Rinse and repeat.

have NO idea!

Interesting answer :slight_smile: - why would you write that? it’s expected that others (who know) would answer.

Hi @mikekaganski .I have a problem with a file and I want to recover it. I already tried to modify the documents.html but the error is not resolved. Could you please help me.

Blockquote

The error details are:
SAXException: [word/document.xml line 2]: Opening and ending tag mismatch: sdtContent line 2 and moveTo
./sax/source/fastparser/fastparser.cxx:619

Blockquote

I can, if you provide the document.