[SOLVED] File format error found at SAXParseException:

Help with installation and general system troubleshooting questions concerning the office suite LibreOffice.

[SOLVED] File format error found at SAXParseException:

Postby jennifersita » Sun Sep 15, 2019 10:19 am

Hi All,

I am beside myself. I am working on my dissertation and spent 12 hours on a section. I closed the file...and now that I've tried to open it, it shows this: File format error found at SAXParseException: '[word/document.xml line 2]: Attribute w:eastAsia redefined', Stream 'word/document.xml', Line 2, Column 76172(row,col). Can someone PLEASE help me to recover this. I feel nauseous having lost this document. I did search this forum (and online). I've tried to recover it from a backup, but no backup exists (despite this being revision #35 or something). I tried to open it in Word (on another computer) and couldn't. I tried to convert it to a PDF, but there are about 5 pages of work missing. I'm going to admit that I probably f*cked myself over by telling LibreOffice to open the file after it identified an error. Is there any way to recover all my missing work?

Thanks.

Jennifer
Last edited by robleyd on Mon Sep 16, 2019 11:46 am, edited 2 times in total.
Reason: Add green tick
Open Office 6.2.7.1 on Windows 10
jennifersita
 
Posts: 3
Joined: Sun Sep 15, 2019 10:06 am

Re: File format error found at SAXParseException:

Postby RoryOF » Sun Sep 15, 2019 10:26 am

Please PM me an email address to which I can send the repaired file.

 Edit: I'll be offline now for several hours. 
Apache OpenOffice 4.1.7 on Xubuntu 20.04.1 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 31543
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: File format error found at SAXParseException:

Postby jennifersita » Sun Sep 15, 2019 10:50 am

PMed you, Rory.
Open Office 6.2.7.1 on Windows 10
jennifersita
 
Posts: 3
Joined: Sun Sep 15, 2019 10:06 am

Re: File format error found at SAXParseException:

Postby robleyd » Sun Sep 15, 2019 11:24 am

For future reference, don't save in .docx format unless you absolutely need to, and set up a backup strategy for important - read any - documents on your computer. The Time stamped backup extension is handy for saving multiple time stamps backups of your documents.
Cheers
David
Apache OpenOffice 420m2(Build:9821) - Slackware 14.2 - 64 bit
LibreOffice 6.0.7.3 - Slackware 14.2 - 64 bit
Apache OpenOffice 4.1.4 - Windows 7 Virtual machine
User avatar
robleyd
Moderator
 
Posts: 3513
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: File format error found at SAXParseException:

Postby Villeroy » Sun Sep 15, 2019 11:24 am

Never work with foreign file formats. Edit Word documents with MS Word, ODF documents with LibreOffice or OpenOffice, Photoshop pictures with Photoshop etc.

You may try to convert your work to some other file format at any stage with varying results (such conversions will never be perfect) but when you continue editing the document, always edit the original file in the native file format of the application you are using. When you receive such files from somebody else for co-editing, the first thing you should do is saving your own copy in the native file format of the application you are using.

Writing long (and important) docx with any application other than MS Word is careless, particular when you don't have a decent backup strategy.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04, no OpenOffice, LibreOffice 6.4
User avatar
Villeroy
Volunteer
 
Posts: 28664
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: File format error found at SAXParseException:

Postby RoryOF » Sun Sep 15, 2019 1:41 pm

Repaired file sent. It looks to me as if it starts in media res; there are about 8 pages and 2800ish words.

I have carefully inspected the innards of the submitted file and am confident that _all_ text contained in it is in the repaired file, so if there is missing text, it is not available for extraction from the submitted damaged file.

If one has a failed file, which Villeroy's suggestions above will help avoid, it is essential _not_ to Save over that file; the earliest instance of a failed file is the best one to send for fixing.
Apache OpenOffice 4.1.7 on Xubuntu 20.04.1 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 31543
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: File format error found at SAXParseException:

Postby jennifersita » Sun Sep 15, 2019 6:26 pm

Rory, you are a lifesaver. Thank you so much. I think you did recover everything! :-)

Villeroy, agreed...I need to have a better backup strategy. I was just about to email the file to myself (my usual half-assed backup strategy) so I could save a copy on another computer (that does have Word on it)...and that's when I discovered the error.
Open Office 6.2.7.1 on Windows 10
jennifersita
 
Posts: 3
Joined: Sun Sep 15, 2019 10:06 am

Re: File format error found at SAXParseException:

Postby RoryOF » Sun Sep 15, 2019 6:27 pm

The timestamped backup to which robleyd points can be a lifesaver.
Apache OpenOffice 4.1.7 on Xubuntu 20.04.1 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 31543
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: File format error found at SAXParseException:

Postby John_Ha » Mon Sep 16, 2019 11:38 am

jennifersita wrote:I was just about to email the file to myself ... so I could save a copy on another computer (that does have Word on it)

It is best never to edit a file with different programs - see [Tutorial] Differences between Writer and MS Word files for the reasons and for why you should always work in and save files as .odt.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 7831
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: [SOLVED] File format error found at SAXParseException:

Postby Villeroy » Mon Sep 16, 2019 12:05 pm

If the other computer has Word on it, you can install LibreOffice in addition at no cost and without risk. When the installer prompts you about handing MS Office files, you can uncheck all document types related to Word, Excel etc since you already have the right program for these file types. By default (by double-click) MSO files will be opened with MSO and ODF files (odt, ods, odp etc) will be opened with your ODF suite. Nevertheless, you are free to open any office document with any office suite via right-click>OpenWith or via menu:File>Open in your respective application.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04, no OpenOffice, LibreOffice 6.4
User avatar
Villeroy
Volunteer
 
Posts: 28664
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany


Return to LibreOffice

Who is online

Users browsing this forum: No registered users and 2 guests