file won't open

Hi have a document that I created from an original word/excel doc.
I’ve edited it a couple of times but now it won’t open.
I’m getting the following error.
I updated to the latest version however still no luck
File format error found at SAXParseException: '[word/document.xml line 2]: Attribute w:eastAsiaTheme redefined ', Stream ‘word/document.xml’, Line 2, Column 25652(row,col).

While I am not sure I can help with the specific error I would like to propose some potential paths forward. First a few questions:

  1. What is the file format you are trying to open? I am assuming it’s a DOCX file based on the XML formatting error you are receiving.
  2. I am unclear as to what the specific scenario was that produced this error. Did you take a document developed using Word and saved as a DOCX, open it with Writer, edit it, save it and are now getting this error when you open it with Writer?

A suggestions based on assumptions to questions 1 and 2, so…

  • If you have access to Word, try opening the document with Word and saving it as a DOC file. Then try opening it in Writer.

Hope this helps.

Open the DOCX document as a ZIP file. Extract file “document.xml” from “word” directory in the package. Open it with a plain text editor. Then use this regular expression (tested with Notepad++ on Windows):

(\<[^>]+)([\w]+:[\w]+="[^"]+")([^>]+)\2

and replace with this:

$1$2$3

(this drops duplicate attributes from XML elements). Use “Replace All”, then save the XML, and update in the ZIP package.

I suppose that we had fixed the bug that resulted in this problem some time ago. Which version of LO do you use?