<?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 Tool not loading in ArcGIS Pro correctly in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/tool-not-loading-in-arcgis-pro-correctly/m-p/457989#M35962</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a python toolbox tool for ArcGIS Pro, added parameters, and set it up so that Pro is displaying the tool and not complaining about any syntax errors, but for some reason three oddities are occuring.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;When I click on the tool to run, no parameters are displayed&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG __jive_id="193112" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/193112_pastedImage_6.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The label of the tool does not display as I have it set, instead Pro displays the class name. Maybe that's the default?&lt;/LI&gt;&lt;/UL&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;class PolygonCentroidToPoint(object):
&amp;nbsp;&amp;nbsp;&amp;nbsp; def __init__(self):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; """
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Define the tool (tool name is the name of the class).
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; """
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.label = "Polygon Centroid To Point"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.canRunInBackground = True&lt;/PRE&gt;&lt;P&gt;&lt;IMG __jive_id="193087" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/193087_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;When I run the tool (without parameters in the python console) there are no .pyc files created, which I assumed usually happens when python runs a script, which tells me that ArcGIS pro isn't actually getting to the file somehow, but also not throwing errors...&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look and see if you spot anything, I've probably been staring at this too long and am missing something obvious...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The python console does print errors when the tool runs though, but it doesn't really seem to mean much.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Runtime error 
Traceback (most recent call last):
&amp;nbsp; File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;
&amp;nbsp; File "J:\Scripts and Tools\Python_Tools\Utilities.pyt", line 64, in PolygonCentroidToPoint
&amp;nbsp; File "J:\Scripts and Tools\Python_Tools\Utilities.pyt", line 61, in PolygonCentroidToPoint
&amp;nbsp; File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\geoprocessing\_base.py", line 500, in &amp;lt;lambda&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; return lambda *args: val(*gp_fixargs(args, True))
arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000816: The tool is not valid.
Failed to execute (PolygonCentroidToPoint).&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/roemhildtg/esri-python-tools/blob/arcgis_pro/lib/Polygon_Centroid_Tool.py" title="https://github.com/roemhildtg/esri-python-tools/blob/arcgis_pro/lib/Polygon_Centroid_Tool.py" rel="nofollow noopener noreferrer" target="_blank"&gt;esri-python-tools/Polygon_Centroid_Tool.py at arcgis_pro · roemhildtg/esri-python-tools · GitHub&lt;/A&gt; &lt;A href="https://github.com/roemhildtg/esri-python-tools/blob/arcgis_pro/lib/Polygon_To_Point_Tool.py" title="https://github.com/roemhildtg/esri-python-tools/blob/arcgis_pro/lib/Polygon_To_Point_Tool.py" rel="nofollow noopener noreferrer" target="_blank"&gt;&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 20:23:20 GMT</pubDate>
    <dc:creator>roemhildtg</dc:creator>
    <dc:date>2021-12-11T20:23:20Z</dc:date>
    <item>
      <title>Tool not loading in ArcGIS Pro correctly</title>
      <link>https://community.esri.com/t5/python-questions/tool-not-loading-in-arcgis-pro-correctly/m-p/457989#M35962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a python toolbox tool for ArcGIS Pro, added parameters, and set it up so that Pro is displaying the tool and not complaining about any syntax errors, but for some reason three oddities are occuring.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;When I click on the tool to run, no parameters are displayed&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG __jive_id="193112" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/193112_pastedImage_6.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The label of the tool does not display as I have it set, instead Pro displays the class name. Maybe that's the default?&lt;/LI&gt;&lt;/UL&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;class PolygonCentroidToPoint(object):
&amp;nbsp;&amp;nbsp;&amp;nbsp; def __init__(self):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; """
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Define the tool (tool name is the name of the class).
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; """
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.label = "Polygon Centroid To Point"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.canRunInBackground = True&lt;/PRE&gt;&lt;P&gt;&lt;IMG __jive_id="193087" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/193087_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;When I run the tool (without parameters in the python console) there are no .pyc files created, which I assumed usually happens when python runs a script, which tells me that ArcGIS pro isn't actually getting to the file somehow, but also not throwing errors...&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look and see if you spot anything, I've probably been staring at this too long and am missing something obvious...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The python console does print errors when the tool runs though, but it doesn't really seem to mean much.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Runtime error 
Traceback (most recent call last):
&amp;nbsp; File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;
&amp;nbsp; File "J:\Scripts and Tools\Python_Tools\Utilities.pyt", line 64, in PolygonCentroidToPoint
&amp;nbsp; File "J:\Scripts and Tools\Python_Tools\Utilities.pyt", line 61, in PolygonCentroidToPoint
&amp;nbsp; File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\geoprocessing\_base.py", line 500, in &amp;lt;lambda&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; return lambda *args: val(*gp_fixargs(args, True))
arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000816: The tool is not valid.
Failed to execute (PolygonCentroidToPoint).&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/roemhildtg/esri-python-tools/blob/arcgis_pro/lib/Polygon_Centroid_Tool.py" title="https://github.com/roemhildtg/esri-python-tools/blob/arcgis_pro/lib/Polygon_Centroid_Tool.py" rel="nofollow noopener noreferrer" target="_blank"&gt;esri-python-tools/Polygon_Centroid_Tool.py at arcgis_pro · roemhildtg/esri-python-tools · GitHub&lt;/A&gt; &lt;A href="https://github.com/roemhildtg/esri-python-tools/blob/arcgis_pro/lib/Polygon_To_Point_Tool.py" title="https://github.com/roemhildtg/esri-python-tools/blob/arcgis_pro/lib/Polygon_To_Point_Tool.py" rel="nofollow noopener noreferrer" target="_blank"&gt;&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:23:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/tool-not-loading-in-arcgis-pro-correctly/m-p/457989#M35962</guid>
      <dc:creator>roemhildtg</dc:creator>
      <dc:date>2021-12-11T20:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Tool not loading in ArcGIS Pro correctly</title>
      <link>https://community.esri.com/t5/python-questions/tool-not-loading-in-arcgis-pro-correctly/m-p/457990#M35963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found the problem, it of course was a simple typo. paramterType in the parameters should have been parameterType. I wish Pro would have thrown a more obvious error of some sort.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2016 20:38:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/tool-not-loading-in-arcgis-pro-correctly/m-p/457990#M35963</guid>
      <dc:creator>roemhildtg</dc:creator>
      <dc:date>2016-03-25T20:38:46Z</dc:date>
    </item>
  </channel>
</rss>

