Urgently need to find a fix for my spreadsheet that has suddenly corrupted. I have read many posts but I can't find a way. I've hunted for hours for xml reader and various ways to fix (zip etc) - can't find a way. Any help or instruction is appreciated. There is no backup...
I have attached the error message and the file if that helps.
[Solved] Fix for Read Error-Sub Doc??
[Solved] Fix for Read Error-Sub Doc??
- Attachments
-
- Downloads_Cabinet-Pricing-Catalog2017.ods
- (100.47 KiB) Downloaded 82 times
Last edited by RoryOF on Sat Oct 21, 2017 10:27 am, edited 2 times in total.
Reason: Added green tick [RoryOF, Moderator]
Reason: Added green tick [RoryOF, Moderator]
OpenOffice 4.1.4 on MacOS 10.11
Re: Fix for Read Error-Sub Doc??
Try the attached. Please check that formatting and content as as you require.
- Attachments
-
- Downloads_Cabinet-Pricing-Catalog2017_repaired.ods
- (95.53 KiB) Downloaded 83 times
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Re: Fix for Read Error-Sub Doc??
How did you do that??? That is a miracle! THANK YOU!
Is there something I can know for any future problems? I'm worried it may happen again.
Is there something I can know for any future problems? I'm worried it may happen again.
OpenOffice 4.1.4 on MacOS 10.11
Re: Fix for Read Error-Sub Doc??
I opened the .ods file with an archive manager, then inspected content.xml with an XML editor (XML Copy Editor). That told me that the error was a duplicate attribute at line 2, 60555 (as you reported). I went to that location and found that there were two XML attributes of the same name (I can't remember what the attribute was). I removed one, got XML Copy Editor to check the file was well formed (i.e., no further errors) resaved content.xml and inserted it into the .ods archive. Then I checked that it would open with OpenOffice.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Re: Fix for Read Error-Sub Doc??
Thank you. I could not find an xml editor to read it nor could I get it to produce the file by zipping. I will look for an archive manager and editor. Thank you again.
OpenOffice 4.1.4 on MacOS 10.11
Re: (Solved) Fix for Read Error-Sub Doc??
Usually an OpenOfffice file can be opened by the operating system's built-in archive manager; it might be necessary (at operating system level - i.e., outside of OO) to rename the file to type .zip, so that the archive manager knows what type of archive it is. A plain text editor can be used to edit content.xml, although a dedicated XML editor is much easier.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Re: (Solved) Fix for Read Error-Sub Doc??
I did try that a number of times - with no luck but if it happens again I will use a different zip, and better editor. Thanks for the details it will be a big help.
OpenOffice 4.1.4 on MacOS 10.11