SharePoint24x7 It's all about SharePoint.

6Sep/111

Fix it – SharePoint Server Search doesn’t crawl/ index Project Server 2010 PWA content.

Posted by Joy

I have been working with Element K team on supporting their new Microsoft Project Server 2010 – Project Web Access course development. They have setup a new Project Server 2010 server with PWA and have been facing issues with Search using PWA portal. In simple, they were getting no records found response when they search for an item which is already available in their portal.

I have been asked to support them and volunteered for the same.

  • First things first. I went and logged into SharePoint Central Administration website and checked "Services on this server" page and found out that SharePoint Server Search is not running. I navigated to "Manage service applications" page and created a new "Search Service Application" and an associated proxy.
  • Configured Crawling and executed a Full Crawl immediately. It indicated 4 successes and 1 error. When I checked the error, it stated that "http://[servername]/PWA - The SharePoint item being crawled returned an error when attempting to download the item." I didn't understand what was it and did some searching and found out a very nice helpful blog post - http://blogs.msdn.com/b/maulikr/archive/2011/06/15/project-server-2010-how-to-configure-search-for-pwa-sites.aspx.

As per the MSFT blog post, SharePoint Search Service doesn't index PWA content automatically without doing some Registry tweaks. To resolve this we will need to change the registry key value for the "UserAgent" in SharePoint Server. The original value for "UserAgent" key is "Mozilla/4.0 (compatible; MSIE 4.01; Windows NT; MS Search 6.0 Robot)" and we need to change it to "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; MS-RTC LM 8; Tablet PC 2.0)".

  • Open the registry editor by executing regedit in Start -> Run.
  • Navigate to "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\14.0\Search\Global\Gathering Manager" folder and locate the "UserAgent" key. Right-click the "UserAgent" key and modify the value to read as "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; MS-RTC LM 8; Tablet PC 2.0)".
  • Restart the SharePoint Server.
  • Reset the Search Index.
  • Run a Full Crawl again.

Now we should be able to see that PWA content spitted into Search Result page in PWA portal.