Sharepoint - The file is locked for exclusive use by same person SharePoint Online
Common reason for this type of error is
- Either Document was open in the office Client program and some body working on it. Or client program was not close properly( terminate or crashed).
- Windows SharePoint Services puts a write lock on the document on the server. The write lock times out after 10 minutes. Users cannot modify the document during the time when the document is locked
You have to wait for 10 mins and then try again.
In this case, can you ask the user(name mentioned in the error) try to open the document and save it.
Here is the great refrence
- Also check if the document is checked out.
Clearing short term file lock
use these management shell commands to release lock.
$url = "http://intranet.domain.com/SITENAME"
$fileurl = "http://intranet.domain.com/SITENAME/LIBRARY/myfile.docx"
$web = Get-SPWeb $url
$item = $web.GetListItem($fileurl)
$item.File.CheckOutStatus
$item.ReleaseLock