<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: return_unmatched_nested_array_objects error in Query after upgrading to PSTK 9.14 in ONTAP Rest API Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/return-unmatched-nested-array-objects-error-in-Query-after-upgrading-to-PSTK-9/m-p/455185#M699</link>
    <description>&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;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:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Get-NcNetDeviceDiscovery -Query @{ Protocol = 'CDP' ; Node = $lag.Node ; Port = $port }&lt;/LI-CODE&gt;&lt;P&gt;It results in this error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[400]: Field "return_unmatched_nested_array_objects" was specified twice (to "false" and "false").&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the command line the "hack" of adding "-ontap" works, but I'm not sure why or what the consequences might be.&lt;/P&gt;&lt;P&gt;I couldn't figure out how to add the "ontap" argument within my script :-(.&lt;/P&gt;&lt;P&gt;This is with PowerShell Toolkit 9.13 accessing a 9.12 ONTAP system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Robb.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2024 08:40:01 GMT</pubDate>
    <dc:creator>WAFLHERDER</dc:creator>
    <dc:date>2024-09-17T08:40:01Z</dc:date>
    <item>
      <title>return_unmatched_nested_array_objects error in Query after upgrading to PSTK 9.14</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/return-unmatched-nested-array-objects-error-in-Query-after-upgrading-to-PSTK-9/m-p/451629#M665</link>
      <description>&lt;P&gt;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).&amp;nbsp; OnTap version is 9.12.1P10.&amp;nbsp; 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.&lt;/P&gt;&lt;P&gt;Does anyone know why I'm getting this error and how I can fix it?&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Query with PSTK 9.8:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;PS C:\&amp;gt; Get-NcNetDeviceDiscovery -Query @{Node="cluster01-01";Port="e0M"}

DiscoveredDevice             Node                         Interface  Port   Platform             Capabilities        
----------------             ----                         ---------  ----   --------             ------------        
switchname...                cluster01-01                  Gi1/0/3    e0M                         {router, trans_br...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Query with PSTK 9.14.1.2401:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;PS C:\&amp;gt; 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 &lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;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?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 18:13:41 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/return-unmatched-nested-array-objects-error-in-Query-after-upgrading-to-PSTK-9/m-p/451629#M665</guid>
      <dc:creator>JimRobertson</dc:creator>
      <dc:date>2024-03-27T18:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: return_unmatched_nested_array_objects error in Query after upgrading to PSTK 9.14</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/return-unmatched-nested-array-objects-error-in-Query-after-upgrading-to-PSTK-9/m-p/455185#M699</link>
      <description>&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;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:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Get-NcNetDeviceDiscovery -Query @{ Protocol = 'CDP' ; Node = $lag.Node ; Port = $port }&lt;/LI-CODE&gt;&lt;P&gt;It results in this error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[400]: Field "return_unmatched_nested_array_objects" was specified twice (to "false" and "false").&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the command line the "hack" of adding "-ontap" works, but I'm not sure why or what the consequences might be.&lt;/P&gt;&lt;P&gt;I couldn't figure out how to add the "ontap" argument within my script :-(.&lt;/P&gt;&lt;P&gt;This is with PowerShell Toolkit 9.13 accessing a 9.12 ONTAP system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Robb.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 08:40:01 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/return-unmatched-nested-array-objects-error-in-Query-after-upgrading-to-PSTK-9/m-p/455185#M699</guid>
      <dc:creator>WAFLHERDER</dc:creator>
      <dc:date>2024-09-17T08:40:01Z</dc:date>
    </item>
  </channel>
</rss>

