Solved

Sharepoint Deployment Error

Posted on 2013-01-29
3
357 Views
Last Modified: 2013-02-18
I have a Sharepoint 2010 development farm & production farm, both SP1, Standard edition.

I am attempting to deploy from development farm to another a site (production farm) which we have developed.  We created a site collection (in the production farm) which was set to use the custom template / to be defined later which normally works fine.  But we accidentally logged into this site and clicked use the team template.  This site was then deleted.  We are now trying to deploy to a different site within the same web app but getting the following error on deployment

There is already an object with the Id XXXX-xxxxxx.....  in the database from another site collection

I have run the following scripts against this web app:

stsadm -o databaserepair -url "http://XXXXXX" -databasename WSS_Content_XXXXX

and

$db = Get-SPDatabase (AAAa-BBBB-XXXXYYYYY)
$db.Repair($false)
$db.Update()

and

$db = Get-SPDatabase (AAAa-BBBB-XXXXYYYYY)
$db.Repair($True)
$db.Update()

We have also detached the DB too, this has not resolved it either.  Does anyone know how to remove this object from the DB?  or an alternative way of resolving this?

thanks

Glynn
0
Comment
Question by:GlynnSutton
  • 2
3 Comments
 
LVL 38

Accepted Solution

by:
Justin Smith earned 500 total points
ID: 38831648
One possible option is that the site is in the site recycle bin and is causing a conflict.  Another possible option is the Gradual Site Deletion timer job needs to be run manually (From Central Admin - Monitoring - Job Definitions).

http://blogs.msdn.com/b/chaks/archive/2011/06/30/sharepoint-2010-sp1-site-recycle-bin-ui-experience.aspx
0
 

Assisted Solution

by:GlynnSutton
GlynnSutton earned 0 total points
ID: 38884343
Achilles comment is correct but I also had to run a script first

Remove-SPdeletedsite –identity <path or SiteID>
0
 

Author Closing Comment

by:GlynnSutton
ID: 38900863
worked well, thanks
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have just recently built a new SharePoint 2007 farm on a complete Windows 2008 R2 server platform and part of my standard build procedure is to implement a warm up routine, usually in the form of a script that is scheduled every morning to launch …
Pimping Sharepoint 2007 without Server-Side Code Part 1 One of my biggest frustrations with Sharepoint 2007 in the corporate world is that while good-intentioned managers lock down the more interesting capabilities of Sharepoint programming in…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question