Exception while executing a keyword query RRS feed

  • Question

  • HI I have setup a FAST server and a sharepoint server both in same farm. I have created a custom search webpart which is doing a keyword query and displaying the results. Now I have also published my FAST Query SSA and I am using the proxy in another farm (all trust and everything is done and even I'm getting search results in search centre with the proxy ). When I'm using the same webpart there to run the keyword query I'm getting the following exception


    The search request was unable to execute on FAST Search Server.


       at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.ThrowBackwardCompatibleException(FaultException`1 ex)

       at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.DoSpLoadBalancedUriWsOp[T](WebServiceBackedOperation`1 webServiceCall, Int32 timeoutInMilliseconds, Int32 wcfTimeoutInMilliseconds, String operationName)

       at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.DoWebServiceBackedOperation[T](String operationName, Int32 timeoutInMilliseconds, Int32 wcfTimeoutInMilliseconds, WebServiceBackedOperation`1 webServiceCall)

       at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.Execute(QueryProperties properties)

       at Microsoft.Office.Server.Search.Query.Query.Execute()

       at Homepage.browse.Page_Load(Object sender, EventArgs e)


    What is that I'm doing wrong:-

    I have been trying to fix this since entire day . Please any FAST expert help me out resolving this issue as this is a real critical application for my client and they want it done by tomorrow.

    Please find the code also:-


     using (KeywordQuery query = new KeywordQuery(proxy))
         query.ResultsProvider = Microsoft.Office.Server.Search.Query.SearchProvider.Default;
         query.QueryText = querytext;
         query.Refiners = "bbcategories";
         query.SortList.Add("infotype", Microsoft.Office.Server.Search.Query.SortDirection.Descending);
         query.SortList.Add("bctitle", Microsoft.Office.Server.Search.Query.SortDirection.Ascending);
         query.ResultTypes = ResultType.RelevantResults | ResultType.RefinementResults;
         query.RowLimit = 10000;
         ResultTableCollection resultTables = query.Execute();
         ResultTable results = resultTables[ResultType.RelevantResults];
         ResultTable refinements = resultTables[ResultType.RefinementResults];
         DataTable dt = new DataTable();
         DataTable dtr = new DataTable();





    • Edited by Resolutes Tuesday, July 19, 2011 3:37 PM forgot something
    Tuesday, July 19, 2011 2:24 PM

All replies

  • Hi Resolutes,

    Do you have the inner exception which ThrowBackwardCompatibleException re-throws? This will tell what the actual error is. This would probably be in the ULS logs.

    Also, if you set the ResultsProvider to FASTSearch, instead of Default, does that make a difference? Are you running with SP1? If not, try to write all your properties in lowercase (bctitle, browseurl, comments, infotype).

    Mikael Svenson 

    Search Enthusiast - SharePoint MVP/WCF4/ASP.Net4
    Tuesday, July 19, 2011 5:42 PM
  • Hi Resolutes,

    i had a very similiar problem, which i solved with "query.TrimDuplicates = false;".


    Momme Kuesel

    Tuesday, February 12, 2013 9:12 AM
  • I guess it is because of RawLimit... I had similar exception that the maximum is 500
    Monday, February 16, 2015 12:44 AM