User遇到了一个问题,在SharePoint Online站点中打开文件时候弹出下面error“xxx has the workbook locked. Ask them to close the file or check it in”.
此时在SharePoint online中查看此文件,并没有被check out。
我们都知道,对于文件编辑保存后如果user没有关闭此文件,或者存在Office Cache issue等问题都会导致file lock。正常情况下需要等待一段时间,文件会被自动release。但是因为user比较着急修改,又无法找到修改文件的user去release文件。此时对于SharePoint Administrator可以通过执行下面PowerShell进行check文件状态情况和release file。
步骤如下:
1. Administrator打开SharePoint Online Powershell,执行下面命令连接SharePoint Online;
#connect sharepoint online
Connect-SPOService -Url "Enter SharePoint Online Admin URL" -credential "En