Cannot delete an item
After restoring a document from the site collection recycle bin, I have a problem with that document in a document library. It seems something went wrong during the restore.
The document is visible in the document library and is checked out.
However, every action I want to take - as farm admin - with the document (view, check-in, delete, discard check-out, ...) gives me an error message related to the fact that the document is not found. It seems the file is not there although it is visible
in the library.
Of course I checked the security rights and granted me full control on the library just to be sure, but the problem remained.
The end-user has a specific naming convention for these documents and would like me to delete this entry so they can upload a new document with the same name.
Does anyone have an idea how I can get rid of this item?
July 14th, 2010 6:47pm
You may have considered these already but I'll offer them up still: -
1 - Have you tried taking ownership of the document via the Document Library Settings, an option that isn't available via the drop down menu. If this works, you may be able to check it in and subsequently delete it.
2 - Has your colleague tried uploading his new item but checking the Override checkbox?
http://www.final-exodus.net
Free Windows Admin Tool Kit Click here and download it now
July 14th, 2010 7:20pm
1. Yes, if I did not take ownership I could not even see the document in the library. Only the owner seems to be able to see the document (another weird thing about the item as it has no specific security rights)
2. No, I don't think we tried that. I am going to ask to test this.
July 14th, 2010 7:31pm
I've had this happen before. I've also had it happen where I created a list and it wouldn't let me delete the list, both problems I solved the same way.
I wrote a console app to delete it. It should not be too difficult, just find the url of the site, find the name of your list, find the item of your item then:
using(SPSite site = new SPSite("url"))
{
using(SPWeb web = site.OpenWeb())
{
SPList list = web.Lists["name of your doc lib"];
SPListItem item = list.getItemByID("id of item");
item.Delete();
}
}
Kevin
Free Windows Admin Tool Kit Click here and download it now
July 20th, 2010 6:35pm


