AnsweredAssumed Answered

update cursor not working on versioned sde data

Question asked by fallingdog on Apr 24, 2018
Latest reply on May 3, 2018 by fallingdog

Cannot edit versioned SDE data with Python update or insert cursor functions 

import arcpy
fc = r"xxx"

with arcpy.da.Editor(r"xxx") as edit:
  with arcpy.da.UpdateCursor(fc, ["LINESEGMENTNAME", "TEMP"]) as cu:
    for row in cu:
      print "print row 0:" + str(row[0])
      row[1] = "test"
console output summary
print row 0:3
SystemError: error return without exception set

It is stopping on line 9. I see in the above post that locks are sometimes the problem. I have tried destroying all locks on the target feature class and still get the error.

Arc 10.1

SDE 10.1