Wednesday, January 20, 2010

People Search - Modifying the display results - Part 1

This will be a two-part post. I'm nearing the end of my day and want to document this before I sign off for the day.

I've spent a great deal of time trying to modify my People Search display. I kept getting the following error:
System.ArgumentException: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at Microsoft.Office.Server.Search.WebControls.PeopleCoreResultsWebPart.SetSortedRefinementDataOnHiddenObject() at Microsoft.Office.Server.Search.WebControls.PeopleCoreResultsWebPart.SortResultsIntoArrayLists(XmlNodeList resultsList, Hashtable colleagues, Hashtable colleaguesWCollOfColl, UserProfile currentUserProfile) at Microsoft.Office.Server.Search.WebControls.PeopleCoreResultsWebPart

After spending entirely too much time on this I Googled it. And found my answer here. While it's somewhat nice to hear that this is a normal error and that the changes are there all you need to do is publish the page, it's also very scary. You better make sure you have a backup copy of your XSL. I was able to "Check-In" my results in draft form before publishing for the world to see, so this was better than having to completely "Publish" without testing at all.

Check back tomorrow for Part-2 as I continue my quest to modify my People Search results.

No comments:

Post a Comment