[Solved] LibreOffice File format error found at SAXParse

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

[Solved] LibreOffice File format error found at SAXParse

Postby me-natalie » Wed Nov 16, 2016 11:28 am

Hi,

As everyone here I need some help. I was working on that file, then normally saved it. After few minutes, when I tried to open it - an error occured (File format error found at SAXParseException: '[word/document.xml line 2]: Attribute w:hAnsiTheme redefined
', Stream 'word/document.xml', Line 2, Column 49693(row,col).) But another problem is that my files size's more than 1 MB (maximum allowed size is 128 KiB). How can I 'give' it to You?

I would be very gratefull if You could help me too.

Natalie
Last edited by me-natalie on Wed Nov 16, 2016 5:42 pm, edited 1 time in total.
LibreOffice 5.2 on Windows 10
me-natalie
 
Posts: 5
Joined: Wed Nov 16, 2016 11:18 am
Location: Poland

Re: [Solved] File format error found at SAXParse

Postby RoryOF » Wed Nov 16, 2016 11:32 am

Upload it to a file sharing site and post the link here.

Are you working in .docx format?
Apache OpenOffice 4.1.9 on Xubuntu 20.04.1 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 32202
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: [Solved] File format error found at SAXParse

Postby me-natalie » Wed Nov 16, 2016 11:36 am

Right, I forgot about that simple way. Thanks for quick reply.

https://1drv.ms/w/s!AjOTKXz3moHDifZl9wXVm3oricWvfA

Edit: yes, it's in .docx. And also I found out, that that link may not work. Or rather - link works, but I'm not sure if you could download that file.
LibreOffice 5.2 on Windows 10
me-natalie
 
Posts: 5
Joined: Wed Nov 16, 2016 11:18 am
Location: Poland

Re: File format error found at SAXParse

Postby John_Ha » Wed Nov 16, 2016 12:51 pm

The file cannot be downloaded - it just give an error message that Word OnLine cannot open it.

Can you make the file downloadable? Or rename it to fred.xxx - that will prevent Word trying to open it.
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: 8219
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: File format error found at SAXParse

Postby me-natalie » Wed Nov 16, 2016 4:25 pm

Yes, I saw that, when I tried to test that link, but had no idea how to repair that. As you said I've changed file extension. Hope it works.

https://1drv.ms/u/s!AjOTKXz3moHDifZppC_Ax8b9X5ENsA

Thank You
LibreOffice 5.2 on Windows 10
me-natalie
 
Posts: 5
Joined: Wed Nov 16, 2016 11:18 am
Location: Poland

Re: File format error found at SAXParse

Postby John_Ha » Wed Nov 16, 2016 4:52 pm

Try this one Broken file jh.odt

 Edit: Edit to correct error 

It was quite peculiar. I noticed it is a .doc file, so .. It is a .docx file but I renamed it to .doc in error. When I attempted to open it Writer offered to repair it but I did not want to repair it until I had checked its size so I closed the pop-up window with the " X ". The window came back several times and I closed it each time with the " X ", then Writer suddenly opened the document! I saved it as a .odt file.

See [Tutorial] Differences between Writer and MS Word files for why you should always work in and save files as .odt.

If this solves the problem, please click the Edit button on your original post and add [Solved] in front of your subject.
Last edited by John_Ha on Wed Nov 16, 2016 5:06 pm, edited 1 time in total.
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: 8219
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: File format error found at SAXParse

Postby RoryOF » Wed Nov 16, 2016 4:58 pm

It is docx, John.
Apache OpenOffice 4.1.9 on Xubuntu 20.04.1 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 32202
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: File format error found at SAXParse

Postby John_Ha » Wed Nov 16, 2016 5:04 pm

Oops! It is indeed a .docx file - sorry!
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: 8219
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: File format error found at SAXParse

Postby me-natalie » Wed Nov 16, 2016 5:11 pm

Thank you very, very much! But is it everything you were able to recover? I'm sure I had 26 pages in the original file and there's only 8 in the new one. I am glad you did that (don't think, that I am not! You rescued my work!), but is there any hope to recover other 18 missing?
Last edited by me-natalie on Wed Nov 16, 2016 9:30 pm, edited 1 time in total.
LibreOffice 5.2 on Windows 10
me-natalie
 
Posts: 5
Joined: Wed Nov 16, 2016 11:18 am
Location: Poland

Re: File format error found at SAXParse

Postby acknak » Wed Nov 16, 2016 5:17 pm

Here's a copy. I just tweaked the document xml; there should be no change in content of formatting.
Last edited by acknak on Wed Nov 16, 2016 9:03 pm, edited 1 time in total.
Reason: (removed attached file)
AOO4/LO5 • Linux • Fedora 23
User avatar
acknak
Moderator
 
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: File format error found at SAXParse

Postby me-natalie » Wed Nov 16, 2016 5:42 pm

Thank you so much guys! And I'm sorry for being such a problem.
LibreOffice 5.2 on Windows 10
me-natalie
 
Posts: 5
Joined: Wed Nov 16, 2016 11:18 am
Location: Poland

Re: [Solved] File format error found at SAXParse

Postby John_Ha » Wed Dec 14, 2016 3:07 pm

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: 8219
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK


Return to LibreOffice

Who is online

Users browsing this forum: No registered users and 1 guest