We are running ArcGIS Desktop 10.1 SP1, and also have ArcFM installed.
I have this simple code:
workspace = "C:\\my.sde" arcpy.env.workspace = workspace edit = arcpy.da.Editor(arcpy.env.workspace) edit.startEditing(False, True) edit.startOperation() with arcpy.da.InsertCursor("C:\\my.sde\\dataset\\feature", ("Comments")) as icur: try: icur.insertRow(["Test comment"]) except Exception as e: print e edit.stopOperation() edit.stopEditing(True)
I receive the very specific (/s) error:
SystemError: error return without exception set
I've tried the same code on a different feature class in the same geodatabase and I get:
RuntimeError: Field is not editable.
But I can't think of any reason why it's not editable. I can edit the data in ArcMap just fine. Any idea what could be wrong?