Hi all, I am running Feature to Point for a feature class that is a regular grid (200m *200m), and keep running into this error. I have used this arcpy code for very similar feature classes, and never had this problem before. I have tried restarting my computer, making sure all files are stored locally, and using RepairGeometry.
Any ideas for other things to try? Does anyone know if this tool was updated recently?
Full Error:
arcpy.management.FeatureToPoint(fc, point_fc, point_location="INSIDE")
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 6865, in FeatureToPoint
raise e
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 6861, in FeatureToPoint
gp.FeatureToPoint_management(*gp_fixargs((in_features, out_feature_class, point_location), True))
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 533, in <lambda>
return lambda *args: val(*gp_fixargs(args, True))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
arcgisscripting.ExecuteError: ERROR 000072: Cannot process feature with OID 1273001
Failed to execute (FeatureToPoint).
print("Converting to point feature class...")
t0 = time.time()
arcpy.management.RepairGeometry(fc, delete_null=True)
arcpy.management.FeatureToPoint(fc, point_fc, point_location="INSIDE")
print(f"Done in {round((time.time() - t0) / 60, 2)} minutes")
Solved! Go to Solution.
Thanks, Dan. I checked and repaired the geometry and ran into the same issue. Ended up just doing PolygontoRaster for my analysis.
cheers
000072: Cannot process feature with OID <value>.—ArcGIS Pro | Documentation
if you just want to check
Check Geometry—ArcGIS Pro | Documentation
but as the first help topic suggests, then
Repair Geometry (Data Management)—ArcGIS Pro | Documentation
Thanks, Dan. I checked and repaired the geometry and ran into the same issue. Ended up just doing PolygontoRaster for my analysis.
cheers