Lately we've been having weird file locking issues in our PROD and QA farms when creating a new document in a library.
And by creating a new document I mean creating it from the "New" button and not by uploading a document from my computer.
Right after I have created the document and edited the content and giving it a name the file seems to be "locked for shared use" by me.
I can edit the content of the document, but if I add some metadata to the file's properties and try to save the document Sharepoint throws an error:
The file "xxxxxxxxxxxxxxxxxxxxxxx" is locked for shared use by i:0e.t|xxxxx|xxxxxxxxxxxx. (which shows my account)
Also when viewing that document in Word desktop client my name appears two or three times in the section where you can view who has opened this document for editing (Share-button in the top-right corner)
The file is unlocked if I wait for about 10-60 minutes and after that everything works as intended.
We and our customers don't remember facing this issue before (in 3-4 years) and I have no clue why this issue is happening now.
I found a dirty workaround from another forum:
- Go to document library settings and enable document checkout option and save. Then go to the same settings and disable it and save. (Even if it was disabled already like in our case).
Sounds weird, but that seems to work. Now if I create a new document from the library I can edit/save metadata to the document immediately without the file being locked by me.
What's even more weird this issue went away from me the day after I found this issue, but it still remains with our customer and also with my colleague.
All I did was cleared Office download center cache, but that didn't do anything. Surprisingly the next day I didn't have the issue anymore.
I suggested our customer to do the same, but that didn't help so I dont think that has anything to do with solving the issue for me.
So I don't have a clue why this issue is happening now and what is causing it and why the issue went away from me suddenly, but still occurs with other users.
Any ideas?