Microsoft Virtualization Discussions

NetApp Powershell Toolkit 9.12.1.2302 - Get-NcSnapshot : Object reference not set to an instance of

D_Kloeckner
494 Views

Hello Community,

 

We currently try to update to PSTK  9.12.1.2302. But when you use 

Get-NcSnapshot -volume $volume 

 

You get an exception: Object reference not set to an instance of an object.

 

Same when you use New-NcSnapshot command.

 

Did anyone here get a solution or is PSTK only usable with "-zapi" legacy switch?

 

Regards

Dennis

3 REPLIES 3

benaph
175 Views

Any solution or comment? I have the exact same problem. Thank you!

Ontapforrum
164 Views

I am not sure but looks like it is a very generic error so difficult to pin-point the actual cause. I found one thread while researching this generic error which may be helpful.  You can give it a try.

 

Could you try the suggestion given in the thread below by Stefan.

He is suggesting to increase the global time-out for the commands (Default:60seconds).

 

"On some controllers this timeout is not sufficient. If you issue: $gobal:CurrentNaController.TimeoutMsec=600000 the timeout is increased for the current controller"


https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NaVol-Object-reference-not-set-to-an-instance-of-an-object/m-p/108876

 

Hi,

 

I recently tried your suggestion:

PS C:\Users\########> $global:CurrentNcController

Name                 Address           Vserver              Version
----                 -------           -------              -------
systemname           xxx.xxx.xxx.xxx                        NetApp Release 9.10.1P11: Thu Feb 23 06:55:33 UTC 2023


PS C:\Users\########> $global:CurrentNcController.TimeoutMsec = 600000
PS C:\Users\########> Get-NcSnapshot -Volume vol0_SVM01
Get-NcSnapshot : Object reference not set to an instance of an object.
At line:1 char:1
+ Get-NcSnapshot -Volume vol0_SVM01
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-NcSnapshot], ArgumentException
    + FullyQualifiedErrorId : Object reference not set to an instance of an object.,DataONTAP.C.PowerShell.SDK.Cmdlets.Snapshot.GetNcSnapshot



 

For a ONTAP 9.12.1 System you get the message "WARNING: Record doesn't exist" even if there are Snapshots on the System.

 

 

The issue occurs on systems with low load and with high load equally. Even the model plattform can be varied.

Public