Check out issue in Sharepoint document library
I am having one strange issue in one of my SharePoint site document library, issue is the "Checked Out To" column it will not have any one listed as having it checked out. However, when user X goes to check it out it will say it is already checked out by another users, let say Y. So X will go talk to Y and Y says they don't have it checked out. They come to me and as the administrator I check the "manage checked out files" and it will not be checked out. The system will not let anyone check out the document or modify it in anyway. This has happen enough times that it is a problem. Thanks Saravanan
June 14th, 2010 9:04pm

Looks like this is the type of issue you are having: http://glorix.blogspot.com/2006/09/sharepoint-2003-unlocking-longterm.html This info is from the blog post in case the blog dies in the future. It was originally posted in Mike's site but the link seems to be dead. Long term check out This is the explicit check out . This holds a lock on the document whether you have it open for edit or not. Short term check out You get this feature implicitly. If you open a document for editing, you get a short term lock on the document to prevent other people from editing the doc while you are. The Office client applications refresh this lock periodically as long as you keep the document open. Once you close the document, your short term check out is released ..... Unfortunatly I could not check in the file and the user who did check out the file could not do it either. So I wrote some code to force the check-in.. only problem is that a new version will be written and the 'modified date' and 'modified by' metadata will be overwritten. SPSite mySiteCollection = new SPSite("teamsitelink"); SPWeb web = mySiteCollection.RootWeb; SPListCollection lists = web.Lists; foreach (SPList list in lists) { if (list.Title == "Document Library") { SPListItemCollection docLibItems = list.Items; foreach (SPListItem docLibItem in docLibItems) { if (docLibItem.File.CheckOutStatus == SPFile.SPCheckOutStatus.LongTerm) { Console.WriteLine(docLibItem.File.Name.ToString()); try { docLibItem.File.CheckIn(""); } catch (Exception error) { Console.WriteLine(error.Message.ToString()); } } } } } web.Dispose(); mySiteCollection.Dispose(); Let me know if this blog post helps you. Thanks Kyle Caulfield
Free Windows Admin Tool Kit Click here and download it now
June 14th, 2010 11:00pm

Hi, Please provide a lttle more infor about the doc lib... Versioning, Approval, if usi8ng versions how can view the versions, require checkout to edit etc, any required metadata? Cheers, -IvanIvan Sanders My LinkedIn Profile, My Blog, @iasanders.
June 15th, 2010 9:42pm

Hi, Have you tried publishing as a content type to resolve the issue? -IvanIvan Sanders My LinkedIn Profile, My Blog, @iasanders.
Free Windows Admin Tool Kit Click here and download it now
June 25th, 2010 12:11am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics