Friday, September 5, 2014

After Project Server migration from one farm to another, you receive an error "This Web Part was unable to load”

Issue
Description

I had done a migration of Project Server environment from
one farm to another. (Database detach-attach).And some of the users had the
below issue when trying to access the (Project Details Pages) PDP
pages.

This Web Part was unable to load.

Information that may be useful in solving
this problem was written to the Unified Logging Service (ULS) log on the
Project Server with the following ID:

18c06eca-de62-4544-b11a-c3440ada01e9

This problem can occur in other ways also, such as:

1) You cannot create or edit projects in PWA.

2) You cannot open Project Details Pages in Server
Settings.

I checked the ULS logs with the error id and was able to
fix this issue.

Cause

The PWAURL property is set to a PWA site, but none
identified yet.This should be null.

Resolution

Open SharePoint PowerShell and run the below commands:

$Web = get-SPWeb http://servername/pwa

$Web.AllProperties | Format-Table

The output of the second command will show if PWAURL was
set to a URL (not expected) – if so then you can change this back to NULL again
using PowerShell

Web
Part Exception Unique ID: 18c04eca-de79-4585-b92a-c3960ada01e9
System.NullReferenceException: Object reference not set to an instance of an
object. at
Microsoft.Office.Project.PWA.WebParts.ProjectFieldPartBase.GatherAndLoadCFList(Boolean
bForceRefresh) at
Microsoft.Office.Project.PWA.WebParts.ProjectFieldPartBase.RebindGrid(Boolean
forceRefresh) at
Microsoft.Office.Project.PWA.WebParts.ProjectFieldPartBase.PWA_OnLoad(EventArgs
e) at Microsoft.Office.Project.PWA.WebParts.PWAResiliencyPart.OnLoad(EventArgs
e) 611d75ae-a62e-46c4-b3a9-b9311f4dc02a