Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Sharepoint Deployment Error

Posted on 2013-01-29
3
Medium Priority
?
383 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 38

Accepted Solution

by:
Justin Smith earned 2000 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

The vision: A MegaMenu for a SharePoint portal home page The mission: Make it easy to maintain. Allow rich content and sub headers as well as standard links. Factor in frequent changes without involving developers or a lengthy Dev/Test/Prod rel…
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

618 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