Let's say you go to provision a Project Web App via managed service applications, project server server application, and it fails. There is a chance that the particular site you are trying to provision is orphaned within the Project Server Service Application.
this occurs after the Site collection that held the PWA site is deleted before it is unprovisioned. And sometimes it occurs even if the PWA site is unprovisioned and then deleted.
The advice listed by Alexander on this technet forum, works
PS C:\Users\sp_farm>Get-SPServiceApplication
mark out the GUID for the project service application
PS C:\Users\sp_farm>$psi = get-spserviceapplication | ? {$_.Id -eq "GUID of the Project Service App from above"}
PS C:\Users\sp_farm> $a = $psi.Sitecollection | where {$_.SiteID -eq "< Guid of the orphaned site, see text below on how to find this>"}
PS C:\Users\sp_farm>
PS C:\Users\sp_farm> $a
PS C:\Users\sp_farm>
PS C:\Users\sp_farm> $a.Delete()
to test this series of commands, after you've ran the above you can perform the following steps, and actually you can perform these steps to get the guid that you need in the above "<Guid>"
From an administrative management console, type
Get-SpServiceApplication
then Mark the GUID for the Project Service App and run
$sa = get-spserviceapplication | ? {$_.Id -eq "GUID of the Service App from above"}
$sa
followed by
$sc = $sa.SiteCollection
$sc
The guid associated with the SiteID is guid that you're after, you can find this a few rows above the name field.
"Details of what each section of the above powershell commands are returning are neatly documented in this technet post by Alex Burton - http://social.technet.microsoft.com/Forums/projectserver/en-US/3c39d249-63a1-41fa-9440-3611e3f3d65c/event-id-7626-cannot-start-queue-url-queue-timesheetq?prof=required"
Notice how, if you run $sc by itself, it will show you all the site collections that the project service application thinks are in place. After you run
$a = $psi.Sitecollection | where {$_.SiteID -eq "< Guid>"}
then
$a.Delete()
when you run $sc, it will contain one less, based on the siteID used in the <Guid> of
$a = $psi.Sitecollection | where {$_.SiteID -eq "< Guid>"}
Video Content
Translate
Subscribe to:
Post Comments (Atom)
Popular Posts
-
When you're migrating sites using export-spweb and import -spweb , you might receive an error message on the import, when reviewing th...
-
Here are a couple ways to copy content around in SharePoint: Backup-SPSite and Restore-SPSite and Export-SPWeb and Import-SPW...
-
Log onto each additional server that you wish to join into the farm Open the ”SharePoint 2010 Management Shell” administratively (righ...
-
Let's say you go to provision a Project Web App via managed service applications, project server server application, and it fails. Ther...
-
Configuring User Profile Synchronization Service Applications for SharePoint 2010 or SharePoint 2013This post assumes you've already installed the SharePoint Binaries (Grey Wizard), and that you are not using the Farm Config Wizard (Wh...
-
If you ever run into a situation where your farm suddenly fails to create the web application on all front end web servers, in other words i...
-
Sorry to be blogurgitating this week. Here's a really good technet site with a load of virtual labs: SharePoint Server 2010 In...
-
When the need to list out the members of an active directory group arises, say management asks, who are the members of this group, and you d...
-
Once a web application has been extended into a zone, the option to choose that zone disappears from the drop down, off the extend web appli...
-
The steps below turn your team site into a team site that is capable of using publishing features and capabilities. But all they really do,...
Thanks it worked.
ReplyDeleteHey, Just wanted to thank you.
ReplyDeleteI've tried everything (scripts) and yours was the one that worked.
I've adjusted it to my environement this was what I did:
# Get-SPServiceApplication
# $psi = Get-SPServiceApplication | ? {$_.Id -eq "d8abe800-8b52-424b-b1a4-0b640055630f"}
# $psi
# $sc = $psi.SiteCollection
# $sc
# really bogus SiteID 0000000-...
# $a = $psi.SiteCollection | where {$_.SiteId -eq "00000000-0000-0000-0000-000000000000"}
# $a.Delete()
# huge difference between Remove and Delete ;) thanks!!!!
# $sc
# This last command returned empty. after this I went in to the Central Admin -> Manage Service Applications,
# Selected the Project Server 2013 Service Application and just deleted it with associated content database
Hugo