<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: NetApp Powershell Toolkit 9.12.1.2302 - Get-NcSnapshot : Object reference not set to an instance in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-Powershell-Toolkit-9-12-1-2302-Get-NcSnapshot-Object-reference-not-set-to/m-p/447624#M6795</link>
    <description>&lt;P&gt;Hello, i have also the same problem after upgrade to 9.12.1P5 get-ncsnapshot like before.&amp;nbsp; i use for exemple this command Get-NcSnapshot -Volume *P*&amp;nbsp; to find snapshot on volume with "P" . It doesn't work&amp;nbsp; anymore&lt;/P&gt;&lt;P&gt;Get-Ncvol -Volume '*_P*' -Vserver '!*-mc' |Get-NCSnapshot&lt;BR /&gt;Get-NCSnapshot : Volume parameter neither specified nor set&lt;BR /&gt;Au caractère Ligne:1 : 44&lt;BR /&gt;+ Get-Ncvol -Volume '*_P*' -Vserver '!*-mc' |Get-NCSnapshot&lt;BR /&gt;+ ~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : NotSpecified: (:) [Get-NcSnapshot], ArgumentException&lt;BR /&gt;+ FullyQualifiedErrorId : Volume is empty,DataONTAP.C.PowerShell.SDK.Cmdlets.Snapshot.GetNcSnapshot&lt;/P&gt;</description>
    <pubDate>Thu, 14 Sep 2023 14:23:07 GMT</pubDate>
    <dc:creator>AVEM</dc:creator>
    <dc:date>2023-09-14T14:23:07Z</dc:date>
    <item>
      <title>NetApp Powershell Toolkit 9.12.1.2302 - Get-NcSnapshot : Object reference not set to an instance of</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-Powershell-Toolkit-9-12-1-2302-Get-NcSnapshot-Object-reference-not-set-to/m-p/441743#M6674</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We currently try to update to PSTK&amp;nbsp; 9.12.1.2302. But when you use&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get-NcSnapshot -volume $volume&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You get an exception:&amp;nbsp;Object reference not set to an instance of an object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Same when you use New-NcSnapshot command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did anyone here get a solution or is PSTK only usable with "-zapi" legacy switch?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Dennis&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 09:52:41 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-Powershell-Toolkit-9-12-1-2302-Get-NcSnapshot-Object-reference-not-set-to/m-p/441743#M6674</guid>
      <dc:creator>D_Kloeckner</dc:creator>
      <dc:date>2025-06-04T09:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp Powershell Toolkit 9.12.1.2302 - Get-NcSnapshot : Object reference not set to an instance</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-Powershell-Toolkit-9-12-1-2302-Get-NcSnapshot-Object-reference-not-set-to/m-p/442360#M6680</link>
      <description>&lt;P&gt;Any solution or comment? I have the exact same problem. Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 11 Mar 2023 19:18:13 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-Powershell-Toolkit-9-12-1-2302-Get-NcSnapshot-Object-reference-not-set-to/m-p/442360#M6680</guid>
      <dc:creator>benaph</dc:creator>
      <dc:date>2023-03-11T19:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp Powershell Toolkit 9.12.1.2302 - Get-NcSnapshot : Object reference not set to an instance</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-Powershell-Toolkit-9-12-1-2302-Get-NcSnapshot-Object-reference-not-set-to/m-p/442361#M6681</link>
      <description>&lt;P&gt;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.&amp;nbsp; You can give it a try.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you try the suggestion given in the thread below by Stefan.&lt;/P&gt;&lt;P&gt;He is suggesting to increase the global time-out for the commands (Default:60seconds).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"On some controllers this timeout is not sufficient. If you issue: $gobal:CurrentNaController.TimeoutMsec=600000 the timeout is increased for the current controller"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NaVol-Object-reference-not-set-to-an-instance-of-an-object/m-p/108876" target="_blank"&gt;https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NaVol-Object-reference-not-set-to-an-instance-of-an-object/m-p/108876&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Mar 2023 21:13:48 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-Powershell-Toolkit-9-12-1-2302-Get-NcSnapshot-Object-reference-not-set-to/m-p/442361#M6681</guid>
      <dc:creator>Ontapforrum</dc:creator>
      <dc:date>2023-03-11T21:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp Powershell Toolkit 9.12.1.2302 - Get-NcSnapshot : Object reference not set to an instance</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-Powershell-Toolkit-9-12-1-2302-Get-NcSnapshot-Object-reference-not-set-to/m-p/442590#M6690</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recently tried your suggestion:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;PS C:\Users\########&amp;gt; $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\########&amp;gt; $global:CurrentNcController.TimeoutMsec = 600000
PS C:\Users\########&amp;gt; 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&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a ONTAP 9.12.1 System you get the message "WARNING: Record doesn't exist" even if there are Snapshots on the System.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue occurs on systems with low load and with high load equally. Even the model plattform can be varied.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 06:58:10 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-Powershell-Toolkit-9-12-1-2302-Get-NcSnapshot-Object-reference-not-set-to/m-p/442590#M6690</guid>
      <dc:creator>D_Kloeckner</dc:creator>
      <dc:date>2023-03-20T06:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp Powershell Toolkit 9.12.1.2302 - Get-NcSnapshot : Object reference not set to an instance</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-Powershell-Toolkit-9-12-1-2302-Get-NcSnapshot-Object-reference-not-set-to/m-p/444040#M6747</link>
      <description>&lt;P&gt;I see the same problem with a different command, Get-NcQuotaReport, in a custom volume, qtree, aggregate report after an upgrade from PSTK 9.8 to 9.12.&amp;nbsp; I'm trying to get ready for the end of ONTAPI calls, but it seems not everything is working.&amp;nbsp; &amp;nbsp;The temporary solution for me was found in another topic, which was to do a Connect-NcController with the -ONTAPI switch at the end.&amp;nbsp; &amp;nbsp;Not much of a workaround, but at least it proves I'm not crazy.&amp;nbsp; &amp;nbsp;ONTAP version 9.11.1P4.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 18:56:01 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-Powershell-Toolkit-9-12-1-2302-Get-NcSnapshot-Object-reference-not-set-to/m-p/444040#M6747</guid>
      <dc:creator>sanmonkey</dc:creator>
      <dc:date>2023-05-04T18:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp Powershell Toolkit 9.12.1.2302 - Get-NcSnapshot : Object reference not set to an instance</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-Powershell-Toolkit-9-12-1-2302-Get-NcSnapshot-Object-reference-not-set-to/m-p/447624#M6795</link>
      <description>&lt;P&gt;Hello, i have also the same problem after upgrade to 9.12.1P5 get-ncsnapshot like before.&amp;nbsp; i use for exemple this command Get-NcSnapshot -Volume *P*&amp;nbsp; to find snapshot on volume with "P" . It doesn't work&amp;nbsp; anymore&lt;/P&gt;&lt;P&gt;Get-Ncvol -Volume '*_P*' -Vserver '!*-mc' |Get-NCSnapshot&lt;BR /&gt;Get-NCSnapshot : Volume parameter neither specified nor set&lt;BR /&gt;Au caractère Ligne:1 : 44&lt;BR /&gt;+ Get-Ncvol -Volume '*_P*' -Vserver '!*-mc' |Get-NCSnapshot&lt;BR /&gt;+ ~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : NotSpecified: (:) [Get-NcSnapshot], ArgumentException&lt;BR /&gt;+ FullyQualifiedErrorId : Volume is empty,DataONTAP.C.PowerShell.SDK.Cmdlets.Snapshot.GetNcSnapshot&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 14:23:07 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-Powershell-Toolkit-9-12-1-2302-Get-NcSnapshot-Object-reference-not-set-to/m-p/447624#M6795</guid>
      <dc:creator>AVEM</dc:creator>
      <dc:date>2023-09-14T14:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp Powershell Toolkit 9.12.1.2302 - Get-NcSnapshot : Object reference not set to an instance</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-Powershell-Toolkit-9-12-1-2302-Get-NcSnapshot-Object-reference-not-set-to/m-p/447626#M6796</link>
      <description>&lt;P&gt;Recently, I have performed some extensive testing to get our current set of Powershell scripts working with REST API.&amp;nbsp; Using PSTK v9.13.1.2306&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have thus far been disappointed by the results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the positive side, the very basic functionality is there.&amp;nbsp; You can use the same cmdlets with REST and ONTAPI&amp;nbsp; and they work at a basic level.&amp;nbsp; PSTK hides the complexity of the underlying calls and provides a consistent set of cmdlets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the not-so-great side, many common cmdlets (get-ncvol, get-ncvserver to name a few) do not return all of the properties with REST which they do with ONTAPI.&amp;nbsp; Since my scripts require these properties to be returned, I am unable to use the REST API and have to specify -ONTAPI for many of my calls.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are other issues with REST, among them:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;REST calls in some cases are noticeably slower than ONTAPI,&lt;/LI&gt;&lt;LI&gt;The help pages for the cmdlets in many cases have not been fully updated to match the cmdlet (example the -ONTAPI option is not even mentioned),&lt;/LI&gt;&lt;LI&gt;Some cmdlets behave differently with REST than with ONTAPI&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I would be happy to share specific cmdlets which I have tested and which are inconsistent between REST and ONTAPI&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In short, if Netapp expects us to migrate to REST, they are going to have to develop their cmdlets for more consistent functionality and performance between REST and ONTAPI&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 18:37:24 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-Powershell-Toolkit-9-12-1-2302-Get-NcSnapshot-Object-reference-not-set-to/m-p/447626#M6796</guid>
      <dc:creator>StevePutre</dc:creator>
      <dc:date>2023-09-14T18:37:24Z</dc:date>
    </item>
  </channel>
</rss>

