ONTAP Rest API Discussions

return_unmatched_nested_array_objects error in Query after upgrading to PSTK 9.14

JimRobertson
1,336 Views

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).  OnTap version is 9.12.1P10.  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 


It does work if I add -ONTAPI to the end of the command, but, from my understanding, that means it's reverting to ZAPI, and so will not work in future versions of OnTap, correct?

1 REPLY 1

WAFLHERDER
121 Views

Hi Jim,

For what it's worth I just encountered the same problem. I'm developing a PowerShell script to verify LACP/ifgrp configurations. When this command(-let) executes:

Get-NcNetDeviceDiscovery -Query @{ Protocol = 'CDP' ; Node = $lag.Node ; Port = $port }

It results in this error:

[400]: Field "return_unmatched_nested_array_objects" was specified twice (to "false" and "false").

 

On the command line the "hack" of adding "-ontap" works, but I'm not sure why or what the consequences might be.

I couldn't figure out how to add the "ontap" argument within my script :-(.

This is with PowerShell Toolkit 9.13 accessing a 9.12 ONTAP system.

 

Cheers,

Robb.

 

Public