laptop and a wrench

Bug

Using the Intersect_analysis function with a SearchCursor results in duplicate features in ArcMap Python 2.7.14 and Python 3.6.7.

Last Published: March 19, 2019 ArcGIS for Desktop
Bug ID Number BUG-000119731
SubmittedJanuary 30, 2019
Last ModifiedJuly 4, 2025
Applies toArcGIS for Desktop
Version found10.6.1
Operating SystemWindows OS
Operating System Version10.0
Version Fixed2.9
StatusFixed

Workaround

Use the function outside the SearchCursor and export every feature from the Output to a new feature class or shapefile or use the following code:import arcpymerged = arcpy.CopyFeatures_management("test", arcpy.Geometry())[0]with arcpy.da.SearchCursor('fishnetpoly', ["SHAPE@","OID@"]) as sCursor:    for row in sCursor:        intersect = merged.intersect(row[0], 4)        arcpy.CopyFeatures_management(intersect, "intersected_{0}".format(row[1]))        print ("Intersected " + str(row[1])) 

Steps to Reproduce

Bug ID: BUG-000119731

Software:

  • ArcGIS for Desktop

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options