Ask Your Question
0

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

asked 2018-05-04 09:31:39 +0200

jnita gravatar image

updated 2018-05-04 12:39:53 +0200

David gravatar image

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.

edit retag flag offensive close merge delete

Comments

David gravatar imageDavid ( 2018-05-04 12:41:30 +0200 )edit

2 Answers

Sort by » oldest newest most voted
1

answered 2018-05-04 09:55:42 +0200

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.

edit flag offensive delete link more

Comments

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

jnita gravatar imagejnita ( 2018-05-11 17:35:24 +0200 )edit
  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.
Mike Kaganski gravatar imageMike Kaganski ( 2018-05-11 18:14:10 +0200 )edit
0

answered 2018-05-04 09:32:25 +0200

jnita gravatar image

have NO idea!

edit flag offensive delete link more

Comments

1

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

Mike Kaganski gravatar imageMike Kaganski ( 2018-05-04 09:47:37 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-05-04 09:31:39 +0200

Seen: 112 times

Last updated: May 04 '18