<?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 Workflow fails with: Given schedule already exists? in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Workflow-fails-with-Given-schedule-already-exists/m-p/139311#M25392</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As part of the volume creation workflow I also create a CDOT schedule and snapshot policy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When executed my workflow fails with this error:&lt;/P&gt;
&lt;PRE style="width: 613px; height: 42px;"&gt;Given schedule 'XYZ' already exists Location: Row '1' step 'Create schedule'.&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It appears to have attempted to create the schedule, although it already exists on the target cluster (due to a previous run).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But why does it even attempt to create these elements?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the parameters for "Create Schedule" I define my variable "vSched" using "by searching for an existing Schedule".&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;And I have: only "If vSched was not found" then "Fill-in attributes for vSched and execute the command" .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For my search ("Using search parameters") I am using:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; By pre-defined filters&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Select one schedule by its natural keys with these parameters:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The Schedule Name = NAS_SNAP_SCHED (a constant I defined)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The Cluster name or IP = vTargetCluster.name&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I thought that this was the correct way to deal with the possibility of pre-existing "elements" i.e. so that the schedule and policy are only created when necessary e.g. the first time the workflow is run against a specific cluster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using the "Test" button shows that the search is returning no&amp;nbsp;results when "consider reservation data" is not selected).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is going wrong here?&amp;nbsp;Is there&amp;nbsp;something wrong with my search - should I use a different filter/finder/key? Or is something else the problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks once again for all your support!&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 13:51:25 GMT</pubDate>
    <dc:creator>WAFLHERDER</dc:creator>
    <dc:date>2025-06-04T13:51:25Z</dc:date>
    <item>
      <title>Workflow fails with: Given schedule already exists?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Workflow-fails-with-Given-schedule-already-exists/m-p/139311#M25392</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As part of the volume creation workflow I also create a CDOT schedule and snapshot policy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When executed my workflow fails with this error:&lt;/P&gt;
&lt;PRE style="width: 613px; height: 42px;"&gt;Given schedule 'XYZ' already exists Location: Row '1' step 'Create schedule'.&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It appears to have attempted to create the schedule, although it already exists on the target cluster (due to a previous run).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But why does it even attempt to create these elements?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the parameters for "Create Schedule" I define my variable "vSched" using "by searching for an existing Schedule".&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;And I have: only "If vSched was not found" then "Fill-in attributes for vSched and execute the command" .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For my search ("Using search parameters") I am using:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; By pre-defined filters&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Select one schedule by its natural keys with these parameters:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The Schedule Name = NAS_SNAP_SCHED (a constant I defined)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The Cluster name or IP = vTargetCluster.name&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I thought that this was the correct way to deal with the possibility of pre-existing "elements" i.e. so that the schedule and policy are only created when necessary e.g. the first time the workflow is run against a specific cluster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using the "Test" button shows that the search is returning no&amp;nbsp;results when "consider reservation data" is not selected).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is going wrong here?&amp;nbsp;Is there&amp;nbsp;something wrong with my search - should I use a different filter/finder/key? Or is something else the problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks once again for all your support!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:51:25 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Workflow-fails-with-Given-schedule-already-exists/m-p/139311#M25392</guid>
      <dc:creator>WAFLHERDER</dc:creator>
      <dc:date>2025-06-04T13:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow fails with: Given schedule already exists?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Workflow-fails-with-Given-schedule-already-exists/m-p/139385#M25412</link>
      <description>&lt;P&gt;No feedbackback at all? I can't be the only person to have tried this ... or am I really that weird?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically, I want to create a couple of objects (a CDOT Schedule and Policy), but only if they don't already exist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What's the recommended technique for doing that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 11:05:38 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Workflow-fails-with-Given-schedule-already-exists/m-p/139385#M25412</guid>
      <dc:creator>WAFLHERDER</dc:creator>
      <dc:date>2018-04-05T11:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow fails with: Given schedule already exists?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Workflow-fails-with-Given-schedule-already-exists/m-p/139556#M25466</link>
      <description>&lt;P&gt;Generally speaking that sounds like the correct method to handle creating a schedule only if it doesn't exist.&amp;nbsp; If your test search isn't returning a result then something is off.&amp;nbsp; If the schedule already exists (or is in WFA's cache and you have the 'use reservation data' checkbox checked) then it should show up on that test.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any chance you'd be willing to export the workflow and upload it here so I can take a look?&amp;nbsp; Or PM me and we'll coordinate offline if you don't want it uploaded to the community site.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 16:37:57 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Workflow-fails-with-Given-schedule-already-exists/m-p/139556#M25466</guid>
      <dc:creator>joele</dc:creator>
      <dc:date>2018-04-12T16:37:57Z</dc:date>
    </item>
  </channel>
</rss>

