Sharepoint 2013 无法转换';系统对象[]和#x27;到类型';Microsoft.SharePoint.PowerShell.SPSolutionPipeBind';

Sharepoint 2013 无法转换';系统对象[]和#x27;到类型';Microsoft.SharePoint.PowerShell.SPSolutionPipeBind';,sharepoint-2013,windows-server-2012,Sharepoint 2013,Windows Server 2012,尝试将.wsp部署到SharePoint 2013门户时出现此错误。有人知道吗 Get-SPSolution:无法将“System.Object[]”转换为参数“Identity”所需的类型“Microsoft.SharePoint.PowerShell.SPSolutionPipeBind”。不支持指定的方法。 在C:\360Install\Version 4.1 SP6\Setup\Data\Scripts\SharePoint2010\Common\SIMapping.psm1:229 c

尝试将.wsp部署到SharePoint 2013门户时出现此错误。有人知道吗

Get-SPSolution:无法将“System.Object[]”转换为参数“Identity”所需的类型“Microsoft.SharePoint.PowerShell.SPSolutionPipeBind”。不支持指定的方法。 在C:\360Install\Version 4.1 SP6\Setup\Data\Scripts\SharePoint2010\Common\SIMapping.psm1:229 char:37 +$existingSolution=Get SPSolution$SolutionId-ErrorAction SilentlyContinue + ~~~~~~~~~~~ +CategoryInfo:InvalidArgument:(:)[Get-SPSolution],ParentContainerRorRecordException
+FullyQualifiedErrorId:CannotConvertArgument,Microsoft.SharePoint.PowerShell.SPCmdletGetSolution

此错误通常在向参数提供集合时出现,该参数实际上需要一个对象。为了更好地理解,我提供了以下示例:

$ssa = Get-SPEnterpriseSearchServiceApplication
Get-SPEnterpriseSearchMetadataCrawledProperty  -SearchApplication $ssa -Category 'Business Data' | Where {$_.Name -Match "GetProduct"} | ft Name

上面的示例将抛出与您遇到的相同的错误。现在,在上述情况下,服务器上安装了多个search service应用程序。因此,第一行代码返回一个集合,而不是单个对象。在第二行中,您可以注意到集合被分配给属性搜索应用程序,该应用程序需要一个对象。

我也有同样的困难

当我试图解决搜索爬网,这是在'开始'状态结巴

更进一步,我发现它无法检索拓扑组件健康状态。因此,我尝试使用此方法使用powershell(lol)构建搜索拓扑。这是我的

但是在这一步中:“$newTopology=New SPEnterpriseSearchTopology-SearchApplication$ssa”, 我犯了同样的错误:

New-SPEnterpriseSearchTopology : Cannot convert 'System.Object[]' to the type
'Microsoft.Office.Server.Search.Cmdlet.SearchServiceApplicationPipeBind'
required by parameter 'SearchApplication'. Specified method is not supported.
At line:1 char:66
+ $newTopology = New-SPEnterpriseSearchTopology -SearchApplication $ssa
+                                                                  ~~~~
    + CategoryInfo          : InvalidArgument: (:) [New-SPEnterpriseSearchTopo
   logy], ParameterBindingException
    + FullyQualifiedErrorId : CannotConvertArgument,Microsoft.Office.Server.Se
   arch.Cmdlet.NewSearchTopology

您需要粘贴PowerShell脚本。仅通过错误消息无法找出原因。如果是问题的答案,请在答案中包含您的评论