<?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: Failed to set an empty SnapmirrorLabel with Set-NcSnapshotPolicySchedule with PSTK 4.3 in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Failed-to-set-an-empty-SnapmirrorLabel-with-Set-NcSnapshotPolicySchedule-with/m-p/127565#M5231</link>
    <description>&lt;P&gt;Funny, I went to my lab and tried that as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used a `n and that blanked it out, but I can't figure out why I can't use "-"&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jan 2017 18:18:38 GMT</pubDate>
    <dc:creator>JGPSHNTAP</dc:creator>
    <dc:date>2017-01-31T18:18:38Z</dc:date>
    <item>
      <title>Failed to set an empty SnapmirrorLabel with Set-NcSnapshotPolicySchedule with PSTK 4.3</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Failed-to-set-an-empty-SnapmirrorLabel-with-Set-NcSnapshotPolicySchedule-with/m-p/127560#M5227</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to delete a snapmirrorlabel from a snapshot policy schedule with&lt;/P&gt;&lt;P&gt;Set-NcSnapmirrorPolicySchedule&lt;/P&gt;&lt;P&gt;but contrary to help which indicate that an empty label will delete the existing label, it is impossible to delete a label and return an empty label ("-" from cli)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;New-NcSnapshotPolicy -Name TCO -Schedule hourly -Count 48 -Prefix hourly

Policy               Enabled SnapshotPolicySchedules                                                                                                        
------               ------- -----------------------                                                                                                        
TCO                   True   {hourly (48)}&lt;/PRE&gt;&lt;P&gt;give me the result:&lt;/P&gt;&lt;PRE&gt;cot-3-demofr::*&amp;gt; snapshot policy show -policy TCO
Vserver: cot-3-demofr
                         Number of Is
Policy Name              Schedules Enabled Comment
------------------------ --------- ------- ----------------------------------
TCO                              1 true    -
    Schedule               Count     Prefix                 SnapMirror Label
    ---------------------- -----     ---------------------- -------------------
    hourly                    48     hourly                 -&lt;/PRE&gt;&lt;P&gt;I then set a snapmirrorlabel with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Set-NcSnapshotPolicySchedule -name TCO -Schedule hourly -Count 48 -SnapmirrorLabel test

Policy               Enabled SnapshotPolicySchedules                                                                                                        
------               ------- -----------------------                                                                                                        
TCO                   True   {hourly (48)}&lt;/PRE&gt;&lt;P&gt;which give me the correct label:&lt;/P&gt;&lt;PRE&gt;cot-3-demofr::*&amp;gt; snapshot policy show -policy TCO
Vserver: cot-3-demofr
                         Number of Is
Policy Name              Schedules Enabled Comment
------------------------ --------- ------- ----------------------------------
TCO                              1 true    -
    Schedule               Count     Prefix                 SnapMirror Label
    ---------------------- -----     ---------------------- -------------------
    hourly                    48     hourly                 test

&lt;/PRE&gt;&lt;P&gt;But after i'm not able to return to an empty snapmirrorlabel, whatever command i used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Set-NcSnapshotPolicySchedule -name TCO -Schedule hourly -Count 48 -SnapmirrorLabel "-"
Set-NcSnapshotPolicySchedule : The SnapMirror Label name "-" is invalid. SnapMirror Label name must contain at least one character and must not contain 
leading or trailing white space. 
At line:1 char:1
+ Set-NcSnapshotPolicySchedule -name TCO -Schedule hourly -Count 48 -Sn ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (cOT3-demofr:NcController) [Set-NcSnapshotPolicySchedule], EINVALIDINPUTERROR
    + FullyQualifiedErrorId : ApiException,DataONTAP.C.PowerShell.SDK.Cmdlets.Snapshot.SetNcSnapshotPolicySchedule&lt;/PRE&gt;&lt;PRE&gt;Set-NcSnapshotPolicySchedule -name TCO -Schedule hourly -Count 48 -SnapmirrorLabel ""

Policy               Enabled SnapshotPolicySchedules                                                                                                        
------               ------- -----------------------                                                                                                        
TCO                   True   {hourly (48)} 


cot-3-demofr::*&amp;gt; snapshot policy show -policy TCO
Vserver: cot-3-demofr
                         Number of Is
Policy Name              Schedules Enabled Comment
------------------------ --------- ------- ----------------------------------
TCO                              1 true    -
    Schedule               Count     Prefix                 SnapMirror Label
    ---------------------- -----     ---------------------- -------------------
    hourly                    48     hourly                 test

&lt;/PRE&gt;&lt;PRE&gt;Set-NcSnapshotPolicySchedule -name TCO -Schedule hourly -Count 48

Policy               Enabled SnapshotPolicySchedules                                                                                                        
------               ------- -----------------------                                                                                                        
TCO                   True   {hourly (48)}                                                                                                                  



cot-3-demofr::*&amp;gt; snapshot policy show -policy TCO
Vserver: cot-3-demofr
                         Number of Is
Policy Name              Schedules Enabled Comment
------------------------ --------- ------- ----------------------------------
TCO                              1 true    -
    Schedule               Count     Prefix                 SnapMirror Label
    ---------------------- -----     ---------------------- -------------------
    hourly                    48     hourly                 test

&lt;/PRE&gt;&lt;P&gt;Is this a bug?&lt;/P&gt;&lt;P&gt;Do i'm doing something wrong?&lt;/P&gt;&lt;P&gt;I know i can delete the policy to recreate it without any snapmirrorlabel, but it's not my need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 15:30:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Failed-to-set-an-empty-SnapmirrorLabel-with-Set-NcSnapshotPolicySchedule-with/m-p/127560#M5227</guid>
      <dc:creator>masson</dc:creator>
      <dc:date>2025-06-04T15:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to set an empty SnapmirrorLabel with Set-NcSnapshotPolicySchedule with PSTK 4.3</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Failed-to-set-an-empty-SnapmirrorLabel-with-Set-NcSnapshotPolicySchedule-with/m-p/127565#M5231</link>
      <description>&lt;P&gt;Funny, I went to my lab and tried that as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used a `n and that blanked it out, but I can't figure out why I can't use "-"&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 18:18:38 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Failed-to-set-an-empty-SnapmirrorLabel-with-Set-NcSnapshotPolicySchedule-with/m-p/127565#M5231</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2017-01-31T18:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to set an empty SnapmirrorLabel with Set-NcSnapshotPolicySchedule with PSTK 4.3</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Failed-to-set-an-empty-SnapmirrorLabel-with-Set-NcSnapshotPolicySchedule-with/m-p/127618#M5236</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.netapp.com/t5/user/viewprofilepage/user-id/11560" target="_self"&gt;&lt;SPAN class="login-bold"&gt;JGPSHNTAP&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the tips&lt;/P&gt;&lt;P&gt;It not exactly the same result as snapmirror label "-"&lt;/P&gt;&lt;P&gt;Because in that case the snapmirror label is not empty, but it contains "`n"&lt;/P&gt;&lt;P&gt;But in the same time does a snapmirror label with "-" is an "empty" snapmirror label?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 09:57:59 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Failed-to-set-an-empty-SnapmirrorLabel-with-Set-NcSnapshotPolicySchedule-with/m-p/127618#M5236</guid>
      <dc:creator>masson</dc:creator>
      <dc:date>2017-02-01T09:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to set an empty SnapmirrorLabel with Set-NcSnapshotPolicySchedule with PSTK 4.3</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Failed-to-set-an-empty-SnapmirrorLabel-with-Set-NcSnapshotPolicySchedule-with/m-p/127623#M5237</link>
      <description>&lt;P&gt;Well, what's interesting is I just fed in `n = new line in powershell. &amp;nbsp;I tried what you did with - but it told me - isn't valid. &amp;nbsp;Then I asked myself why did it show me that - with the policy with no label.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried $null, no dice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think it's a bug and should be fixed &amp;nbsp;"" should work&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 11:40:01 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Failed-to-set-an-empty-SnapmirrorLabel-with-Set-NcSnapshotPolicySchedule-with/m-p/127623#M5237</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2017-02-01T11:40:01Z</dc:date>
    </item>
  </channel>
</rss>

