Automatically checkin files after uploading

In a typical document library of SharePoint MOSS2007, when use “Upload Multiple Files”, or use drag & drop in Explorer View, you can upload multiple files or folder easily. However sometimes the files are kept in “Checked out” mode and will not be available for others until they are checked in. Unfortunately SharePoint doesn’t have a “bulk check-in” function. So how do you have the files automatically checked in?

The key is in the setting “Require documents to be checked out before they can be edited” – this has to be “No”. Change it through “Document Library Settings”->”Versioning Settings”. The option is at the bottom.

Another setting that could prevent files to be auto checked in is the required columns. Make sure you turn off all mandatory columns, or give them a default value.

Other settings in “Versioning Settings” (such as Content Approval, version numbers etc) do not matter.

This entry was posted in Document library and tagged , , . Bookmark the permalink.

30 Responses to Automatically checkin files after uploading

  1. Gene says:

    In my testing, the “Require documents to be checked out before they can be edited” setting does NOT actually affect this. Documents uploaded without required properties are automatically checked out regardless of the forced checkout setting. Does the behavior in your installation differ?

  2. calvin998 says:

    As stated in my last paragraph, if you have blank required properties, your files will be left checked out even you have the other setting correct. So, you have to have both conditions satisfied for a file to be checked in automatically.

  3. mjwidmer says:

    I had a client that wanted this exact behavior. They wanted to require check-out before editing a document and wanted versioning enabled, but still wanted to be able to have all files “automatically” checked in when a user added a document to the document library via the standard SharePoint UI, the Windows Explorer View of the document library, and the Office 2007 applications.

    We tried everything on thins, including developing custom event handlers and workflows to automate the document check-in process but to no avail. We eventually had to get the Microsoft SharePoint development team involved. Their final assessment was that, “It is not possible to suppress the out-of-the-box check-in mechanism and that any modifications attempting to do so will lead to a scenario where SharePoint is no longer supported by Microsoft.”

    It should be noted that the order of the events that fire when a document is added to a SharePoint document library is slightly different depending on which mechanism (standard SharePoint UI, the Windows Explorer View of the document library, Office 2007 applications) is used.

    There is a way to conduct a bulk check-in of documents via the “Site Content and Structure” administrative functionality, but this is probably to advanced for most casual, day-to-day users.

    My suggestion is to really work with your end users to see if they truly need check-in/check-out enabled for their documents.

    Hope this helps.

  4. Andre says:

    Thanks very much!
    Uour comments resolv my problem….

    Thanks, thanks thanks

  5. Brad says:

    Worked like a champ for me. Wow what a relief.

  6. Jason says:

    You have confirmed my greatest fears. I have users that have uploaded 100+ folders in a deep tree structure. I am giving them the “Content and Structure” link, but the process to check in all files will still be lengthy.

  7. Ravindra says:

    I have a reuired column for document library which chooses the project from exisiting list. if i tried to upload multiple documents to the library it allows to upload but all files are checked for the user by default.

    1. What is the way to automatically checkd in all files. And
    2. How can i set the default value for the lookup column.

  8. thv says:

    Another area that baffles me who the members of the Product Group for Sharepoint are. Seems these people really have no real world user or business acumen or were never in an environment dealing with real users and just not Microsoft employee testers. They really need real world administrator type beta testers.

  9. Carlos says:

    Fully agree with last comment. It is very difficult to get users to work with Sharepoint with these restrictions.

  10. hsingl says:

    It is great to see this solution. Currently I am using SharePoint Batch In( http://www.sharepointboost.com/batch-check-in.html)which accelerates the work greatly. That being said, your solution is greater then I expect.

  11. Jay says:

    Try this out..

    Download “WSS Only STSADM Extensions (x86, x64)” from the link below:

    http://stsadm.blogspot.com/2009/02/downloads.html

    2- Install it using the instructions provided on the same page.

    3- Use the following command to check-in the documents in a particular document library.

    Please note you will have to use this on a COMMAND LINE.
    Stsadm –o gl-publishitems –url URLForDocLib –scope List

    Please keep in mind, that modified and modified by columns might be changed to the user who is logged in i.e. sharepointadmin.

  12. joe says:

    I am having the same problem, and understand if this is just by poor design on Microsofts part. Is there a reason why my users get a access denied page when they try to manually check in each file (from the bulk upload)?

    • It’s crazy, but they get this when they haven’t added a Title to the document. Hover over the document in question and hot the dropdown arrow, select Edit Properties and add a Title (we simply copy the document name and paste it into the Title field. The document can now be checked in without error.

  13. Jennifer says:

    Automatic check out?

    Hi, Do I have to click on check out file and then click on the document again to open it?

    I’ve used Sharepoint before and one click checked it out and opened it before. Do you know what has changed?
    Thanks

  14. CD says:

    There is a way to conduct a bulk check-in of documents via the “Site Content and Structure” administrative functionality, but this is probably to advanced for most casual, day-to-day users.
    This worked for me. Thanks.

    • Anonymous says:

      Thank you for posting this. It was very helpful. I keep reading how there is no bulk check in, but that’s exactly what we can do with the Site Content and Structure functionality.

  15. Edward says:

    The suggested method worked for me. Make sure you set it to “No” before uploading the documents. (And change it back when you’re done.)

    • Gail says:

      Will this work if I change the setting AFTER the users have already loaded files? Meaning, will those files automatically be checked in, or do they have to touch them again? Thanks.

  16. Anonymous says:

    thanks a lot !!! this really saved me a huge pain!! you rock!!!
    cheers my friend!

    jay

  17. Anonymous says:

    Excellent. Edward thanks for your comment about changing back afterwards. I was afraid I was stuck in the other mode and almost did not check this solution.

    Gordon

  18. Mo says:

    Thanks alot!! This save me alot of anguish and pain.

  19. Anonymous says:

    To check-in multiple files:

    Under Site Actions, select Site Settings
    Under Site Administration, Click Content and Structure
    Change View: Default View to View: Checked Out to Me
    Select the items you wish to check in
    Select Actions > Check In

  20. P says:

    To check-in files en mass:

    Under Site Actions, select Site Settings
    Under Site Administration, Click Content and Structure
    Change View: Default View to View: Checked Out to Me
    Select the items you wish to check in
    Select Actions > Check In

  21. Dan says:

    Would you please provide instruction on how to access the “Document Library Settings”->”Versioning Settings? I have “Full Control” permissions and was told I’m an admin… however, since I can’t see the menu you mentioned, I’m beginning to think I’m not a true admin…
    thanks!

  22. Vinh Le says:

    You just saved my coworkers from checking in over a hundred files. Thanks!

  23. Bouwe says:

    What we did is creating a workflow which is executed on “Start this workflow when a new item is created.”. This workflow contains c# code that determines whether the document is checked out and if so, checks it in.

  24. Layman says:

    Guess what, this is useless for the common user. I can’t believe microsoft didn’t have the forethought to allow the user to upload and check-in multiple files at once. This has created hours of headaches at my work. They can’t expect the site owner to change settings back and fourth every time a user needs to upload multiple files.

  25. Pingback: Automatically checkin files after uploading « SharePoint, ASP.NET and more « sysadmin by chance

Leave a comment