"Unable to display this Web Part. To troubleshoot the problem, open this Web
page in a Microsoft SharePoint Foundation-compatible HTML
editor such as Microsoft SharePoint
Designer. If the problem persists, contact your Web server administrator"
if we take look into ULS log we may find below error in ULS
"w3wp.exe (0x02D4) 0x1788 SharePoint Server Search Query dn0c High
CoreResultsDatasourceView: Could not find location with internal name
LocalSearchIndex"
The locationconfigurations property in the search service
application proxy could be blank in the SharePoint
2013.
Resolution
we need to check if locationconfigurations property is null. And to do that we need to take help from PowerShell. We can use below script for the same.
$site = Get-SPSite $Url
$serviceContext = [Microsoft.SharePoint.SPServiceContext]::GetContext($site)
$searchProxy = [Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy]::GetProxy($serviceContext)
$searchProxy.LocationConfigurations
$ssa = Get-SPEnterpriseSearchServiceApplication "Search Service Application"
”$ssa.Status = "Disabled"
$ssa.Update()
$ssa.Provision()
this will actually recreate the Out Of the box location configurations again in the SSA Admin DB.
We can confirm that again running first script and once it got confirmed , users will able to get the search results in SharePoint 2010
No comments:
Post a Comment