ONTAP Discussions

get-NcAggr powershell command returns error

JSerra
1,278 Views

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

 

 

 

 

4 REPLIES 4

tomers
1,239 Views

Which version NetAppPStoolkit are you using?

JSerra
1,236 Views

SDOStorage
696 Views

Same error here, same toolkit. Noted  the same piece of code working in PS 5,  in PS 7.3 got this message.    

SDOStorage
690 Views

few minutes later :  -universal medicine  -ZapiCall  seems to help here as wellClipboard01.jpg 

Public