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.

Welcome!

Welcome to my Blog. I have a very unique role at our company when it comes to SharePoint. I am not a Power End-User. I am not a "developer". I am not a "server guy". So what am I? I'm a little bit of all three roles, rolled into one.

So what is the purpose of my blog. Almost daily I come across issues that others are also experiencing. Sometimes Google is my best friend and gives me all of the information I need to solve the problem. Other times, a it requires a combination of things to fix the problem.

I've also come across unique things that I would just like to post somewhere for my own reference later, and to save someone else time and headaches.

Soooo, stay tuned. We'll see how far I go with this.