11-06-2018 04:19 PM
11-14-2018 04:00 PM
For one library and group of users, we have configured it to open files in their native app. Therefore, the Word Online is bypassed directly for the Word App. These users don't appear to have the File Lock issue anymore.
Has anyone else noticed this? Does anyone else have a Library whereby the default is set to "Open in Client Application" and doesn't have the issue with docs in that Library?
My guess is that previously the Word doc opened in online mode, then they clicked "Edit in Word" and so it's opened in two places. They'd edit in Word, but something may have occurred (a cursor move, etc) whereby the Online version of the same doc was 'edited' too - and that this *duopoly* is what causes the issue.
It's my assumption that this is what causes the File Lock issue and what needs to be focused on.
11-29-2018 07:12 AM
SharePoint Online, had this issue with a word file with "abc" written in it. Because I had locked it I could not edit the file in word online, edit the properties in Sharepoint online or delete it. And I had no idea where to deactivate the "Lock".
I found the solution for my case in this thread somewhere- Open it in word local on PC and there i could edit the files.
Cause of the issue: I was testing some list features with a lot of basically empty word files in it. And I might have had word online open in that word document when I added another column to the list that was mandatory to be filled out..
But I'm not 100% sure on this because I'm old and some times I set of to do something just to end up looking into the fridge realizing I'm not hungry I struggle to remember what I was supposed to do..
01-06-2019 11:42 AM - edited 01-06-2019 11:44 AM
@Zoltan Bagyon wrote:
This is a very frustrating known issue in SP Online, and I can't really understand why we don't get an admin-tool (via PS, for example) to manage it.
My greatest concern is, what I've experienced many times, that the 10 minute timeframe MS promise for auto-unlock is simply not true and it took much-much longer to get access back to the file. Also the workaround they suggest here haven't ever worked for me. So my user (and admin) experience is that whenever this issue occurs, I have no other tools to fix it than waiting, and I have to tell the same to my users.
Same Problem here with Sharepoint online after making changes to excel in a flow. The Excel file is locked for hours. I read a lot of things, but all solutions I found are not for SP Online (office 365) but for SP on premise. For SP on premise are very easy solutions with powershell, but in SP Online we don't have something like "Get-Spweb".
- Somebody knows a solution to unlock files fast in SP Online?
- Ore any idea how to prevent Excel file locks after flow create/manipulate/copy excel files (also when the flow is crashing)?
- Any flow nodes to force an unlock available?
01-06-2019 02:46 PM
02-21-2019 10:46 AM
02-21-2019 10:46 AM
"...and Close it" That was the ticket for me. Gracefully close the document using File->Close in the client app. Previously, I was just X'ing out of the client and still could not delete the file from SP. Thanks!
03-12-2019 02:44 PM
After opening the Word document in Word, clicking File, clicking Manage Document, "Check Out" is grayed out. So, I'm unable to checkout/checkIn. I created the document, I am one of the owners of the MS Teams group, and from within properties it says the file is locked by me.
04-03-2019 04:04 PM
04-29-2019 12:52 PM
The problem with files getting locked still happening in April of 2019. Found out the hard way after opening a file in Teams using "Open in Word", editing for 45 minutes only to notice it was "Read Only". Found a file stuck in the upload center on Pending. Removed it, fortunately I had saved the Read Only version to a local file and was able to copy and paste.
This seems to happen more often than not when editing files in SP Online. As an admin I kinda get what's going on. But this will drive users nuts.
04-30-2019 06:48 AM
I've just had the same problem @Brent Ellis but in a Modern Experience Library and none of the answers of this thread helped a bit. Anyway I've managed to "move" the item to my OneDrive using the new-ribbon option. That worked and allowed me to finally delete the document.
Probably not an solution for other use cases but it worked for me. I hope this helps to some other SharePointers. ;)
05-15-2019 07:13 AM
05-24-2019 01:35 PM
This is also what I usually have to do is open a previous version. I usually get lucky and it shows me having opened one earlier that day when it locked. But on the rare occasion it does not, and I am forced to open an older one and loose data. @Michael Butterfield
06-04-2019 07:17 AM
@Doug Powell Thank you for your post 2 years ago! It just worked after many frustrating minutes of the same around and around with Sharepoint and moving a file because of a file lock. Very much appreciated you sharing your experiences--it helped me and hope it continues to help others. I hope MS fixes this with more helpful error dialogs, but in the meantime, thanks! :)
07-22-2019 01:47 PM
Potential work-around - I had this issue specifically with a PowerPoint file - I simply opened the slide show again via PowerPoint (the same way I had it open before) then rather than just closing PowerPoint with the "X" - I used the File Menu and selected "Close" - this closes the slide show and leaves PowerPoint open. as soon as I did this, the lock was released.
07-30-2019 10:34 AM
Glad to hear that worked. That's not a workaround however, that's how the product works.
When you close out of a file stored in SharePoint , Exiting the file gracefully (File > Close, Red 'x', etc.) your machine sends information back to SharePoint telling SharePoint that you're done with the file and the lock can be released. Once SharePoint receives that Trigger, it releases the file's lock.
File locks will always happen when opening files from SharePoint, that is 100% how the product works. Where issues can be seen is releasing the lock states. If you're not co-authoring, (whether this is disabled for you somehow or if your Office client doesn't support it), then you'll set an exclusive file lock. This means only the user who opened the file from SharePoint (The user who sets the lock state) will be able to edit the file.
Unless the user exits the file gracefully, or the lock expires, no one else can edit the file. If the user does not exit from the file gracefully (Application crashed, unexpected Power Reset, etc), then the lock will be released via an expiration setting built into SharePoint. If the lock state doesn't expire, the user can re-open the file and exit gracefully to try and remove the lock.
If you're seeing the file lock does not release after a user exits gracefully from the file, you could be looking at an issue with SharePoint, your local machine, or your Office client. More often than not, these lock issues aren't actually bugs or errors and come down to understanding how these products work and how the Office files are being opened or used.
08-05-2019 08:11 AM
I get that, and agree with you that it should work regardless.
What I'm experiencing is when closing via the "red x" in the top right corner PowerPoint doesn't seem to consistently release the locks. It's as though it's firing some async process to release the lock and PowerPoint sometimes exits before the unlock is actually taken care of. I obviously can't say for certain that this is what's happening, I'm only trying to illustrate/describe the behavior as I observe it.
Call it what you want, I've not yet experienced the locked file issue (yet) when I close via the file menu. Maybe it's a coincidence, maybe not.
I wish there was a feature in SharePoint to forcefully remove the lock (maybe there is for admins but in this case it's the back end of MS Teams and I don't think we really have full admin rights) because sometimes the users with the locks have left for the day and I can't track them down to open/close a document.
Thanks for the full write up on locks etc in SharePoint - it is a great write-up of what I believed to be true (though didn't definitively know)
08-05-2019 09:01 AM
08-20-2019 12:46 AM
09-24-2019 11:31 AM
K so I had a similar situation where I wanted to rename a word doc and I kept getting an error that the file was locked by my own user account. I was not able to delete the document for the same reason.
I logged off and back on thinking that would clear... it never.
I finally opened the word doc on line then chose the open via desktop option. From there I did a "save as" and changed the name and re-saved it to the same SharePoint site.
At that point I was then I was allowed to delete the old file.
Not sure why this worked but it did.
Hope this helps someone else.
09-25-2019 12:30 PM
10-07-2019 02:37 AM
It totally works - thanks.
The file I was trying to edit was locked by me. Probably due to freeze at one point, which made me hard close the app.
I went to Start Menu and right click on Excel to open this file on desktop from history list.
Went, as you said, to "File->Info->Manage Workbook and check the file out from there. Worked perfectly!
10-29-2019 07:29 AM
I also had this issue. Here are the steps that worked: