File checked out for edit

Recently I have seen an issue where user was unable to delete a folder in a SharePoint online document library because a file was checked out for editing by a user. An in folder there was not file with pending checkout. And mandatory checkout was disabled on the document library.

Solution:

There were mandatory fields metadata fields on the SharePoint document library and documents were copied in bulk in folder view and due to mandatory fields, documents status automatically changes to checked out to the current user. As you know that a document will not be shown to the users until unless it should have atleast one minor version. So, there can be another issue that users were unable to view uploaded content.

Now how to verify that, go to the document library settings and click on Manage files which have no checked in version link. This will show you all the files without checked in version.

Manage files with no checked in version

You can either asked the person to check in these files or can take the owner ship of the files and check in by yourself.

One important thing is that you need to provide the mandatory metadata fields values. In my scenario, I have to delete folders so I have remove the required field check from the list columns and checked in all files and after that changed the status of list columns to required (as it was originally set).

Lesson:

If you are copying bulk data in document library, then you have to provide the metadata for mandaoty fields. But if you want to show documents to business users so they can update the metadata fields then you need to disable the required fields and enable it again after copying all data.

Adnan is six time Microsoft MVP (Since 2015) with over 16 years of extensive experience with major expertise on SharePoint, SharePoint based development, Microsoft 365, Microsoft Teams, .Net Platform and Microsoft BI. He is currently working Sr Microsoft Consultant at Olive + Goose. He is MCT Regional Lead for Pakistan Chapter since 2012. He is working on SharePoint for past 12 years and worked on different intranet/intranet solutions for private & govt. sector majorly in United states and Gulf region and have experience of working with multiple Fortune 500 companies. He is a trainer, technology evangelist and also speaks in community forums.

Leave a Reply