I have a file geodatabase with a polygon feature class named "AOI". The "AOI" feature class currently holds two records. I want to loop through each record and run a geoprocessing task, for example the ExtractByMask tool. When I run my script it only runs against the first records and stops successfully. Below is my code....
with arcpy.da.SearchCursor(AOI, ("SHAPE@")) as cursor:
for row in cursor:
Extract = arcpy.sa.ExtractByMask(costraster, row)