AnsweredAssumed Answered

Cursor Not Working

Question asked by bhtrialuser2 on Nov 18, 2016
Latest reply on Nov 18, 2016 by bixb0012

Hi everyone,

I'm writing a script to plot points and then delete rows that have a value of less than 5.


the script

I am getting the following error on the cursor lines:

Traceback (most recent call last):
File "C:\Users\30030839\Favorites\Downloads\", line 32, in <module>
cursor = arcpy.da.UpdateCursor("C:\\Users\\30030839\\Desktop\\Python\\capacity_points_layer2", ["DEM"])
RuntimeError: cannot open 'C:\Users\30030839\Desktop\Python\capacity_points_layer2'


I'm not sure why this file isn't able to open. It's not being used in any application, and its folder is not open.I added the file to ArcMap previously to make sure the shapefile worked and that the attribute table exists, and it's fine. Does anyone know why I would be getting this error?