Iam trying to close a file in LOCalc but am getting an error message saying "Write Error, file could not be written" How can I overcome this?

Widows 10 OS, never had this happen before.

Hi TammyRosa. I had this issue recently. It was strange in that I was able to save updates being made to a document one minute, and then minutes later began getting the “Write Error” message for the same document. The same message then also appeared for “Save As” attempts. Experimenting with creating and saving a brand new document started bringing an error box saying the “File could not be found”.

Below are possible solutions, including what I found success with:

  1. Try using LibreOffice in its Safe Mode. This may show whether the problem is with some extensions or user configurations that are specific to the program.
  2. Try the LibreOffice Safe Mode’s proposed changes, in order of its recommendations (these are changes the program will make to its own files… not your computer’s overall user configurations)
  3. Try running the LibreOffice repair functions that are accessed through its installation file (LibreOffice_YourVersion.msi)
  4. Tell the Windows 10 Controlled folder access to allow Libreoffice. Access this in Windows 10:
    Settings → Windows Security → Virus & Threat protection → Virus & Threat protection settings (Manage Settings) → Controlled folder access (Manage Controlled folder access) → Controlled folder access (Allow an app through Controlled folder access)
  5. Run the LibreOffice removal function found in the same installation file as the last step. Then download and install an older, more stable version of LibreOffice.

I went through all the above steps, and even a few more that I wouldn’t recommend. Ultimately it was step 4 that did the trick for me. The problem began after updating to a newer version of LibreOffice 6.2.

Good luck!

You need to look for the file’s URL. If you didn’t add that to the Standard toolbar, use Save As instead of Save. You will then see to what location LibO is trying to save the file. I would assume it was a file loaded from the internet or from a folder in your file system you have no write permission as the user you are currently logged in as.

I have been using this file, which I set up myself and save to Documents, since February (it’s a project diary) updated it frequently (i.e. several times/month) since then. Now I am unable to save it with the latest update.

First save your document elsewhere, then continue the research concerning the cause of your issue.
If an attempt to ‘Save As’ to a newly created empty folder also fails there must be a serious problem with your system. Try to copy the contents of your diary (losing formatting and formulae, of course) to an emergency textfile. Don’t close your workfile and look for an experienced user living next to you. As soon as your works is sufficiuentlly saved, you may try additional diagnostics.
I feel rather sure I cannot help you beyond what I already tried without sitting at you computer.

Thanks for your help so far, I have saved a copy of the updated diary to a new folder and can open it from there but I can’t close it after updating - looks as if I might have to save updates as copies to a new folder each time and delete the previous copy folder - as they say “There is more than 1 way to kill a cat (or to botch a job come to that!)”

After this additional report I suspect your user profile to be corrupted. I suggest you backup your user profile and try a cycle with a new one.
Be careful to not lose templates, scripts, …
If the issue is solved with a new profile, you may re-import many things from your backup.

Step 4 worked for me although the route to fix it has changed slightly.