Below is the error l am getting after removing Partition and still failing to create new query component.
System.Management.Automation.ParameterBinding
Cannot convert 'System.Object[]' to the type
t.Office.Server.Search.Cmdlet.IndexPartitionP
equired by parameter 'IndexPartition'. Specif
is not supported. ---> System.NotSupportedEx
pecified method is not supported.
at System.Management.Automation.ParameterB
CoerceTypeAsNeeded(CommandParameterInternal a
tring parameterName, Type toType, ParameterCo
peInformation collectionTypeInfo, Object curr
--- End of inner exception stack trace ---
at System.Management.Automation.ParameterB
CoerceTypeAsNeeded(CommandParameterInternal a
tring parameterName, Type toType, ParameterCo
peInformation collectionTypeInfo, Object curr
at System.Management.Automation.ParameterB
BindParameter(CommandParameterInternal parame
ledCommandParameter parameterMetadata, Parame
Flags flags)
at System.Management.Automation.CmdletPara
rController.BindParameter(CommandParameterInt
ment, MergedCompiledCommandParameter paramete
erBindingFlags flags)
at System.Management.Automation.CmdletPara
rController.BindParameter(UInt32 parameterSet
ParameterInternal argument, MergedCompiledCom
ter parameter, ParameterBindingFlags flags)
at System.Management.Automation.CmdletPara
rController.BindParameters(UInt32 parameterSe
tion
at System.Management.Automation.CmdletPara
rController.BindCommandLineParameters(Collect
ments)
at System.Management.Automation.CommandPro
dCommandLineParameters(CommandParameterIntern
eters)
at System.Management.Automation.CommandPro
pare(CommandParameterInternal[] parameters)
at System.Management.Automation.CommandPro
.DoPrepare(CommandParameterInternal[] paramet
at System.Management.Automation.Internal.P
cessor.Start(Boolean incomingStream)
at System.Management.Automation.Internal.P
cessor.SynchronousExecuteEnumerate(Object inp
ble errorResults, Boolean enumerate)
InvalidArgument: (:) [ForEach-Object], Parame
Exception
CannotConvertArgument,Microsoft.PowerShell.Co
EachObjectCommand
System.Management.Automation.InvocationInfo
{1, 1}
System.Management.Automation.ParameterBinding
Cannot convert 'System.Object[]' to the type
t.Office.Server.Search.Cmdlet.IndexPartitionP
equired by parameter 'IndexPartition'. Specif
is not supported. ---> System.NotSupportedEx
pecified method is not supported.
at System.Management.Automation.ParameterB
CoerceTypeAsNeeded(CommandParameterInternal a
tring parameterName, Type toType, ParameterCo
peInformation collectionTypeInfo, Object curr
--- End of inner exception stack trace ---
at System.Management.Automation.ParameterB
CoerceTypeAsNeeded(CommandParameterInternal a
tring parameterName, Type toType, ParameterCo
peInformation collectionTypeInfo, Object curr
at System.Management.Automation.ParameterB
BindParameter(CommandParameterInternal parame
ledCommandParameter parameterMetadata, Parame
Flags flags)
at System.Management.Automation.CmdletPara
rController.BindParameter(CommandParameterInt
ment, MergedCompiledCommandParameter paramete
erBindingFlags flags)
at System.Management.Automation.CmdletPara
rController.BindParameter(UInt32 parameterSet
ParameterInternal argument, MergedCompiledCom
ter parameter, ParameterBindingFlags flags)
at System.Management.Automation.CmdletPara
rController.BindParameters(UInt32 parameterSe
tion
1 arguments, CommandMetadata commandMeta
at System.Management.Automation.CmdletPara
rController.BindCommandLineParametersNoValida
ction
1 arguments)at System.Management.Automation.CmdletPara
rController.BindCommandLineParameters(Collect
ments)
at System.Management.Automation.CommandPro
dCommandLineParameters(CommandParameterIntern
eters)
at System.Management.Automation.CommandPro
pare(CommandParameterInternal[] parameters)
at System.Management.Automation.CommandPro
.DoPrepare(CommandParameterInternal[] paramet
at System.Management.Automation.Internal.P
cessor.Start(Boolean incomingStream)
at System.Management.Automation.Internal.P
cessor.SynchronousExecuteEnumerate(Object inp
ble errorResults, Boolean enumerate)
InvalidArgument: (:) [ForEach-Object], Parame
Exception
CannotConvertArgument,Microsoft.PowerShell.Co
EachObjectCommand
System.Management.Automation.InvocationInfo
{1, 1}