ONTAP Discussions

get-NcAggr powershell command returns error

JSerra
3,633 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

 

 

 

 

1 ACCEPTED SOLUTION

SDOStorage
3,045 Views

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

View solution in original post

4 REPLIES 4

tomers
3,592 Views

Which version NetAppPStoolkit are you using?

JSerra
3,589 Views

SDOStorage
3,049 Views

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

SDOStorage
3,046 Views

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

Public