ONTAP Discussions

get-NcAggr powershell command returns error

JSerra
2,297 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
1,709 Views

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

View solution in original post

4 REPLIES 4

tomers
2,256 Views

Which version NetAppPStoolkit are you using?

JSerra
2,253 Views

SDOStorage
1,713 Views

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

SDOStorage
1,710 Views

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

Public