<?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: Python Tool Not Yielding Anything in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-tool-not-yielding-anything/m-p/1593162#M73873</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Dan&lt;/P&gt;&lt;P&gt;This is the setup of my toolbox parameter. As for the GetMessages, I didn't have it initially, I just saw somewhere to add get messages to at least show if the lines are running, but it's still not doing anything. My guess is that the entire tool is not executing at all.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Mar 2025 23:31:31 GMT</pubDate>
    <dc:creator>Ron_S1</dc:creator>
    <dc:date>2025-03-06T23:31:31Z</dc:date>
    <item>
      <title>Python Tool Not Yielding Anything</title>
      <link>https://community.esri.com/t5/python-questions/python-tool-not-yielding-anything/m-p/1593143#M73871</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a script to create topology dataset in ArcGIS Pro, so what it does is it creates the dataset, the topology, import the layer I want to participate in the topology and add topology rules. I have 2 versions of the script, first one is just being ran in Pycharm, the other one has some tweaks to make it an ArcGIS python script tool. The first version runs perfectly, however the tool version is not yielding anything or even producing errors. Not sure what's wrong and I'm confident that I have set the parameters correctly in arcgis pro.&lt;/P&gt;&lt;P&gt;Here's the running version script:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;arcpy&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;os&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Define input and output paths&lt;BR /&gt;&lt;/SPAN&gt;gdb_path = &lt;SPAN&gt;r"P:\s123\GIS\R\Rgdb"  &lt;/SPAN&gt;&lt;SPAN&gt;# Path to your geodatabase&lt;BR /&gt;&lt;/SPAN&gt;feature_class_path = &lt;SPAN&gt;r"P:\s123\GIS\R\R.gdb\MPads"  &lt;/SPAN&gt;&lt;SPAN&gt;# Path to the input feature class (could be a shapefile or feature class)&lt;BR /&gt;&lt;/SPAN&gt;feature_dataset_name = &lt;SPAN&gt;"MyFeatureDataset"  &lt;/SPAN&gt;&lt;SPAN&gt;# Name of the new feature dataset&lt;BR /&gt;&lt;/SPAN&gt;spatial_reference = arcpy.SpatialReference(&lt;SPAN&gt;4269&lt;/SPAN&gt;)  &lt;SPAN&gt;# Define the spatial reference (e.g., WGS 1984)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;# Define the topology name&lt;BR /&gt;&lt;/SPAN&gt;topology_name = &lt;SPAN&gt;"MyTopology"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;# Step 1: Create a Feature Dataset&lt;BR /&gt;&lt;/SPAN&gt;feature_dataset_path = os.path.join(gdb_path&lt;SPAN&gt;, &lt;/SPAN&gt;feature_dataset_name)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Check if feature dataset exists, if not, create it&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;if not &lt;/SPAN&gt;arcpy.Exists(feature_dataset_path):&lt;BR /&gt;    arcpy.CreateFeatureDataset_management(gdb_path&lt;SPAN&gt;, &lt;/SPAN&gt;feature_dataset_name&lt;SPAN&gt;, &lt;/SPAN&gt;spatial_reference)&lt;BR /&gt;    &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;f"Feature dataset '&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;feature_dataset_name&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;' created."&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;:&lt;BR /&gt;    &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;f"Feature dataset '&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;feature_dataset_name&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;' already exists."&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Step 2: Import Feature Class into the Feature Dataset&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;# If the feature class is not already in the geodatabase, import it&lt;BR /&gt;&lt;/SPAN&gt;feature_class_name = os.path.basename(feature_class_path + &lt;SPAN&gt;"_topo"&lt;/SPAN&gt;)&lt;BR /&gt;output_feature_class = os.path.join(feature_dataset_path&lt;SPAN&gt;, &lt;/SPAN&gt;feature_class_name)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if not &lt;/SPAN&gt;arcpy.Exists(output_feature_class):&lt;BR /&gt;    arcpy.FeatureClassToFeatureClass_conversion(feature_class_path&lt;SPAN&gt;, &lt;/SPAN&gt;feature_dataset_path&lt;SPAN&gt;, &lt;/SPAN&gt;feature_class_name)&lt;BR /&gt;    &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;f"Feature class '&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;feature_class_name&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;' imported into feature dataset '&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;feature_dataset_name&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;'."&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;:&lt;BR /&gt;    &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;f"Feature class '&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;feature_class_name&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;' already exists in the feature dataset."&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Step 3: Create Topology in the Feature Dataset&lt;BR /&gt;&lt;/SPAN&gt;topology_path = os.path.join(feature_dataset_path&lt;SPAN&gt;, &lt;/SPAN&gt;topology_name)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Check if topology exists, if not, create it&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;if not &lt;/SPAN&gt;arcpy.Exists(topology_path):&lt;BR /&gt;    arcpy.CreateTopology_management(feature_dataset_path&lt;SPAN&gt;, &lt;/SPAN&gt;topology_name)&lt;BR /&gt;    &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;f"Topology '&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;topology_name&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;' created in feature dataset '&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;feature_dataset_name&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;'."&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;:&lt;BR /&gt;    &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;f"Topology '&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;topology_name&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;' already exists."&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Step 4: Add Feature Class to the Topology&lt;BR /&gt;&lt;/SPAN&gt;arcpy.AddFeatureClassToTopology_management(topology_path&lt;SPAN&gt;, &lt;/SPAN&gt;output_feature_class)&lt;BR /&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;f"Feature class '&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;feature_class_name&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;' added to the topology."&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Step 5: Define Topology Rules using the correct method&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;# Example rules: "Must Not Overlap (Area)", "Must Not Have Gaps (Area)"&lt;BR /&gt;&lt;/SPAN&gt;arcpy.management.AddRuleToTopology(topology_path&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"Must Not Have Gaps (Area)"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;output_feature_class)&lt;BR /&gt;arcpy.management.AddRuleToTopology(topology_path&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"Must Not Overlap (Area)"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;output_feature_class)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;f"Topology rules applied to the topology '&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;topology_name&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;'."&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Step 6: Validate the Topology&lt;BR /&gt;&lt;/SPAN&gt;arcpy.ValidateTopology_management(topology_path)&lt;BR /&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;f"Topology '&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;topology_name&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;' validated."&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;"Topology creation and validation complete."&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;Here's the tool version of the script&lt;BR /&gt;&lt;BR /&gt;import &lt;/SPAN&gt;arcpy&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;os&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;class &lt;/SPAN&gt;Tool(&lt;SPAN&gt;object&lt;/SPAN&gt;):&lt;BR /&gt;    &lt;SPAN&gt;def &lt;/SPAN&gt;&lt;SPAN&gt;__init__&lt;/SPAN&gt;(&lt;SPAN&gt;self&lt;/SPAN&gt;):&lt;BR /&gt;        &lt;SPAN&gt;"""Define the tool (the name of the tool and its label)"""&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;self&lt;/SPAN&gt;.label = &lt;SPAN&gt;"Create Topology"&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;self&lt;/SPAN&gt;.description = &lt;SPAN&gt;"Creates a topology dataset and adds feature classes to it."&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;def &lt;/SPAN&gt;&lt;SPAN&gt;execute&lt;/SPAN&gt;(&lt;SPAN&gt;self&lt;/SPAN&gt;):&lt;BR /&gt;        &lt;SPAN&gt;"""Main tool execution logic"""&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;try&lt;/SPAN&gt;:&lt;BR /&gt;            &lt;SPAN&gt;# Get input parameters&lt;BR /&gt;&lt;/SPAN&gt;            gdb_path = arcpy.GetParameterAsText(&lt;SPAN&gt;0&lt;/SPAN&gt;)  &lt;SPAN&gt;# Path to the geodatabase&lt;BR /&gt;&lt;/SPAN&gt;            feature_class_path = arcpy.GetParameterAsText(&lt;SPAN&gt;1&lt;/SPAN&gt;)  &lt;SPAN&gt;# Feature class path to import&lt;BR /&gt;&lt;/SPAN&gt;            feature_dataset_name = arcpy.GetParameterAsText(&lt;SPAN&gt;2&lt;/SPAN&gt;)  &lt;SPAN&gt;# Feature dataset name&lt;BR /&gt;&lt;/SPAN&gt;            spatial_reference = arcpy.GetParameterAsText(&lt;SPAN&gt;3&lt;/SPAN&gt;)  &lt;SPAN&gt;# Spatial reference (e.g., EPSG code)&lt;BR /&gt;&lt;/SPAN&gt;            topology_name = arcpy.GetParameterAsText(&lt;SPAN&gt;4&lt;/SPAN&gt;)  &lt;SPAN&gt;# Topology name&lt;BR /&gt;&lt;/SPAN&gt;            rule = arcpy.GetParameterAsText(&lt;SPAN&gt;5&lt;/SPAN&gt;)  &lt;SPAN&gt;# Topology rule to apply&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;            # Step 1: Create a Feature Dataset&lt;BR /&gt;&lt;/SPAN&gt;            feature_dataset_path = os.path.join(gdb_path&lt;SPAN&gt;, &lt;/SPAN&gt;feature_dataset_name)&lt;BR /&gt;            &lt;SPAN&gt;if not &lt;/SPAN&gt;arcpy.Exists(feature_dataset_path):&lt;BR /&gt;                arcpy.CreateFeatureDataset_management(gdb_path&lt;SPAN&gt;, &lt;/SPAN&gt;feature_dataset_name&lt;SPAN&gt;, &lt;/SPAN&gt;spatial_reference)&lt;BR /&gt;                arcpy.AddMessage(&lt;SPAN&gt;f"Feature dataset '&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;feature_dataset_name&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;' created."&lt;/SPAN&gt;)&lt;BR /&gt;            &lt;SPAN&gt;else&lt;/SPAN&gt;:&lt;BR /&gt;                arcpy.AddMessage(&lt;SPAN&gt;f"Feature dataset '&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;feature_dataset_name&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;' already exists."&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;            &lt;SPAN&gt;# Step 2: Import Feature Class into Feature Dataset&lt;BR /&gt;&lt;/SPAN&gt;            feature_class_name = os.path.basename(feature_class_path) + &lt;SPAN&gt;"_topo"&lt;BR /&gt;&lt;/SPAN&gt;            output_feature_class = os.path.join(feature_dataset_path&lt;SPAN&gt;, &lt;/SPAN&gt;feature_class_name)&lt;BR /&gt;&lt;BR /&gt;            &lt;SPAN&gt;if not &lt;/SPAN&gt;arcpy.Exists(output_feature_class):&lt;BR /&gt;                arcpy.FeatureClassToFeatureClass_conversion(feature_class_path&lt;SPAN&gt;, &lt;/SPAN&gt;feature_dataset_path&lt;SPAN&gt;, &lt;/SPAN&gt;feature_class_name)&lt;BR /&gt;                arcpy.AddMessage(&lt;SPAN&gt;f"Feature class '&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;feature_class_name&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;' imported into feature dataset."&lt;/SPAN&gt;)&lt;BR /&gt;            &lt;SPAN&gt;else&lt;/SPAN&gt;:&lt;BR /&gt;                arcpy.AddMessage(&lt;SPAN&gt;f"Feature class '&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;feature_class_name&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;' already exists."&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;            &lt;SPAN&gt;# Step 3: Create Topology in Feature Dataset&lt;BR /&gt;&lt;/SPAN&gt;            topology_path = os.path.join(feature_dataset_path&lt;SPAN&gt;, &lt;/SPAN&gt;topology_name)&lt;BR /&gt;            &lt;SPAN&gt;if not &lt;/SPAN&gt;arcpy.Exists(topology_path):&lt;BR /&gt;                arcpy.CreateTopology_management(feature_dataset_path&lt;SPAN&gt;, &lt;/SPAN&gt;topology_name)&lt;BR /&gt;                arcpy.AddMessage(&lt;SPAN&gt;f"Topology '&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;topology_name&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;' created."&lt;/SPAN&gt;)&lt;BR /&gt;            &lt;SPAN&gt;else&lt;/SPAN&gt;:&lt;BR /&gt;                arcpy.AddMessage(&lt;SPAN&gt;f"Topology '&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;topology_name&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;' already exists."&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;            &lt;SPAN&gt;# Step 4: Add Feature Class to Topology&lt;BR /&gt;&lt;/SPAN&gt;            arcpy.AddFeatureClassToTopology_management(topology_path&lt;SPAN&gt;, &lt;/SPAN&gt;output_feature_class)&lt;BR /&gt;            arcpy.AddMessage(&lt;SPAN&gt;f"Feature class '&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;feature_class_name&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;' added to the topology."&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;            &lt;SPAN&gt;# Step 5: Define Topology Rule&lt;BR /&gt;&lt;/SPAN&gt;            arcpy.management.AddRuleToTopology(topology_path&lt;SPAN&gt;, &lt;/SPAN&gt;rule&lt;SPAN&gt;, &lt;/SPAN&gt;output_feature_class)&lt;BR /&gt;            arcpy.AddMessage(&lt;SPAN&gt;f"Topology rule '&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;rule&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;' applied."&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;            &lt;SPAN&gt;# Step 6: Validate the Topology&lt;BR /&gt;&lt;/SPAN&gt;            arcpy.ValidateTopology_management(topology_path)&lt;BR /&gt;            arcpy.AddMessage(&lt;SPAN&gt;f"Topology '&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;topology_name&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;' validated."&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;            arcpy.AddMessage(&lt;SPAN&gt;"Process complete."&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;        &lt;SPAN&gt;except &lt;/SPAN&gt;&lt;SPAN&gt;Exception &lt;/SPAN&gt;&lt;SPAN&gt;as &lt;/SPAN&gt;e:&lt;BR /&gt;            arcpy.AddError(&lt;SPAN&gt;f"Error: &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;e&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;)&lt;BR /&gt;            &lt;SPAN&gt;raise &lt;/SPAN&gt;e&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 06 Mar 2025 22:39:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-tool-not-yielding-anything/m-p/1593143#M73871</guid>
      <dc:creator>Ron_S1</dc:creator>
      <dc:date>2025-03-06T22:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Python Tool Not Yielding Anything</title>
      <link>https://community.esri.com/t5/python-questions/python-tool-not-yielding-anything/m-p/1593153#M73872</link>
      <description>&lt;P&gt;where are you doing the GetMessages.&lt;/P&gt;&lt;P&gt;What does you toolbox parameters look like?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 22:56:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-tool-not-yielding-anything/m-p/1593153#M73872</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-03-06T22:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Python Tool Not Yielding Anything</title>
      <link>https://community.esri.com/t5/python-questions/python-tool-not-yielding-anything/m-p/1593162#M73873</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Dan&lt;/P&gt;&lt;P&gt;This is the setup of my toolbox parameter. As for the GetMessages, I didn't have it initially, I just saw somewhere to add get messages to at least show if the lines are running, but it's still not doing anything. My guess is that the entire tool is not executing at all.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 23:31:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-tool-not-yielding-anything/m-p/1593162#M73873</guid>
      <dc:creator>Ron_S1</dc:creator>
      <dc:date>2025-03-06T23:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Python Tool Not Yielding Anything</title>
      <link>https://community.esri.com/t5/python-questions/python-tool-not-yielding-anything/m-p/1593174#M73874</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/getallmessages.htm" target="_blank"&gt;GetAllMessages—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;if it isn't executing then GetMessages at least, but have a look at the above.&amp;nbsp; Your toolbox tool should be reporting something when it is run.&amp;nbsp; (another reason I hate Try Except blocks &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; , it takes longer to deal with them than dealing with an error in the first place)&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 00:05:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-tool-not-yielding-anything/m-p/1593174#M73874</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-03-07T00:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Python Tool Not Yielding Anything</title>
      <link>https://community.esri.com/t5/python-questions/python-tool-not-yielding-anything/m-p/1593188#M73875</link>
      <description>&lt;P&gt;I ported your code to a standard toolbox tool (see attached) and everything ran smoothly. Some notes:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;There's no Tool class anymore, just a standard script tool layout. Wrapping your code in that class was almost certainly the issue as the script tool simply defined the class and then immediately finished. If you want to use that style, you'll either have to switch to a Python Toolbox or add something like this to the bottom: &lt;FONT face="courier new,courier"&gt;Tool().execute()&lt;/FONT&gt;.&lt;/LI&gt;&lt;LI&gt;Your original script didn't check if the topology already had the feature class added, this has been fixed.&lt;/LI&gt;&lt;LI&gt;Your tool had no return value which could cause issues if it was combined with other tools in Modelbuilder. I chose to return the feature dataset but the choice is up to you.&lt;/LI&gt;&lt;LI&gt;Avoid tab indents for Python scripts, that ship sailed a decade ago and most Python tools will create a mixed whitespace nightmare during edits. Luckily it's very easy to bulk convert tabs to the standard 4 space indents and then change the defaults going forward.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Fri, 07 Mar 2025 00:51:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-tool-not-yielding-anything/m-p/1593188#M73875</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2025-03-07T00:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Python Tool Not Yielding Anything</title>
      <link>https://community.esri.com/t5/python-questions/python-tool-not-yielding-anything/m-p/1593475#M73881</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;Really appreciate your help and advice on this one. This works perfectly!&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 17:55:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-tool-not-yielding-anything/m-p/1593475#M73881</guid>
      <dc:creator>Ron_S1</dc:creator>
      <dc:date>2025-03-07T17:55:11Z</dc:date>
    </item>
  </channel>
</rss>

