[Solved] .ODS File Won't Load

Discuss setup / installation issues - Add a spell checker, Language pack?
Post Reply
linda77
Posts: 5
Joined: Sun May 11, 2008 6:43 pm

[Solved] .ODS File Won't Load

Post by linda77 »

[Solved]

Hi

I'm using 2.3.1 on a PC and have one .ods file that won't load (though it used to load fine).

All that happens is that the blue 'loading' squares at the bottom of the page go about way across and then freeze, prompting a File Not Responding message when I close Open Office.

I've also tried to open it using Open Office on a Mac but have the same problem.

Is there any way I can retrieve the contents of the file? It's quite important...

Thanks in advance.
Last edited by Hagar Delest on Mon Jun 09, 2008 2:20 pm, edited 3 times in total.
Reason: tagged the thread as solved.
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: .ODS File Won't Load

Post by acknak »

If you can attach it here, we can have a try at recovering it.

If it's something you can't share, you can email it (see my profile, "interests").
AOO4/LO5 • Linux • Fedora 23
linda77
Posts: 5
Joined: Sun May 11, 2008 6:43 pm

Re: .ODS File Won't Load

Post by linda77 »

Hi

Many thanks for your reply. I'm afraid it contains sensitive information so I hope you'll understand that I'm not comfortable with sharing it.

Is there anything I can try myself?
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: .ODS File Won't Load

Post by acknak »

Understood; no problem.

Try this thread: [Hint] How did I fix my ODT file
AOO4/LO5 • Linux • Fedora 23
linda77
Posts: 5
Joined: Sun May 11, 2008 6:43 pm

Re: .ODS File Won't Load

Post by linda77 »

ajut001 wrote:Hello,

It took some hours to figure out, how to fix it, so I want to share my solution with other OO users :)

First, let's call our nonopening ODT file as "bad.odt".
  1. make backup FIRST -> "$ cp bad.odt bad_original.odt"
  2. make new directory-> "$ mkdir repair"
  3. copy bad.odt to repair directorty "$ cp bad.odt repair"
  4. change default directory to repair -> "$ cd repair"
  5. unzip bad.odt -> "$ unzip bad.odt"
  6. after unzipping you get bunch of files and directory's under repair , find content.xml and open it whit your favorite text editor -> "$ kate content.xml"
  7. use "find" function to find out, if you have XML tag "<office:automatic-styles>" (somewhere at the beginning of document) and XML tag "</office:automatic-styles>" (somewhere, middle of document). If you have, then delete them and all data between them. Be sure, that you don't delete more or less!
  8. save content.xml (keep original name and place!)
  9. zip extracted data back to one ODT document -> "$ zip -r ./bad_repaired.odt ./*"
  10. try to open repaired document -> "$ ooffice ./bad_repaired.odt"
... and if are you lucky, then OO is able to open your document again ;)

Well, I got back my text and pictures, but the price was - no styles (font size; bold; heading etc...)

If your document do not opening and you get message like "Format error discovered in the file in sub-document context.xml at ...",
then you broke XML structure and must go back to "STEP ONE" ant try to be more careful with deleting things.

PS1: if you get CRC errors, when unzipping ODT, then my solution probable can't help you :(
PS2: I tried also insert "bad.odt" into new document, but still got "Error reading file" message :(
PS3: and " META-INF/manifest.xml file " trick did not help also :(

If someone what to investigate my broken ODT file, then it can be downloaded from -> http://adsl213.pointclark.net/Eksam.odt

BR,
Ajut
Hi again

Thanks for that, but this is waaay over my head - I think it's probably the same problem as I did apply styles to cells - font size, background colors etc - but the above may as well be a foreign language in terms of solving my problem! Is there a plain English description of how to get my file back anywhere?

Hoping so!

Many thanks

Linda
linda77
Posts: 5
Joined: Sun May 11, 2008 6:43 pm

Re: .ODS File Won't Load

Post by linda77 »

... OK I've got as far as unzipping the file and editing the content.xml file to get rid of the styles, but how do I get all the files back together as a .ods file? The software only wants to do a .zip file...

Any help gratefully appreciated!
User avatar
Hagar Delest
Moderator
Posts: 33533
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: .ODS File Won't Load

Post by Hagar Delest »

Just zip the new content.xml in the former zip file and rename it to .ods instead of .zip.

Thanks to add '[Solved]' at beginning of your first post title (edit button) if your issue has been fixed.
LibreOffice 25.2 on Linux Mint Debian Edition (LMDE 7 Gigi) and 24.8 portable on Windows 11.
linda77
Posts: 5
Joined: Sun May 11, 2008 6:43 pm

Re: .ODS File Won't Load

Post by linda77 »

That's great - thanks!
Post Reply