My script below gets to the first feature class in the list and bails with:
RuntimeError: cannot open 'Roads'
I tested it in a file geodatabase and it worked as intended. Tried next with a connection to an SDE version and it failed.
User connection has full edit privileges to all GDB contents, so it should not be a permissions issue.
Anything additional I must do for an SDE geodatabase? Other thoughts?
edit.startEditing(True)
for fc in fclist:
with arcpy.da.UpdateCursor(fc, ("OBJECTID", "OID@")) as cur:
for row in cur:
row[0] = row[1]
cur.updateRow(row)
del row
del cur
edit.stopEditing(True)