Select to view content in your preferred language

ERROR 000072: Cannot process feature with OID 1273001 Failed to execute (FeatureToPoint).

226
2
Jump to solution
07-02-2025 01:31 PM
Labels (2)
MegRFay
Occasional Contributor

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")

 

0 Kudos
1 Solution

Accepted Solutions
MegRFay
Occasional Contributor

Thanks, Dan.  I checked and repaired the geometry and ran into the same issue. Ended up just doing PolygontoRaster for my analysis.

 

cheers 

View solution in original post

0 Kudos
2 Replies
DanPatterson
MVP Esteemed Contributor
0 Kudos
MegRFay
Occasional Contributor

Thanks, Dan.  I checked and repaired the geometry and ran into the same issue. Ended up just doing PolygontoRaster for my analysis.

 

cheers 

0 Kudos