<?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: Tool Not Working .... in Python Snippets Questions</title>
    <link>https://community.esri.com/t5/python-snippets-questions/tool-not-working/m-p/879758#M666</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dump all the parameters except for 0 and 1 for now&lt;/P&gt;&lt;P&gt;It seems that your first parameter is a multivalue parameter which return a semicolon delimited list of shapefiles.&amp;nbsp; You will have to split that parameter on the semicolon and process each file in a 'for' loop.&amp;nbsp; in fact, it doesn't even appear as a parameter in your original script, it is defined as a workspace and not featureclass(es).&lt;/P&gt;&lt;P&gt;Why don't you just run the existing tool in batch mode? (or can't you do that in arcmap?&amp;nbsp; I can't remember)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Dec 2019 06:59:32 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2019-12-02T06:59:32Z</dc:date>
    <item>
      <title>Tool Not Working ....</title>
      <link>https://community.esri.com/t5/python-snippets-questions/tool-not-working/m-p/879753#M661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For some work i was creating a tool which can add same field in attribute table of multiple feature classes. I wrote the script and it worked well but when i added this script to a tool; the tool didn't resulted in same results. I' m attaching screenshots for same. I'm kinda new to scripting and arcpy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2019 11:34:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/tool-not-working/m-p/879753#M661</guid>
      <dc:creator>ShubhamBhatia</dc:creator>
      <dc:date>2019-11-29T11:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Not Working ....</title>
      <link>https://community.esri.com/t5/python-snippets-questions/tool-not-working/m-p/879754#M662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you need to use&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/functions/getparameterastext.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/functions/getparameterastext.htm"&gt;GetParameterAsText—ArcPy Functions | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so that the parameters are derived from the tool itself.&lt;/P&gt;&lt;P&gt;It is more fully described in&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/geoprocessing_and_python/adding-a-script-tool.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/geoprocessing_and_python/adding-a-script-tool.htm"&gt;Adding a script tool—Geoprocessing and Python | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The process is the same for ArcMap and ArcGIS Pro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2019 12:23:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/tool-not-working/m-p/879754#M662</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-11-29T12:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Not Working ....</title>
      <link>https://community.esri.com/t5/python-snippets-questions/tool-not-working/m-p/879755#M663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I followed &lt;A href="https://community.esri.com/migrated-users/3116"&gt;Dan Patterson&lt;/A&gt; your instructions but still it is getting failed ....&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/474999_script.JPG" /&gt;&lt;IMG alt="" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/475000_error.png" /&gt;&lt;IMG alt="" class="jive-emoji jive-image image-3 j-img-original" src="https://community.esri.com/legacyfs/online/475001_interface.JPG" /&gt;&amp;nbsp;your&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Dec 2019 07:54:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/tool-not-working/m-p/879755#M663</guid>
      <dc:creator>ShubhamBhatia</dc:creator>
      <dc:date>2019-12-01T07:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Not Working ....</title>
      <link>https://community.esri.com/t5/python-snippets-questions/tool-not-working/m-p/879756#M664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your toolbox shows that the&amp;nbsp;tool is called "Script1" which means that you didn't associate your script "add.py" to the toolbox properly. hence the error message.&amp;nbsp; Notice that the path to your toolbox is called&lt;/P&gt;&lt;P&gt;E:\Toolbox.tbx#add.py"&lt;/P&gt;&lt;P&gt;You need to follow&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/geoprocessing_and_python/a-quick-tour-of-creating-script-tools.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/geoprocessing_and_python/a-quick-tour-of-creating-script-tools.htm"&gt;What is a script tool?—Geoprocessing and Python | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;all the sections in here&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/geoprocessing_and_python/understanding-script-tool-parameters.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/geoprocessing_and_python/understanding-script-tool-parameters.htm"&gt;Understanding script tool parameters—Geoprocessing and Python | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and in here&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/geoprocessing_and_python/adding-a-script-tool.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/geoprocessing_and_python/adding-a-script-tool.htm"&gt;Adding a script tool—Geoprocessing and Python | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will then get a properly formed and named toolbox with the script and its parameters correctly associated with the dialog.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Dec 2019 12:08:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/tool-not-working/m-p/879756#M664</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-12-01T12:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Not Working ....</title>
      <link>https://community.esri.com/t5/python-snippets-questions/tool-not-working/m-p/879757#M665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is still showing this error ....&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/475002_error.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2019 06:18:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/tool-not-working/m-p/879757#M665</guid>
      <dc:creator>ShubhamBhatia</dc:creator>
      <dc:date>2019-12-02T06:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Not Working ....</title>
      <link>https://community.esri.com/t5/python-snippets-questions/tool-not-working/m-p/879758#M666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dump all the parameters except for 0 and 1 for now&lt;/P&gt;&lt;P&gt;It seems that your first parameter is a multivalue parameter which return a semicolon delimited list of shapefiles.&amp;nbsp; You will have to split that parameter on the semicolon and process each file in a 'for' loop.&amp;nbsp; in fact, it doesn't even appear as a parameter in your original script, it is defined as a workspace and not featureclass(es).&lt;/P&gt;&lt;P&gt;Why don't you just run the existing tool in batch mode? (or can't you do that in arcmap?&amp;nbsp; I can't remember)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2019 06:59:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/tool-not-working/m-p/879758#M666</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-12-02T06:59:32Z</dc:date>
    </item>
  </channel>
</rss>

