<?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 RemoveEmptyFeatureClassFromGeometricNetwork_management returns ERROR 000584 in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/removeemptyfeatureclassfromgeometricnetwork/m-p/1030933#M60140</link>
    <description>&lt;P&gt;I'm trying to run the following code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;import os
import arcpy


CONFOLDER = os.path.abspath(r"C:\...\AppData\Roaming\ESRI\Desktop10.2\ArcCatalog")
NETWORK_EQUIPMENT = os.path.join(CONFOLDER, 'test_db_at_test-1.sde\\NetworkEquipment\\Network_Equipment')

# Process: Remove Feature Class From Geometric Network
desc = arcpy.Describe(NETWORK_EQUIPMENT)
arcpy.RemoveEmptyFeatureClassFromGeometricNetwork_management(NETWORK_EQUIPMENT, "RfConn")  # select count(*) from RfConn -- this returns 0, so I believe it's empty.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But get this error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Traceback (most recent call last):
File "\remove_empty_featureclass_from_geometricnetwork.py", line 10, in &amp;lt;module&amp;gt;
arcpy.RemoveEmptyFeatureClassFromGeometricNetwork_management(NETWORK_EQUIPMENT, "RfConn")
File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\management.py", line 5096, in RemoveEmptyFeatureClassFromGeometricNetwork
raise e
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000584: Implementation of this Tool's Validate is invalid.
ERROR 000584: Implementation of this Tool's Validate is invalid.
ERROR 000584: Implementation of this Tool's Validate is invalid.
Failed to execute (RemoveEmptyFeatureClassFromGeometricNetwork).&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using ArcGIS 10.2.2, ArcSDE10 on SQL Server and the geometric network consists of versioned data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea what I'm doing wrong here?&lt;/P&gt;</description>
    <pubDate>Fri, 26 Feb 2021 12:26:28 GMT</pubDate>
    <dc:creator>LukeHodgson</dc:creator>
    <dc:date>2021-02-26T12:26:28Z</dc:date>
    <item>
      <title>RemoveEmptyFeatureClassFromGeometricNetwork_management returns ERROR 000584</title>
      <link>https://community.esri.com/t5/python-questions/removeemptyfeatureclassfromgeometricnetwork/m-p/1030933#M60140</link>
      <description>&lt;P&gt;I'm trying to run the following code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;import os
import arcpy


CONFOLDER = os.path.abspath(r"C:\...\AppData\Roaming\ESRI\Desktop10.2\ArcCatalog")
NETWORK_EQUIPMENT = os.path.join(CONFOLDER, 'test_db_at_test-1.sde\\NetworkEquipment\\Network_Equipment')

# Process: Remove Feature Class From Geometric Network
desc = arcpy.Describe(NETWORK_EQUIPMENT)
arcpy.RemoveEmptyFeatureClassFromGeometricNetwork_management(NETWORK_EQUIPMENT, "RfConn")  # select count(*) from RfConn -- this returns 0, so I believe it's empty.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But get this error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Traceback (most recent call last):
File "\remove_empty_featureclass_from_geometricnetwork.py", line 10, in &amp;lt;module&amp;gt;
arcpy.RemoveEmptyFeatureClassFromGeometricNetwork_management(NETWORK_EQUIPMENT, "RfConn")
File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\management.py", line 5096, in RemoveEmptyFeatureClassFromGeometricNetwork
raise e
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000584: Implementation of this Tool's Validate is invalid.
ERROR 000584: Implementation of this Tool's Validate is invalid.
ERROR 000584: Implementation of this Tool's Validate is invalid.
Failed to execute (RemoveEmptyFeatureClassFromGeometricNetwork).&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using ArcGIS 10.2.2, ArcSDE10 on SQL Server and the geometric network consists of versioned data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea what I'm doing wrong here?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 12:26:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/removeemptyfeatureclassfromgeometricnetwork/m-p/1030933#M60140</guid>
      <dc:creator>LukeHodgson</dc:creator>
      <dc:date>2021-02-26T12:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: RemoveEmptyFeatureClassFromGeometricNetwork_management returns ERROR 000584</title>
      <link>https://community.esri.com/t5/python-questions/removeemptyfeatureclassfromgeometricnetwork/m-p/1030965#M60143</link>
      <description>&lt;P&gt;&lt;SPAN&gt;This error typically only occurs in a custom tool. Contact the tool's developer for more assistance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/tool-errors-and-warnings/001001-010000/tool-errors-and-warnings-00576-00600-000584.htm" target="_blank"&gt;000584: Implementation of this Tool's Validate is invalid.—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I guess that would be you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/geoprocessing_and_python/programming-a-toolvalidator-class.htm" target="_blank"&gt;Programming a ToolValidator class—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But this link says&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/appendices/unavailable-tools.htm" target="_blank"&gt;Tools that are not available in ArcGIS Pro—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;it isn't available(?)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Remove Empty Feature Class From Geometric Network&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 14:12:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/removeemptyfeatureclassfromgeometricnetwork/m-p/1030965#M60143</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-02-26T14:12:10Z</dc:date>
    </item>
  </channel>
</rss>

