I'm trying to run the following code
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.
But get this error.
Traceback (most recent call last):
File "\remove_empty_featureclass_from_geometricnetwork.py", line 10, in <module>
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).
I'm using ArcGIS 10.2.2, ArcSDE10 on SQL Server and the geometric network consists of versioned data.
Any idea what I'm doing wrong here?