DEV Community


Discussion on: Office Online 'The file is locked for shared use' error

engineerer profile image
Kai Boschung

How did you figure out this issue arises because of this flag? I would never have guessed!

okms profile image
Ole Kristian Mørch-Storstein Author

We saw that this particular issue was only caused by users first editing documents in Office Online, never by anyone using the client applications directly without first opening in Office Online. When testing against SharePoint onprem we also saw in the ULS logs that (shared) file locks were initialized when opening in office online, but the locks were apparently never released. This also had some side effects like the current user appearing multiple times in the "people editing this document" box. So pulling on this thread i tried to figure out how the actual lock is removed when using office online, but for the affected users no XHR traffic appeared when navigating away from Office Online.