271 rows = arcpy.da.SearchCursor(fc, Fields, "1=2") 272 arcpy.AddMessage(str(rows)) 273 arcpy.AddMessage("Before") 274 for row in rows: 275 arcpy.AddMessage("In")
Running script UpDownTest... <da.SearchCursor object at 0x1758E700> Before Traceback (most recent call last): File "C:\Projects\UpstreamDownstream\UpDownStorm.py", line 274, in <module> for row in rows: RuntimeError: A column was specified that does not exist. Failed to execute (UpDownTest).
Solved! Go to Solution.
Check your field names held by your Fields list variable again. Print out rows.fields to make sure.
On a different topic, do you know how to change the thread icon from a red 'Q' to a green 'A'?
Or better how to delete a thread entirely?