AnsweredAssumed Answered

RuntimeError: cannot open feature class

Question asked by dcfrate on May 26, 2015
Latest reply on May 27, 2015 by dcfrate

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?


    for fc in fclist:
        with arcpy.da.UpdateCursor(fc, ("OBJECTID", "OID@")) as cur:
            for row in cur:
                row[0] = row[1]
                del row
            del cur