Error saving document - writing content.xml

Discuss setup / installation issues - Add a spell checker, Language pack?
Post Reply
leamphil
Posts: 14
Joined: Tue Nov 08, 2011 4:02 pm

Error saving document - writing content.xml

Post by leamphil »

I have a master document in which I had multiple sections imbedded. When saving it I got the following error message:

Error saving the document Untitled 2:
Write Error.
Error in writing sub-document content.xml.

I tracked the cause down to a specific file I was imbedding which I have editted to a small enough size to be attachable (& it still gives the problem)

I recreated my document, pasting in the content from the "bad" document and it now works fine.

I can recreate the error by creating a new master document, inserting a section with the attached bad file, and then trying to save.
Hopefully someone else can also recreate the error and use this to track down the cause.
Attachments
__bad__Widcombe Parade (Bath) - Copy.odt
Reduced file that gives saving error when imbedded in a master document
(13.16 KiB) Downloaded 145 times
Regards,
Leamphil

LibreOffice 7.2.5.2, Windows 10
John_Ha
Volunteer
Posts: 9584
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: Error saving document - writing content.xml

Post by John_Ha »

It opens fine in AOO but when I pull it in to a master document only part of it comes in.

If I go Insert > File ..., and try to insert it into a new, empty document (which often fixes problems) it gives a General error.

As it is such a simple document it's not really worth debugging it - just create a new one from scratch. It has WW8... styles suggesting it originated as an MS Word document.
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.
User avatar
RoryOF
Moderator
Posts: 34791
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Error saving document - writing content.xml

Post by RoryOF »

Loaded into a version of AOO it loads OK; Page Header and Footer both show unresolved links to the same WWSetBkmk1 bookmark, which is probably the problem.
 Edit: /Insert /File into a blank document gives "General error", as John_Ha found. 
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
leamphil
Posts: 14
Joined: Tue Nov 08, 2011 4:02 pm

Re: Error saving document - writing content.xml

Post by leamphil »

The error I was pointing to was when I tried to save the master document that I had imbedded this snippet in.

It came up with the non-specific "error writing sub-document xml" message which I know others have complained about before.
I wasn't sure that the cause of this error message had been tracked down.

I have no problem editting the file in Libreoffice, nor in inserting it as a section in a Libreoffice master document.
The non-specific error message "Error in writing sub-document content.xml." came when I tried to save the master document.

I don't have an ongoing problem - I recreated the file OK - so the only thing is if anyone wants to track down the cause of the "Error in writing sub-document content.xml." message
Regards,
Leamphil

LibreOffice 7.2.5.2, Windows 10
Post Reply