I want to make a very basic python script, however I keep running into error 000714 (general/unknown script error).
The topology is created, the features are added to it, however the rule is not. I've tried different rules, same problem; I will want to add more rules and validation if this error is overcome.
I have tried doing the same process in modelbuilder but the I get error 999999, the syntax is the same when I export the code from it.
Anyone run into this problem or find solution? I am using ArcGIS 10.1.
Code (The script tool's only parameter is a Dataset):
import arcpy, sys from arcpy import env env.workspace = sys.argv topolo = "GBA_Topology" transLn = "TRANSPORT_LINE" gbaTransLn = "GBA_TRANSPORT_LINES" if arcpy.Exists(topolo): arcpy.Delete_management(topolo) arcpy.CreateTopology_management(env.workspace, topolo, "0.001") arcpy.AddFeatureClassToTopology_management(topolo, transLn, "5", "1") arcpy.AddFeatureClassToTopology_management(topolo, gbaTransLn, "5", "1") arcpy.AddRuleToTopology_management(topolo, "Must Not Self-Intersect (Line)", transLn, "", "", "")