I have a feature class without version and archiving. When I attempt the code below, it threw a workspace already in transaction mode error. I tested with all combination of
- With and without startOperation
nothing works. the only thing however that did worked is using arcpy.InsertCursor instead of arcpy.da.InsertCursor
edit = arcpy.da.Editor(workspace)
point = arcpy.Point(111,-60)
pointGeom = arcpy.PointGeometry(point,"4326")
row = 
cursor = arcpy.da.InsertCursor(config.FC, ['testfield', 'SHAPE@XY'])
except Exception as e:
The following also did not work
I would like to roll back if an error occurred during a truncate and append. I tested with DeleteFeature, neither worked.
with arcpy.da.Editor(workspace) as edit:
Can someone advise?