<?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: Model Builder exported to Script defciency in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-exported-to-script-defciency/m-p/272332#M9394</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want the geoprocessing to be interactive ("&lt;SPAN style="background-color: #ffffff;"&gt;need to be able to have the option of selecting my inputs"), then what is the reason you&amp;nbsp;do not want to leave it as a tool/model in ArcGIS?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Feb 2019 22:15:59 GMT</pubDate>
    <dc:creator>ColeAndrews</dc:creator>
    <dc:date>2019-02-21T22:15:59Z</dc:date>
    <item>
      <title>Model Builder exported to Script defciency</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-exported-to-script-defciency/m-p/272331#M9393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exporting a script from model builder with the hope of creating a functional python script. I need to be able to have the option of selecting my inputs. Some locations have data while others do not. I want to be able to run the script and select my inputs, while ignoring other inputs. I have multiple potential feature classes as inputs. I've identified these as variables but after running the python script, I receive the following error message.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ExecuteError: Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000735: Input Datasets: Value is required&lt;BR /&gt;Failed to execute (Merge).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the script:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;# Import arcpy module&lt;BR /&gt;import arcpy&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;# Script arguments&lt;BR /&gt;PotentialArea_A = arcpy.GetParameterAsText(0)&lt;/DIV&gt;&lt;DIV&gt;ProtectiveZone_A = arcpy.GetParameterAsText(1)&lt;/DIV&gt;&lt;DIV&gt;Wetland_A = arcpy.GetParameterAsText(2)&lt;/DIV&gt;&lt;DIV&gt;...&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;# Local variables:&lt;BR /&gt;Merge = "...Merge"&lt;BR /&gt;Dissolve = "...Dissolve"&lt;/DIV&gt;&lt;DIV&gt;# Process: Merge&lt;BR /&gt;arcpy.Merge_management("'';'';'';'';'';'';'';'';'';''", Merge, "")&lt;/DIV&gt;&lt;DIV&gt;# Process: Dissolve&lt;BR /&gt;arcpy.Dissolve_management(Merge, Dissolve, "", "", "SINGLE_PART", "DISSOLVE_LINES")&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2019 21:57:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-exported-to-script-defciency/m-p/272331#M9393</guid>
      <dc:creator>KarenWitsell</dc:creator>
      <dc:date>2019-02-21T21:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder exported to Script defciency</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-exported-to-script-defciency/m-p/272332#M9394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want the geoprocessing to be interactive ("&lt;SPAN style="background-color: #ffffff;"&gt;need to be able to have the option of selecting my inputs"), then what is the reason you&amp;nbsp;do not want to leave it as a tool/model in ArcGIS?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2019 22:15:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-exported-to-script-defciency/m-p/272332#M9394</guid>
      <dc:creator>ColeAndrews</dc:creator>
      <dc:date>2019-02-21T22:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder exported to Script defciency</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-exported-to-script-defciency/m-p/272333#M9395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to move the code into python and out of model builder. I think the model itself is not as functional as I want it to be. Hoping to find more functionality in python.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2019 22:33:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-exported-to-script-defciency/m-p/272333#M9395</guid>
      <dc:creator>KarenWitsell</dc:creator>
      <dc:date>2019-02-21T22:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder exported to Script defciency</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-exported-to-script-defciency/m-p/272334#M9396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karen, your input parameters should be associated with parameters in a toolbox,&lt;/P&gt;&lt;P&gt;Running the script in standalone mode, given the number of parameters, would require you to do a lot of typing.&lt;/P&gt;&lt;P&gt;If you haven't created a convention tool in Arctoolbox, and are using ArcGIS Pro, then have a look&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/blogs/dan_patterson/2016/05/19/toolbox-creation-in-arcgis-pro"&gt;/blogs/dan_patterson/2016/05/19/toolbox-creation-in-arcgis-pro&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The principles are essentially the same as in ArcMap.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2019 23:22:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-exported-to-script-defciency/m-p/272334#M9396</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-02-21T23:22:44Z</dc:date>
    </item>
  </channel>
</rss>

