Cannot convert 'System.Object[]' to the type 'Microsoft.Office.Server.Search.Cmdlet.SearchServiceApplicationPipeBind'

21/03/2012 14:10

Cannot convert 'System.Object[]' to the type 'Microsoft.Office.Server.Search.Cmdlet.SearchServiceApplicationPipeBind'

 

Get-SPEnterpriseSearchMetadataManagedProperty -SearchApplication $searchapp

I had stored object collection instead of one object to the variable $searchapp in parameter. I didn't realized I have two service application instead of one.