I knew that FeatureToLine had issues with large datasets and I have seen other questions revolving around the same error, but I am completely baffled by this. Basically, this function works perfectly with few features (less than a couple hundred), but when a larger number (300+) is entered, it gives this error.
This is the offending function:
add_print_message("Extracting all intersects as points...") arcpy.Intersect_analysis(feature_class, feature_class + "_inter", output_type="POINT") add_print_message("Splitting all lines at intersected points...") arcpy.SplitLineAtPoint_management(feature_class, feature_class + "_inter", feature_class + "_split") add_print_message("Repairing geometry...") arcpy.RepairGeometry_management(feature_class + "_split", "DELETE_NULL") add_print_message("Converting all split features to lines...") arcpy.FeatureToLine_management(feature_class + "_split", feature_class + "_ftl")
It seems to fail after FeatureToLine runs and it gives this error: "Invalid Topology [Feature not found on delete.]"
There are other questions regarding this error on gis.stackexchange but they are of little help.
I have tried Dice and the error still happens and/or Dice fails on chunks that the function utilizes perfectly. I have also tried running it in ArcCatalog but have the same issues.
Any ideas about what could be going wrong (I can't partition any smaller, although I guess I could subdivide, but that is a last resort for now)