<?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 how to make optional input parameters work? (create export) in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/how-to-make-optional-input-parameters-work-create-export/m-p/52320#M10891</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks kevin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have been trying this.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the preview/execution plan part works ok&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on actual execution, however, when it comes to run the 'Create Export'&amp;nbsp; command, i get the following, if i set ROhosts to " ":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'A positional parameter cannot be found that accepts argument 'System.Object[]'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've sent an AIM message with a URL where you can look at it for yourself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Aug 2011 23:16:42 GMT</pubDate>
    <dc:creator>pwl</dc:creator>
    <dc:date>2011-08-17T23:16:42Z</dc:date>
    <item>
      <title>how to make optional input parameters work? (create export)</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/how-to-make-optional-input-parameters-work-create-export/m-p/52311#M10885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm have a workflow for creating NFS exports.&amp;nbsp;&amp;nbsp; i accept the following parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Size&lt;/P&gt;&lt;P&gt;&amp;nbsp; Read-only hosts&amp;nbsp; ($ROhosts&amp;nbsp; =&amp;gt; comma separated list of IP addresses)&lt;/P&gt;&lt;P&gt;&amp;nbsp; Read-write hosts ($RWhosts&amp;nbsp; =&amp;gt; comma separated list of IP addresses)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the intention is that the the list of RW hosts&amp;nbsp; and/or list of RO hosts&amp;nbsp; should be &lt;EM&gt;optional &lt;/EM&gt;(as it is for the Create Export command)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it seems, however, that if i define the a new export&amp;nbsp; (in a findchart) and assign anything to its properties, the associated parameter gets "activated" in the call to the command.&amp;nbsp; if the property has no value (because nothing was provided for "read-only hosts", for example), the command fails :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Missing an argument for parameter 'ROhosts'. Specify a parameter of type 'System.Array' and try again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's what the Create Export execution plan looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{Array=10.128.57.135, NoSuid=true, QtreeName=nfs_export_005, ROhosts=, RWhosts=, Roothosts=, Security=sys, VFilerName=pwl-vf02-ipn, VolumeName=odi_ipn_shared_001}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note that ROhosts, RWhosts &amp;amp; Roothosts are all shown, but have no values (because i didn't supply any values at input time)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i create an export object, and assign some values to ROhosts, etc if the user provided some, and none if the user didn't ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:47:57 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/how-to-make-optional-input-parameters-work-create-export/m-p/52311#M10885</guid>
      <dc:creator>pwl</dc:creator>
      <dc:date>2025-06-05T06:47:57Z</dc:date>
    </item>
    <item>
      <title>how to make optional input parameters work? (create export)</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/how-to-make-optional-input-parameters-work-create-export/m-p/52315#M10887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We may need to get on the phone.&amp;nbsp; I did a couple of quick tests where I had a workflow that:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Created a volume (user inputs of volName and volSize)&lt;/LI&gt;&lt;LI&gt;Created an export (user inputs of RootHosts and RWHosts)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hardcoed the array and aggregate just for the sake of time.&amp;nbsp; I tried previews for both when I supplied values for RootHosts and RWHosts, and where no values were provided... and the previews worked fine.&amp;nbsp; I did this test on both WFA 1.0 and 0.7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That said... something relayed in the other discussion might help you.&amp;nbsp; What you should do is to provide this in the value for Roothosts and RWhosts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $Roothosts=="" ? " " :$Roothosts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $RWhosts=="" ? " " :$RWhosts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://community.netapp.com/legacyfs/online/12219_exports.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What this should do for you is... look at the value of the User Input variable, and if evaluated to NULL, then use a Space, if the value of the User Input variable is not NULL, then use what was provided as the user input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, I was not able to get the same behavior as you did, so if we need to talk, please shoot me an email with a time that might work for us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kevin &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 19:40:30 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/how-to-make-optional-input-parameters-work-create-export/m-p/52315#M10887</guid>
      <dc:creator>hill</dc:creator>
      <dc:date>2011-08-17T19:40:30Z</dc:date>
    </item>
    <item>
      <title>how to make optional input parameters work? (create export)</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/how-to-make-optional-input-parameters-work-create-export/m-p/52320#M10891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks kevin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have been trying this.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the preview/execution plan part works ok&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on actual execution, however, when it comes to run the 'Create Export'&amp;nbsp; command, i get the following, if i set ROhosts to " ":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'A positional parameter cannot be found that accepts argument 'System.Object[]'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've sent an AIM message with a URL where you can look at it for yourself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 23:16:42 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/how-to-make-optional-input-parameters-work-create-export/m-p/52320#M10891</guid>
      <dc:creator>pwl</dc:creator>
      <dc:date>2011-08-17T23:16:42Z</dc:date>
    </item>
    <item>
      <title>how to make optional input parameters work? (create export)</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/how-to-make-optional-input-parameters-work-create-export/m-p/52325#M10894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So it turns around there are some caveats &amp;amp; workarounds.&amp;nbsp; Contact me directly if needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 04:16:24 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/how-to-make-optional-input-parameters-work-create-export/m-p/52325#M10894</guid>
      <dc:creator>pwl</dc:creator>
      <dc:date>2011-08-24T04:16:24Z</dc:date>
    </item>
  </channel>
</rss>

