#return_unmatched_nested_array_objects error in Query after upgrading to PSTK 9.14

1 messages · Page 1 of 1 (latest)

gloomy bone
#

I recently update our NetApp PSTK from 9.8 to 9.14.1.2401, and since the queries in my scripts are failing (see output below from 9.8 and 9.14). Get-NcNetDeviceDiscovery is the only command I use the query with, so I don't know if it's all commands or just that one.

Does anyone know why I'm getting this error and how I can fix it?

Query with PSTK 9.8:
``PS C:> Get-NcNetDeviceDiscovery -Query @{Node="cluster01-01";Port="e0M"}

DiscoveredDevice Node Interface Port Platform Capabilities


switchname... cluster01-01 Gi1/0/3 e0M {router, trans_br...``

Query with PSTK 9.14.1.2401:
``PS C:> Get-NcNetDeviceDiscovery -Query @{Node="cluster02-01";Port="e0M"}
Get-NcNetDeviceDiscovery : [400]: Field "return_unmatched_nested_array_objects" was specified twice (to "false" and "false").
At line:1 char:1

  • Get-NcNetDeviceDiscovery -Query @{Node=" cluster02-01";Port="e0M"}
  •   + CategoryInfo          : InvalidOperation: (:) [Get-NcNetDeviceDiscovery], Exception
      + FullyQualifiedErrorId : 400,DataONTAP.C.PowerShell.SDK.Cmdlets.Net.GetNcNetDeviceDiscovery ``
spare karma
#

If your cluster is on ONTAP 9.10+ REST API calls will be fired. That might explain the difference.
Try adding -ONTAPI at the end of your cmd to use ZAPI if it's still enabled on the cluster.

#

Or simply use Get-NcHelp or Get-NcCommand to check the needed syntax.