Dot Net Mafia

Group site for developer blogs dealing with (usually) Ionic, .NET, SharePoint, Office 365, Mobile Development, and other Microsoft products, as well as some discussion of general programming related concepts.

This Blog



Corey Roth [MVP]

A SharePoint MVP bringing you the latest time saving tips for Ionic, SharePoint, and Office 365.

November 2007 - Posts

  • Enterprise Search Error

    The other day, I was tweaking the display of my CoreResultsWebPart and after I made some changes and redeployed my search feature, when I executed a search, I got the following error.

    Your search cannot be completed because of a service error. Try your search again or contact your administrator for more information.

    This error can actually be caused by a number of things, luckily this time it was pretty simple. If you are lucky you cap examine the application log and there might be something of value. In my case there actually was.

    Application Server Administration job failed for service instance Microsoft.Office.Server.Search.Administration.SearchServiceInstance (31ed8895-7b7c-4b29-8487-41361f1edca6). Reason: An item with the same key has already been added. Techinal Support Details: System.ArgumentException: An item with the same key has already been added. at Microsoft.Office.Server.Search.Administration.SearchServiceInstance.SynchronizeDefaultContentSource(IDictionary applications) at Microsoft.Office.Server.Search.Administration.SearchServiceInstance.Synchronize() at Microsoft.Office.Server.Administration.ApplicationServerJob.ProvisionLocalSharedServiceInstances(Boolean isAdministrationServiceJob)

    It turns out while I was adding new columns to my SelectColumns property, I had accidently added the one column twice to the XML. So the moral of the story, be sure you dont add the same column twice to this property or CoreResultsWebPart will die.

2018 dotnetmafia.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems