The file filename is not checked out. You must first check out this document before making changes.

In this SharePoint tutorial, we will discuss how we can resolve the below issue which comes while uploading files using CSOM (Client side object model (Microsoft.SharePoint.Client.dll)). The error comes as The file filename is not checked out. You must first check out this document before making changes.

Were trying to upload a few files to a document library using .Net managed object model code. But while uploading it gave the below error:

The file “https://SiteURL/Document_Library_Name/Archiving16.gif” is not checked out. You must first check out this document before making changes.

The file filename is not checked out

One solution is programmatically, you can first check out the file. But in our case we have checked in the document library, someone mistakenly enables “Create major and minor (draft) versions” in Document Version History.

So you can go to the Library Settings -> Versioning Settings and in the Versioning Settings page you can disable the Versioning or you can also create major versions like below:

The file fileaname is not checked out
The file filename is not checked out

Read some SharePoint online csom examples:

Then the error “The file filename is not checked out. You must first check out this document before making changes.” will not come.

Donwload Hub site pdf

Download SharePoint Online Tutorial PDF FREE!

Get update on Webinars, video tutorials, training courses etc.

>