Project Server – Remove Orphaned Project Web App Site


Situation

You delete a web application that contains a provisioned Project Web App Site without deleting the PWA Site first.

Result

You end up with an orphaned PWA Site

Resolution

This is a two step resolution.

Step 1 – Remove Orphaned Project Web App Site

(Source) http://social.technet.microsoft.com/Forums/en-US/projserv2010setup/thread/b26dadd1-95a6-451b-ab7f-536418108cec

$serviceapp = get-spserviceapplication | ? {$_.TypeName –like “*Project*”}
$pwainstances = $serviceapp.Sitecollection 
$pwainstances | ft name, id

note the id from the above output and use it in the next command


$toberemoved = $pwainstances | ? {$_.Id –eq “a1a29814-983e-4cad-a730-9a80d40737f7”} 
$toberemoved
$toberemoved.Delete()

 Step 2 – Remove Timer Jobs with errors

(Source) http://social.technet.microsoft.com/Forums/en-US/sharepoint2010setup/thread/9410aa16-d3b8-41b3-ad7d-197a40999837/

You will also find the following errors:

There was an exception loading job definition “Microsoft.Office.Project.Server.Administration.ServerScheduledTimerJob” (id “3ed31585-a654-4453-9bd6-3b07d5ca9b6a”). Object reference not set to an instance of an object.

There was an exception loading job definition “Microsoft.Office.Project.Server.Administration.ServerScheduledTimerJob” (id “537502b2-6ea7-4846-958d-efa954e434d8”). Object reference not set to an instance of an object.

Get the timer jobs that are causing this error

get-sptimerjob | where-object {$_.schedule -like "PWA*"} | format-list name,description, id

PWASSP_c04f25b8-ce9c-41dc-a243-c029d2b38f77_WorkflowCleanupJob_
537502b2-6ea7-4846-958d-efa954e434d8

PWASSP_c04f25b8-ce9c-41dc-a243-c029d2b38f77_ApplyResourceCapacityTimeRangeJob_
3ed31585-a654-4453-9bd6-3b07d5ca9b6a

Note the ID of the jobs and use them in the next step:

$job = Get-SPTimerJob 537502b2-6ea7-4846-958d-efa954e434d8
$job.delete()
$job = Get-SPTimerJob 3ed31585-a654-4453-9bd6-3b07d5ca9b6a
$job.delete()

– Nilesh Kelkar

Advertisements

One thought on “Project Server – Remove Orphaned Project Web App Site

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s