[Solved] Format error in sub-document content.xml

Discuss setup / installation issues - Add a spell checker, Language pack?
Post Reply
Patch
Posts: 4
Joined: Sat Mar 14, 2020 4:22 pm

[Solved] Format error in sub-document content.xml

Post by Patch »

I have tried without fail to fix my error message having looked through the answers on the forum.
I am getting;
'format error discovered in the file sub continent context.xml at 2,4328 (row,col)
From what I've read I can attach a file and someone can fix the problem. Is this the case? I sincerely hope so as I am having no luck at all and any help would be greatly appreciated.
Thank you
Patch
Last edited by robleyd on Sat Apr 18, 2020 11:15 am, edited 1 time in total.
Reason: Tagged [Solved]
OpenOffice 4.1.6 on Windows 10
User avatar
RusselB
Moderator
Posts: 6646
Joined: Fri Jan 03, 2014 7:31 am
Location: Sarnia, ON

Re: [Solved] Format error in sub-document content.xml

Post by RusselB »

You can attach a file (see this tutorial for more help) and a helper may (probably will) look at it, and may be able to repair it.
There are no guarantees.
OpenOffice 4.1.7, LibreOffice 7.0.1.2 on Windows 7 Pro, Ultimate & Windows 10 Home (2004)
If you believe your problem has been resolved, please go to your first post in this topic, click the Edit button and add [Solved] to the beginning of the Subject line.
User avatar
RoryOF
Moderator
Posts: 34619
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: [Solved] Format error in sub-document content.xml

Post by RoryOF »

From the reported error message, it is highly likely that the damaged file can be fixed, but we have to have a copy of the original damaged file, not of a copy oversaved after a botched attempt to fix it.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Patch
Posts: 4
Joined: Sat Mar 14, 2020 4:22 pm

Re: Format error in sub-document content.xml

Post by Patch »

division 5 - P edit 1 - 14.4.20.odt
This is the file that is receiving an error message. I received it as a Word document and have been editing it in that format. I no understand that I should have converted it to AOO to edit
(65.75 KiB) Downloaded 366 times
OpenOffice 4.1.6 on Windows 10
User avatar
RoryOF
Moderator
Posts: 34619
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Format error in sub-document content.xml

Post by RoryOF »

Please try the attached file. Make sure content and formatting are as you require
Attachments
division 5 - P edit 1 - 14.4.20_repaired.odt
(64.54 KiB) Downloaded 376 times
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Patch
Posts: 4
Joined: Sat Mar 14, 2020 4:22 pm

Re: Format error in sub-document content.xml

Post by Patch »

Rory,
Wow that's amazing, thank you ever so much. My faith in AOO has been restored. What an amazing service. I will work on all my documents in AOO and convert them when I need to send.
I can't thank you enough
OpenOffice 4.1.6 on Windows 10
User avatar
RoryOF
Moderator
Posts: 34619
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Format error in sub-document content.xml

Post by RoryOF »

Turn off Track Changes if you are sending the document for review by another. Let that reviewer put their suggestions in a Comment (/Insert /Comment), or you are likely to have a recurrence of the problem.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
John_Ha
Volunteer
Posts: 9584
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: [Solved] Format error in sub-document content.xml

Post by John_Ha »

Rory

I think this is far more likely to have been the bug in AOO where the error is introduced when the poster deleted two comments where each was attached to a range of text.

See Issue 128356 - Track Changes and Annotations on text range can cause corruption. Applies to 4.x (all versions?)
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.
Tiago_81
Posts: 1
Joined: Mon Jun 19, 2023 11:12 am

Re: [Solved] Format error in sub-document content.xml

Post by Tiago_81 »

Hi. I am experiencing the same problem. How did you fix this?
Apache OpenOffice 4.1.7
User avatar
robleyd
Moderator
Posts: 5087
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: [Solved] Format error in sub-document content.xml

Post by robleyd »

Solution depends on exactly what the internal problem is - the error message isn't indicative of the precise problem.

You may refer to [Tutorial] Format error discovered in sub-document for more information and additional links. If you are not confident to undertake the steps involved in repair, you may wish to upload your document here and someone may look at it.
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
Post Reply