Search results not showing - Invalid Request

Hi,

I have a publishing site, which has a custom Master page. The custom master page is set for the results.aspx page as well.

When an item is searched, the results.aspx page is shown, but the results are not displayed.

Example: http://SiteName/search/Pages/results.aspx?k=test

There are no javascript erros in the console of IE developer window. Crawling is completed.

The below errors are shown in SharePoint Logs:

Exception occured in scope 

Microsoft.Office.Server.Search.Query.SearchExecutor.ExecuteQueries. 

Exception=Microsoft.SharePoint.Client.InvalidClientQueryException:      Invalid request.  
  
 at Microsoft.SharePoint.Client.DataConverter.GetObject[T](XmlNode node, ProxyContext proxyContext)    
 at Microsoft.SharePoint.Client.DataConverter.GetObjectArray[T](XmlNode node, ProxyContext proxyContext)    
 at Microsoft.Office.Server.Search.Query.SearchExecutorServerStub.ExecuteQueries_MethodProxy(SearchExecutor target, XmlNodeList xmlargs, ProxyContext proxyContext)    
 at Microsoft.Office.Server.Search.Query.SearchExecutorServerStub.InvokeMethod(Object target, String methodName, XmlNodeList xmlargs, ProxyContext proxyContext, Boolean& isVoid)    
 at Microsoft.SharePoint.Client.ServerStub.InvokeMethodWithMonitoredScope(Object target, String methodName, XmlNodeList args, ProxyContext proxyContext, Boolean& isVoid)
Original error: Microsoft.SharePoint.Client.InvalidClientQueryException: Invalid request.    
 at Microsoft.SharePoint.Client.DataConverter.GetObject[T](XmlNode node, ProxyContext proxyContext)    
 at Microsoft.SharePoint.Client.DataConverter.GetObjectArray[T](XmlNode node, ProxyContext proxyContext)    
 at Microsoft.Office.Server.Search.Query.SearchExecutorServerStub.ExecuteQueries_MethodProxy(SearchExecutor target, XmlNodeList xmlargs, ProxyContext proxyContext)    
 at Microsoft.Office.Server.Search.Query.SearchExecutorServerStub.InvokeMethod(Object target, String methodName, XmlNodeList xmlargs, ProxyContext proxyContext, Boolean& isVoid)    
 at Microsoft.SharePoint.Client.ServerStub.InvokeMethodWithMonitoredScope(Object target, String methodName, XmlNodeList args, ProxyContext proxyContext, Boolean& isVoid)


Got exception 'Microsoft.SharePoint.Client.InvalidClientQueryException: Invalid request.    
 at Microsoft.SharePoint.Client.DataConverter.GetObject[T](XmlNode node, ProxyContext proxyContext)    
 at Microsoft.SharePoint.Client.DataConverter.GetObjectArray[T](XmlNode node, ProxyContext proxyContext)    
 at Microsoft.Office.Server.Search.Query.SearchExecutorServerStub.ExecuteQueries_MethodProxy(SearchExecutor target, XmlNodeList xmlargs, ProxyContext proxyContext)    
 at Microsoft.Office.Server.Search.Query.SearchExecutorServerStub.InvokeMethod(Object target, String methodName, XmlNodeList xmlargs, ProxyContext proxyContext, Boolean& isVoid)    
 at Microsoft.SharePoint.Client.ServerStub.InvokeMethodWithMonitoredScope(Object target, String methodName, XmlNodeList args, ProxyContext proxyContext, Boolean& isVoid)    
 at Microsoft.SharePoint.Client.ClientMethodsProcessor.InvokeMethod(Object obj, String methodName, XmlNodeList xmlargs, Boolean& isVoid)    
 at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessMethod(XmlElement xe)    
 at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessOne(XmlElement xe)    
 at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessStatements(XmlNode xe)    
 at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessExceptionHandlingScope(XmlElement xe)' when executing '<ExceptionHandlingScope Id="26" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><TryScope Id="28"><Method Name="ExecuteQueries" Id="30" ObjectPathId="24"><Parameters><Parameter Type="Array"><Object Type="String">1f9d22c1-a388-4ab6-8036-325ed154b131Default</Object></Parameter><Parameter Type="Array"><Object Type="Dictionary"><Property Name="$R_0" Type="Null" /><Property Name="$2P_0" Type="Boolean">false</Property></Object></Parameter><Parameter Type="Boolean">true</Parameter></Parameters></Method></TryScope><CatchScope Id="32" /></ExceptionHandlingScope>'.

How to fix this?

Thanks

August 25th, 2015 10:55am

Hi,

As I understand, the results are not showing when searching in SharePoint 2013.

You could check if there is error in the master page.

You also could reset the index and do a full crawl in search service application to check if it can work.

There are similar cases:

https://social.technet.microsoft.com/Forums/office/en-US/00e0c38f-43ce-4b4b-ad4e-4cdb2399d350/search-results-are-not-showing-invalid-request?forum=sharepointsearch

https://social.msdn.microsoft.com/Forums/sqlserver/en-US/68748402-84f2-4e01-8f7c-8abb8e875788/content-search-web-part-result-preview-says-invalid-request?forum=sharepointsearch

Best regards,

Sara Fan

Free Windows Admin Tool Kit Click here and download it now
August 26th, 2015 2:21am

Hi Sara,

Thanks for the reply.

Could you please explain more on - "You could check if there is error in the master page".

What should be checked?

In one of the posts which you have given

https://social.msdn.microsoft.com/Forums/sqlserver/en-US/68748402-84f2-4e01-8f7c-8abb8e875788/content-search-web-part-result-preview-says-invalid-request?forum=sharepointsearch

, a user has said that they have used the below block of code to fix this issue:

var scriptbase = _spPageContextInfo.webAbsoluteUrl + "/_layouts/15/";
    $.getScript(scriptbase + "SP.Runtime.js",
        function () {
            $.getScript(scriptbase + "SP.js", function () {
            });
            $.getScript(scriptbase + "SP.init.js", function () {
            });

        });

Should this be added in the custom master page?

Thanks

Thanks



  • Edited by Venkatzeus Wednesday, August 26, 2015 10:37 AM
August 26th, 2015 10:19am

Hi,

You could change to the default master page to check if the same issue will occur.

About the code, you could add code to the page and check if it can work.

Best regards,

Sara Fan

Free Windows Admin Tool Kit Click here and download it now
September 3rd, 2015 8:23am

Hi,

Thanks for the reply.

Tried adding a script editor and adding the code in the results.aspx page. Also added that in master page. Still no luck. Getting the same error.

Thanks

September 4th, 2015 9:42am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics