Forum Discussion

Sharath_Aluri's avatar
Sharath_Aluri
Copper Contributor
Apr 26, 2019

SharePoint Server 2019 Hybrid Search returning empty results in on premises

Hi,

As part of my regular study in SharePoint, i have started configuring search on SharePoint 2019 Platform.

luck didn't allow me till the last step to enjoy the fruit. long story short, I was able to configure On premise Search however when i tried to enhance to scope of the search with hybrid i started receiving various challenges. I was able to fix all of them but the path got disconnected with the below issue.

 

For Setting up the Cloud Search Service Application I've been following the below articles,

https://docs.microsoft.com/en-us/sharepoint/hybrid/configure-cloud-hybrid-searchroadmap

https://www.c-sharpcorner.com/article/configure-cloud-hybrid-search-in-sharepoint-server-2016-and-office-365/

 

"The SharePoint item being crawled returned an error when requesting data from the web service. ( Error from SharePoint site: Unknown exception Client found response content type of '', but expected 'text/xml'. The request failed with the error message: -- Operation is not valid due to the current state of the object. --., CorrelationID: f8eed59e-e04b-0000-3765-8b2fb2d4ce9c; SearchID = 97178188-288F-44F3-94C7-8F00D2A32071 )"

 

 

After a long study over web i found a tool in technet blog to investigate search issues meticulously. 

Here is the link where i had downloaded the tool from.

https://gallery.technet.microsoft.com/SRx-Core-SharePoint-Search-d60113e9

 

I was getting the below exception(s) while running the powershell script as advised by the author in the blog.

********************************************************************************************************

Cloud SSA Detected.  One or more tests may require that you provide valid credentials to query SharePoint Online as an Administrator

The credentials will be encrypted and stored in the Windows Credential Manager.

Since the scheduled tasks were created in a previous SRx session, you will need to re-enter the credentials for that account.

This is typically the Farm Account, but you can verify by opening the Task Scheduler and examine the Security options for the SRx tasks.

Enter the password for the Scheduled Task user when prompted.  Make sure this user has access to the SRx folder tree.

Exception calling "ReadKey" with "1" argument(s): "The method or operation is not implemented."

At C:\Tools\Setups\SignedSRxCore\lib\Scripts\postSRxInitialization.ps1:117 char:21

+ ...               $null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown')

+                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException

    + FullyQualifiedErrorId : NotImplementedException

 

You will be prompted for SharePoint Online credentials in the next step.  Press any key to continue

Start-Process : This command cannot be run due to the error: The user name or password is incorrect.

At C:\Tools\Setups\SignedSRxCore\lib\Scripts\postSRxInitialization.ps1:135 char:29

+ ... $process = (Start-Process PowerShell.exe -ArgumentList "$resolvedCred ...

+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (:) [Start-Process], InvalidOperationException

    + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand

----------------------------------------------------

  Search Health Reports (SRx) 

----------------------------------------------------

*********************************************************************************************************

looking forward to see some resolution for my issue.

Resources