File already exists
One of our users had a file checked out but didn't need it anymore so deleted it. Fair enough, no problems with that. Another user has subsequently attempted to upload replacement for this file with the same name. Sharepoint throws up an error telling him that "The specified name is already in use." We've double checked and there definately isn't a file of that name, it's definately deleted! We've had to upload it with a different name for the moment but (for reasons that would be too long winded to explain) we need it to have the filename of the file that was previously deleted. I know it's bad to edit the underlying SQL tables but I thought I'd go have a look in the dbo.AllDocs table to see if the file is represented there at all. There is a record for the original file that was deleted. Does sharepoint always keep a record of stuff even if it is deleted or should this row have been removed from the database when the file was deleted? Does anyone have any suggests as to why we can't reuse the name of a deleted file. It's very frustrating and somewhat confusing!! thanks Dave
July 26th, 2011 12:35pm

Please review the Recycle Bin of your SharePoint. Refer this article on more details: http://office.microsoft.com/en-us/windows-sharepoint-services-help/view-restore-or-delete-items-in-the-recycle-bin-of-a-sharepoint-site-HA010021434.aspx Thanks & Regards, Kamlesh | Blog | Twitter | Posting is provided "AS IS" with no warranties, and confers no rights.
Free Windows Admin Tool Kit Click here and download it now
July 26th, 2011 1:14pm

You need to delete it from recycle bin of your site as well as your site collection. Also what version of sharepoint you are using and what it your patch level?
July 26th, 2011 3:11pm

Hi, From your narration, one user had checked out a document and deleted it. Another user tried to upload a document whose name is the same as the old one’s. It prompted “The specified name is already in use”. I suggest that you check “Add as a new version to existing files” option when you upload the new document with the same name. then check the effect. Thanks, Rock Wang Forum Support Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.Regards, Rock Wang Microsoft Online Community Support
Free Windows Admin Tool Kit Click here and download it now
July 27th, 2011 12:19am

Hello We're on Sharepoint 2007 (12.0.0.6548). I should have clarified that we've checked the Site Collection Recycle Bin and the file has been removed from there as well so it's been well and truely deleted :) I just tried to upload the replacement file with "Add as a new version to existing files" checked and got the error (sanitised but you get the idea): The file "http://oursite/documents/GMS-GYME-MA-3004.doc" is checked out or locked for editing by USERNAME Dave
July 27th, 2011 5:55am

Hi, Thanks for your reply. Just want to tell you that we have involved some senior engineers on this issue, and will get back to you as soon as possible. Thanks for your patient. Thanks, Rock Wang Forum Support Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.Regards, Rock Wang Microsoft Online Community Support
Free Windows Admin Tool Kit Click here and download it now
August 5th, 2011 11:51pm

Hello, When you try to delete a file which is checked out it should ideally give you an error stating "The file is currently checked out or locked for editing by another user". And hence the only way to delete should be "discard check-out" / "check-in" and then delete? Was the delete performed this way? When a file is deleted initially only the DeleteTransactionId column is populated with value other than "0x". Could you login to SharePoint with that same user account who checked out this file, click on Site Actions > View Reports > Checked Out To Me and see if that file shows up there? If it does, could you try and deal with that first and see if the error still comes up?Please remember to click 'Mark as Answer' on the post that helps you or click 'Unmark as Answer' if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Nishant Shah Microsoft Online Community Support
August 18th, 2011 8:49am

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

Other recent topics Other recent topics