Web part error on Project Detail Pages after a 5 database Project Server instance restore from a different environment

 You may encounter web part issues on various Project Detail Pages after a 5 database restore from another environment on Project Server 2010. If you look at the ULS logs you may find the below entries:

Web Part Exception Unique ID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 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)

In various cases it means that during the provisioning of the databases the Project Server Service Application failed to update the value of the PWAURL. Below you can find the steps to check and update the value:

$Web = get-SPWeb http://<servername>/<PWAInstance>

$Web.AllProperties | Format-Table

Check the PWAURL variable. If the returned value is too long and the result is trimmed run the below command:

$Props = $Web.AllProperties

$Props.PWAURL

Check the results. If the result is not the URL of the new instance you can change it using:
 
$Web.AllProperties[“PWAURL”]=”NEW PWAInstance URL

$Web.Update()

Comments (9) -

Codi Bresemann
Codi Bresemann
7/12/2013 1:44:53 AM #

Hmm Well I was just searching on yahoo and just came across your site, mostly I just only visit blogs and retrieve my required info but this time the useful info that you posted in this post urged me to post here and appreciate your diligent work. I just bookmarked your site. Thank you again.

Amada Goliday
Amada Goliday
7/13/2013 4:06:30 AM #

I found some great info in your site and bookmarked to visit again . Thanks.

Tricia Currin
Tricia Currin
7/26/2013 8:38:01 PM #

You have a lot of useful pointers on this site. This is a well written article that I have bookmarked for future reading. Have a fun.

Kasey Jackett
Kasey Jackett
8/5/2013 4:49:53 AM #

Excellent, what a web site it is! This webpage presents helpful information to us, keep it up.

Corene Cropsey
Corene Cropsey
8/19/2013 12:40:27 AM #

A very neat post.

Vanessa Gatchel
Vanessa Gatchel
10/22/2013 11:33:08 PM #

I'm developing a blog site and I was thinking of changing the template.Yours looks pretty decent! You could visit my site and tell me your viewpoint!

Adela Challenger
Adela Challenger
10/22/2013 11:35:46 PM #

Truly great site thank you so much for your time in writing the posts for all of us to learn about.

Loida Denton
Loida Denton
10/23/2013 12:00:23 AM #

good Kharma keeps the wheel turning...

Garth Corron
Garth Corron
10/24/2013 6:30:53 AM #

Regards for this post, I am glad I noticed this website on yahoo.

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

About the author

Hi! I'm Marcell Mikolcsó, SharePoint and Enterprise Administrator, System Architect.

Month List

Page List