SOLVED

Unlock a file that has been locked for editing

%3CLINGO-SUB%20id%3D%22lingo-sub-1085552%22%20slang%3D%22en-US%22%3EUnlock%20a%20file%20that%20has%20been%20locked%20for%20editing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1085552%22%20slang%3D%22en-US%22%3E%3CP%3E%3CFONT%3EThe%20file%20is%20locked%20by%20an%20user%20for%20editing.%20The%20SharePoint%20Administrator%20is%20unable%20to%20unlock%20the%20document%20in%20SharePoint%20Online.%3CBR%20%2F%3EIs%20there%20any%20option%20to%20unlock%20using%20Power%20Shell%20%3F%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1085552%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1085627%22%20slang%3D%22en-US%22%3ERe%3A%20Unlock%20a%20file%20that%20has%20been%20locked%20for%20editing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1085627%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F113593%22%20target%3D%22_blank%22%3E%40Sajith%20G%20H%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESee%20this%20post%20for%20more%20information%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fsharepoint%2Fcannot-release-lock-on-sharepoint-online-file%2Fm-p%2F216475%23M19782%22%20target%3D%22_self%22%3ECannot%20Release%20Lock%20on%20SharePoint%20Online%20File%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20many%20cases%20the%20lock%20will%20timeout%20and%20in%20other%20cases%20a%20user%20may%20have%20the%20file%20locked%20via%20the%20%22%3CSPAN%3EUpload%20Center%22.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20hope%20this%20helps.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ENorm%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1310323%22%20slang%3D%22en-US%22%3ERe%3A%20Unlock%20a%20file%20that%20has%20been%20locked%20for%20editing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1310323%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20is%20an%20old%20post%2C%20but%20I%20just%20had%20this%20happen%20and%20wanted%20it%20here%20to%20maybe%20help%20other%20people.%26nbsp%3B%20Make%20sure%20the%20document%20isn't%20a%20.doc.%26nbsp%3B%20If%20that%20happens%20it%20will%20lock%20with%20just%20one%20person%20opening%20it%20every%20single%20time%20and%20will%20cause%20this%20error.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2060229%22%20slang%3D%22en-US%22%3ERe%3A%20Unlock%20a%20file%20that%20has%20been%20locked%20for%20editing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2060229%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F235764%22%20target%3D%22_blank%22%3E%40Pam%20Parker%3C%2FA%3E%26nbsp%3B%20Does%20SharePoint%20have%20the%20same%20problem%20with%20.docx%20files.%26nbsp%3B%20I.e.%20lock%20them%20every%20time%20they%20are%20opened%3F%20We%20don't%20have%20check-in%2Fout%20enabled.%26nbsp%3B%20The%20document%20is%20locked%20by%20me%20but%20I%20closed%20everything%20last%20night%20and%20it's%20still%20locked%20this%20morning.%26nbsp%3B%20This%20is%20happening%20on%20several%20files%20across%20the%20document%20library.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2064767%22%20slang%3D%22en-US%22%3ERe%3A%20Unlock%20a%20file%20that%20has%20been%20locked%20for%20editing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2064767%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F928867%22%20target%3D%22_blank%22%3E%40louise1575%3C%2FA%3E%26nbsp%3B%20I've%20found%20it%20just%20to%20be%20with%20.doc%20files.%26nbsp%3B%20If%20your%20file%20is%20a%20.docx%2C%20you%20might%20temporarily%20turn%20off%20autosave%20(toggle%20it%20off%20in%20Word.%26nbsp%3B%20Upper%20left%20hand%20corner).%26nbsp%3B%20Close%20the%20file%20and%20see%20if%20that%20helps.%26nbsp%3B%20We've%20had%20autosave%20be%20the%20issue%20too%20sometimes.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

The file is locked by an user for editing. The SharePoint Administrator is unable to unlock the document in SharePoint Online.
Is there any option to unlock using Power Shell ?

4 Replies
best response confirmed by Juan Carlos González Martín (MVP)
Solution

Hello @Sajith G H,

 

See this post for more information: Cannot Release Lock on SharePoint Online File

 

In many cases the lock will timeout and in other cases a user may have the file locked via the "Upload Center".

 

I hope this helps.

 

Norm

This is an old post, but I just had this happen and wanted it here to maybe help other people.  Make sure the document isn't a .doc.  If that happens it will lock with just one person opening it every single time and will cause this error.

@Pam Parker  Does SharePoint have the same problem with .docx files.  I.e. lock them every time they are opened? We don't have check-in/out enabled.  The document is locked by me but I closed everything last night and it's still locked this morning.  This is happening on several files across the document library.

@louise1575  I've found it just to be with .doc files.  If your file is a .docx, you might temporarily turn off autosave (toggle it off in Word.  Upper left hand corner).  Close the file and see if that helps.  We've had autosave be the issue too sometimes.