<?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: get-ncaggr is erroring in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-ncaggr-is-erroring/m-p/447393#M6791</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for bringing this issue to our attention.&amp;nbsp;&lt;SPAN&gt;We have acknowledged the issue and will address it in our next release.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Sep 2023 10:12:47 GMT</pubDate>
    <dc:creator>AmmarMhowwala</dc:creator>
    <dc:date>2023-09-01T10:12:47Z</dc:date>
    <item>
      <title>get-ncaggr is erroring</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-ncaggr-is-erroring/m-p/447285#M6790</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wanted to make the developers aware of a situation I am experiencing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am starting to test with PSTK 9.13.1 and OnTAP 9.10.1P12.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;PS E:\&amp;gt; &lt;U&gt;&lt;STRONG&gt;$global:CurrentNcController&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Name Address Vserver Version&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;---- ------- ------- -------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;XXXXXXX 10.24.71.135 NetApp Release 9.10.1P12: Thu Apr 13 00:30:59 UTC 2023&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;PS E:\&amp;gt; &lt;U&gt;&lt;STRONG&gt;get-module&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;ModuleType Version Name ExportedCommands&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;---------- ------- ---- ----------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Manifest 9.13.1.... netapp.ontap {Add-NaAggr, Add-NaCifsShare, Add-NaCredential, Add-NaFpolicyExtension...}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'get-ncaggr' throws an odd error when used with REST:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;PS E:\&amp;gt; &lt;U&gt;&lt;STRONG&gt;get-ncaggr&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;get-ncaggr : Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'DataONTAP.C.Types.Aggr.Store' because the type requires a JSON object (e.g.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;{"name":"value"}) to deserialize correctly.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;collection interface (e.g. ICollection, IList) like List&amp;lt;T&amp;gt; that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;it to deserialize from a JSON array.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Path 'cloud_storage.stores', line 114, position 15.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;At line:1 char:1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;+ get-ncaggr&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;+ ~~~~~~~~~~&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;+ CategoryInfo : NotSpecified: (:) [Get-NcAggr], ArgumentException&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;+ FullyQualifiedErrorId : Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'DataONTAP.C.Types.Aggr.Store' because the type requires a JSON&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;object (e.g. {"name":"value"}) to deserialize correctly.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a col&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;lection interface (e.g. ICollection, IList) like List&amp;lt;T&amp;gt; that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to forc&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;e it to deserialize from a JSON array.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Path 'cloud_storage.stores', line 114, position 15.,DataONTAP.C.PowerShell.SDK.Cmdlets.Aggr.GetNcAggr&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using ONTAPI it works fine&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;PS E:\&amp;gt; &lt;U&gt;&lt;STRONG&gt;get-ncaggr -ontapi&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Name State TotalSize Used Available Disks RaidType RaidSize Volumes&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;---- ----- --------- ---- --------- ----- -------- -------- -------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;adclabnapc02_ssd_a001 online 8.0 TB 0% 8.0 TB 23 raid_dp, normal 24 9&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;adclabnapc02_ssd_a002 online 8.4 TB 0% 8.4 TB 24 raid_dp, normal 24 16&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;adclabnapc02n01_root online 159.9 GB 95% 7.7 GB 10 raid_dp, normal 24 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;adclabnapc02n02_root online 159.9 GB 95% 7.7 GB 10 raid_dp, normal 24 1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 09:45:32 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-ncaggr-is-erroring/m-p/447285#M6790</guid>
      <dc:creator>StevePutre</dc:creator>
      <dc:date>2025-06-04T09:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: get-ncaggr is erroring</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-ncaggr-is-erroring/m-p/447393#M6791</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for bringing this issue to our attention.&amp;nbsp;&lt;SPAN&gt;We have acknowledged the issue and will address it in our next release.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 10:12:47 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-ncaggr-is-erroring/m-p/447393#M6791</guid>
      <dc:creator>AmmarMhowwala</dc:creator>
      <dc:date>2023-09-01T10:12:47Z</dc:date>
    </item>
  </channel>
</rss>

