I have delete the lock file ods but after deleting and opening the file it was saying write error the file could not be writtenRoryOF wrote: ↑Sun Oct 04, 2020 6:57 pm With OpenOffice closed, enable viewing of hidden files; Google for how to do this: as I haven't used Windows in more than ten years I cannot tell you for certain how to do this on modern version of Windows. Look in the folder in which you have saved the file in question, and delete any file with a name similar toWhere Filename.odt is replaced by your filename and extension.Code: Select all
.~lock.Filename.odt#
Also look in the root of your OpenOffice profile - details are given in
[Tutorial] The OpenOffice User Profile
and delete any file namedbeside the User folder.Code: Select all
.lock
This may have happened because you closed your computer or powered down without allowing the few seconds for the OO housekeeping to be written to disk, or you may have had a computer or program crash.
[Solved] Document file is locked for editing by Unknown user
-
- Posts: 4
- Joined: Tue Apr 08, 2025 6:22 pm
[Solved] Document file is locked for editing by Unknown user
Last edited by Hagar Delest on Thu Apr 10, 2025 7:26 pm, edited 1 time in total.
Reason: tagged solved.
Reason: tagged solved.
OpenOffice 4.1.15
Re: Document file is locked for editing by Unknown user
Give us more details about your system: which Windows edition is used?
Co-admin french forum branch
-
- Posts: 4
- Joined: Tue Apr 08, 2025 6:22 pm
Re: Document file is locked for editing by Unknown user
I am using windows 11 and open office version OpenOffice 4.1.15 When i normally open file it was saying Document file 'filename.ods' is locked for editing by unknown user and options are
Open Read only - write error the file could not be written - option ok - click close
Open Copy - same error mentioned above
Cancel- close
while trying open after deleting lock.filename.ods# - same above mentioned write error
Open Read only - write error the file could not be written - option ok - click close
Open Copy - same error mentioned above
Cancel- close
while trying open after deleting lock.filename.ods# - same above mentioned write error
OpenOffice 4.1.15
- Hagar Delest
- Moderator
- Posts: 33362
- Joined: Sun Oct 07, 2007 9:07 pm
- Location: France
Re: Document file is locked for editing by Unknown user
You could try to reset the whole profile reset your OpenOffice user profile.
If no change, you can try LibreOffice: [Tutorial] Considering a Switch from OpenOffice to LibreOffice? Some Useful Information. At least a portable version to see if it does better.
Just to make sure: you can create a brand new document in that folder and open it with no problem, correct?
If no change, you can try LibreOffice: [Tutorial] Considering a Switch from OpenOffice to LibreOffice? Some Useful Information. At least a portable version to see if it does better.
Just to make sure: you can create a brand new document in that folder and open it with no problem, correct?
LibreOffice 25.2 on Linux Mint Debian Edition (LMDE Faye) and 24.8 portable on Windows 11.
Re: Document file is locked for editing by Unknown user
A reset of the OpenOffice User Profile, as outlined by Hagar (above) should sort this. The "locked by unknown User" error usually occurs, if I remember correctly, because there is a hidden lock file in the root of the OpenOffice User Profile.
Such left-over lock files remain because of improper close down of OpenOffice, sometimes caused by User impatience in not allowing the few moments needed for internal computer housekeeping to complete, or by program or computer crashes.
Such left-over lock files remain because of improper close down of OpenOffice, sometimes caused by User impatience in not allowing the few moments needed for internal computer housekeeping to complete, or by program or computer crashes.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.5 LTS
Re: Document file is locked for editing by Unknown user
How was OpenOffice installed? Did you run the installation process with administrator rights?
- Attachments
-
- capture.jpg (11.51 KiB) Viewed 593 times
Co-admin french forum branch
-
- Posts: 4
- Joined: Tue Apr 08, 2025 6:22 pm
Re: Document file is locked for editing by Unknown user
No if create new ods file and try to open it it was showing the write error the file could no be writtenHagar Delest wrote: ↑Wed Apr 09, 2025 7:55 am You could try to reset the whole profile reset your OpenOffice user profile.
If no change, you can try LibreOffice: [Tutorial] Considering a Switch from OpenOffice to LibreOffice? Some Useful Information. At least a portable version to see if it does better.
Just to make sure: you can create a brand new document in that folder and open it with no problem, correct?
Also Thank you everyone who were replying to my problem patiently
i have some work will update you about libraoffice, resetprofile, admin acces install by 9pm today
OpenOffice 4.1.15
Re: Document file is locked for editing by Unknown user
Then I think you need to reinstall OpenOffice with Administrative rights, as outlined above by Bidouille.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.5 LTS
-
- Posts: 4
- Joined: Tue Apr 08, 2025 6:22 pm
Re: Document file is locked for editing by Unknown user
Thank you everyone who suggested supported replyed and answered my queries/questions, the problem was with admin access i have forcefully denied and now found a way reactivate the admin access and boom it opened without any extra steps

OpenOffice 4.1.15