How to start Search service application in Sharepoint 2010 using powershell? Having problem while doing so.

kean86
kean86 used Ask the Experts™
on
I was getting following errors when i was trying to start search service application in sharepoint server 2010 using powershell.

1) Setting up Enterprise Search...

Cannot convert value "System.Object[]" to type "System.Xml.XmlDocument". Error: "Data at the root level is invalid. Line 42, position 1."At line:4 char:17 +     [xml]$config <<<<  = (Get-Content $settingsFile) -replace( "localhost", $env:computername )   + CategoryInfo : MetadataError: (:) [], ArgumentTransformationMetadataException  + FullyQualifiedErrorId : RuntimeException

 - Setting default index location on search service...

Get-SPEnterpriseSearchCrawlTopology : Cannot convert 'System.Object[]' to the t
ype 'Microsoft.Office.Server.Search.Cmdlet.SearchServiceApplicationPipeBind' re
quired by parameter 'SearchApplication'. Specified method is not supported.

At line:55 char:80 +  $crawlTopology = Get-SPEnterpriseSearchCrawlTopology -SearchApplicati
on <<<<  $searchApp | where {$_.CrawlComponents.Count -gt 0 -or $_.State -eq "I
nactive"}+ CategoryInfo : InvalidArgument: (:) [Get-SPEnterpriseSearchCraw
   lTopology], ParameterBindingException + FullyQualifiedErrorId : CannotConvertArgument,Microsoft.Office.Server.Search.Cmdlet.GetSearchCrawlTopology

- Creating new crawl topology...

Get-SPEnterpriseSearchQueryTopology : Cannot convert 'System.Object[]' to the t
ype 'Microsoft.Office.Server.Search.Cmdlet.SearchServiceApplicationPipeBind' re
quired by parameter 'SearchApplication'. Specified method is not supported.

At line:72 char:80 +  $queryTopology = Get-SPEnterpriseSearchQueryTopology -SearchApplication <<<<  $searchApp | where {$_.QueryComponents.Count -gt 0 -or $_.State -eq "Inactive"} + CategoryInfo : InvalidArgument: (:) [Get-SPEnterpriseSearchQueryTopology], ParameterBindingException+ FullyQualifiedErrorId : CannotConvertArgument,Microsoft.Office.Server.Search.Cmdlet.GetSearchQueryTopology

- Creating new query topology...

New-SPEnterpriseSearchQueryTopology : Partitions parameter is not specified.
At line:75 char:78+$queryTopology = $searchApp | New-SPEnterpriseSearchQueryTopology
 <<<<  -Partitions $appConfig.Partitions+CategoryInfo: InvalidData: (Microsoft.Offic...chQueryTopology: NewSearchQueryTopology) [New-SPEnterpriseSearchQueryTopology], InvalidOperationException+FullyQualifiedErrorId : Microsoft.Office.Server.Search.Cmdlet.NewSearchQueryTopology

New-SPEnterpriseSearchQueryTopology : Partitions parameter is not specified.
At line:75 char:78+$queryTopology = $searchApp | New-SPEnterpriseSearchQueryTopology
 <<<<  -Partitions $appConfig.Partitions+ CategoryInfo: InvalidData: (Microsoft.Offic...chQueryTopology: NewSearchQueryTopology) [New-SPEnterpriseSearchQueryTopology], InvalidOperationException+ FullyQualifiedErrorId : Microsoft.Office.Server.Search.Cmdlet.NewSearchQueryTopology

 - Creating enterprise search service application proxy...

Exception calling "Parse" with "1" argument(s): "String was not recognized as a
 valid Boolean.
"At line:159 char:153+$proxy = New-SPEnterpriseSearchServiceApplicationProxy -Name $appConfig.Proxy.Name -SearchApplication $searchApp -Partitioned:([bool]::Parse <<<< ($appConfig.Proxy.Partitioned))
+ CategoryInfo: NotSpecified: (:) [], MethodInvocationException+ FullyQualifiedErrorId : DotNetMethodExceptionProperty 'Status' cannot be found on this object; make sure it exists and is settable.At line:164 char:20+$proxy. <<<< Status = "Online"+ CategoryInfo: InvalidOperation: (Status:String) [], RuntimeException+ FullyQualifiedErrorId : PropertyNotFound
You cannot call a method on a null-valued expression.At line:165 char:26+$proxy.Update <<<< ()+ CategoryInfo: InvalidOperation: (Update:String) [], RuntimeException+ FullyQualifiedErrorId : InvokeMethodOnNull

 - Adding "" to ""Add-SPServiceApplicationProxyGroupMember : Cannot validate argument on parameter 'Member'. The argument is null. Supply a non-null argument and try the command again.
At line:38 char:71+ $pg | Add-SPServiceApplicationProxyGroupMember -Member <<<<
$proxy+ CategoryInfo: InvalidData: (:) [Add-SPServiceApplicationProxyGroupMember], ParameterBindingValidationException+ FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.SharePoint.PowerShell.SPCmdletAddServiceApplicationProxyGroupMember

 
Get-SPEnterpriseSearchCrawlContentSource : The search service is not able to co
nnect to the machine that hosts the administration component. Verify that the a
dministration component '7e5dd8f6-3b1f-4329-8a4f-2bb9ae1a5c5f' in search applic
ation 'NationalSCSearch' is in a good state and try again.

At line:177 char:88+Get-SPEnterpriseSearchServiceApplication | Get-SPEnterpriseSearchCrawlContentSource <<<<  | Set-SPEnterpriseSearchCrawlContentSource -StartAddresses $CrawlStartAddresses+ CategoryInfo: InvalidData:(Microsoft.Offic...wlContentSource:GetSearchCrawlContentSource) [Get-SPEnterpriseSearchCrawlContentSource], InvalidOperationException+FullyQualifiedErrorId : Microsoft.Office.Server.Search.Cmdlet.GetSearchCrawlContentSource

Get-SPEnterpriseSearchCrawlContentSource : The search service is not able to co
nnect to the machine that hosts the administration component. Verify that the a
dministration component '800cc54c-4475-46fc-8021-c8c0ac02e855' in search applic
ation 'NationalSCSearch1' is in a good state and try again.

At line:177 char:88+ Get-SPEnterpriseSearchServiceApplication | Get-SPEnterpriseSearchCrawlContentSource <<<<  | Set-SPEnterpriseSearchCrawlContentSource -StartAddresses $CrawlStartAddresses+CategoryInfo:InvalidData: (Microsoft.Offic...wlContentSource:
   GetSearchCrawlContentSource) [Get-SPEnterpriseSearchCrawlContentSource], InvalidOperationException+ FullyQualifiedErrorId : Microsoft.Office.Server.Search.Cmdlet.GetSearchCrawlContentSource

Any help is greatly appreciated.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
http://stsadm.blogspot.com/2009/12/creating-sharepoint-2010-enterprise.html

Please have a look at the above link. I guess it helps you
Commented:
I have looked into this blog and tried that script given in the blog but was getting syntax errors.
Is the errors different from the one mentioned above ? or is it same ? , did you run the script using Admin privileages ?

One more;  syntax errors can be because of copy and paste , this might lead to additional charaters or extra stuff please check.  If the error is different please update us with the error.

Author

Commented:
solved

Author

Commented:
solved

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial