Corrupted File - What to do?

Discuss the word processor

Corrupted File - What to do?

Postby Daniel36 » Mon Aug 05, 2013 2:07 pm

Hello everyone,

Today I started up my computer, and it asked me to update Java.
Being the lazy man that I am, I didn't want to do that, as I wanted to continue writing a document I had been working on for a couple of months.

I suppose OpenOffice works with Java, as it first prompted me that it could not open because something was invalid, and I seem to remember Java being mentioned.
It then continued to ask me to register and all, something that OpenOffice never asks of me.

After that, I was given the following options:
OO-001.jpg

Upon accepting the options, my document becomes 223 pages of : ################ <-- this.
Shocked to find my work gone, I obviously immediately updated Java and subsequently updated OpenOffice, but to no avail. It still does this.

The document is purely hobby related, but I spent quite a lot of work on it and I would be very saddened if I couldn't regain the document.
Can anyone help? I would be most grateful. I could email the file.

Kind regards,
Daniel
OpenOffice 3, now 4 on Windows 7
Daniel36
 
Posts: 4
Joined: Mon Aug 05, 2013 1:55 pm

Re: Corrupted File - What to do?

Postby RoryOF » Mon Aug 05, 2013 2:35 pm

The corrupt file is due, not to Java, but a bad save. This usually occurs when the computer is shut down too quickly (as in a System crash) or sometimes simply just over speedy close down of the program or computer, without giving time for the write buffers of the operating system, or the internal write buffers of the disk drives, to flush.

If it asks you to register, this is because your User Profile has been damaged/removed, possibly due also to over speedy close down, as the User Profile is then updated with file information. This can also be (possible, perhaps not likely) a sign of imminent hard disk failure.

One can rename the .odt file to .zip, and try to open it with Winzip or similar archive manager. If it opens, the text is in Content.xml. Also worth trying to see if there is a backup file in the directory pointed to by
/Tools/ Options /OpenOffice.org >Paths >Backup.
Sometimes there can be a file of approximately the correct date/time with an arbitrary name such as sgfxt,ghp in the directory pointed to by
/Tools/ Options /OpenOffice.org >Paths >Temporary Files
Rename such files to .udt and see if they open.

Because you have installed AOO4.0 over AOO 3.4.1, you may have to do a little fiddling about to find any such files (if they exist) as there may be separate paths for AOO 3.4.1 and the later version. Your target files should be in the earlier path.

It is also worth running an undelete utilty such as PhotoRec, which may also find erased file content.
Apache OpenOffice 4.1.7 on Xubuntu 18.04.4 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 30645
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Corrupted File - What to do?

Postby Bill » Mon Aug 05, 2013 2:53 pm

You may be able to restore an undamaged version of the file from a Restore point. Right-click the damaged file and select Restore previous versions

Previous versions of files: frequently asked questions
AOO 4.1.7 and LO 6.3.2.2 on Manjaro KDE
Bill
Volunteer
 
Posts: 7637
Joined: Sat Nov 24, 2007 6:48 am

Re: Corrupted File - What to do?

Postby Daniel36 » Mon Aug 05, 2013 3:04 pm

Thank you both.
I will try to do what you have suggested.
@Bill: Tried that already, no such luck.
OpenOffice 3, now 4 on Windows 7
Daniel36
 
Posts: 4
Joined: Mon Aug 05, 2013 1:55 pm

Re: Corrupted File - What to do?

Postby Daniel36 » Mon Aug 05, 2013 3:51 pm

Tried some of these things, but nothing worked.

At least now I do know the root of the problem. I had left my laptop on for DAYS, and when I last closed it, I had left this file open and the battery ran out today...
No wonder.

So if anything, thank you RoryOF for explaining the root of the problem to me, so I can at least never make the same mistake again!
OpenOffice 3, now 4 on Windows 7
Daniel36
 
Posts: 4
Joined: Mon Aug 05, 2013 1:55 pm

Re: Corrupted File - What to do?

Postby RoryOF » Mon Aug 05, 2013 4:02 pm

I never let a laptop hibernate/sleep with an open OpenOffice file (previous reports of file corruption). A useful tip is to hit CTRL S to Save a file any time there is an interruption (standard Save shortcut for all Windows programs, possibly all Operating Systems). As an old time personal computer user (35 year) I don't let computers run for indefinite times. When I sleep, they sleep, unless doing long downloads on bad lines.
Apache OpenOffice 4.1.7 on Xubuntu 18.04.4 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 30645
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Corrupted File - What to do?

Postby Hagar Delest » Mon Aug 05, 2013 9:07 pm

AOO 4.1.7 on Xubuntu 19.10 and 4.1.5 on Windows 10 (with winPenPack port).
User avatar
Hagar Delest
Moderator
 
Posts: 28721
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Corrupted File - What to do?

Postby Daniel36 » Mon Aug 12, 2013 8:42 pm

After a lot of work for nothing, I decided to just restart. I now have a document that I feel is better than the previous one...
Thanks to everyone for the answers and tips. I now know NEVER to keep a .doc open when closing down my PC.

:)

As far as I am concerned this thread can be closed.
OpenOffice 3, now 4 on Windows 7
Daniel36
 
Posts: 4
Joined: Mon Aug 05, 2013 1:55 pm

Re: Corrupted File - What to do?

Postby RoryOF » Mon Aug 12, 2013 9:04 pm

Even better to work always in .odt, and only save out as .doc when necessary. Again, never let it sleep with an open file.
Apache OpenOffice 4.1.7 on Xubuntu 18.04.4 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 30645
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland


Return to Writer

Who is online

Users browsing this forum: ricbailey and 18 guests