ONTAP Discussions
ONTAP Discussions
This is what I get when issuing a Get-NcAggr:
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. {"name":"value"}) to deserialize correctly.
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 collection interface (e.g. ICollection, IList) like List<T> that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array.
Path 'cloud_storage.stores', line 122, position 15.
To make thinks interesting:
-This only happens on two A220 Clusters.
-Other commands run ok like Get-VserverAggr
-The same command, issued from the same PC, against two A400 clusters run fine and returns the Aggregate list.
-All systems on the same code version: 9.12.1P2
Solved! See The Solution
few minutes later : -universal medicine -ZapiCall seems to help here as well
Which version NetAppPStoolkit are you using?
The one available at NetApp Support Site - NetApp.ONTAP PowerShell Toolkit - Download 9.13.1
Same error here, same toolkit. Noted the same piece of code working in PS 5, in PS 7.3 got this message.
few minutes later : -universal medicine -ZapiCall seems to help here as well