I am trying to use SearchCursor to loop through a feature class and create a Euclidean Distance raster dataset for every feature in that feature class. This ED raster dataset will be used for further analysis. However, I got this error message which I cannot solve. Can anyone explain or help please.
cursor = arcpy.SearchCursor(Tank_Location_Data)
for row in cursor:
arcpy.gp.EucDistance_sa(row, "50", "1", "#")
Error message:
arcpy.gp.EucDistance_sa(row, "50", "1", "#")
File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\geoprocessing\_base.py", line 498, in <lambda>
return lambda *args: val(*gp_fixargs(args, True))
RuntimeError: Object: Error in executing tool