Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Secret to edit.stopEditing(True)

$
0
0
Can someone please inform us/me on why the edit.stopEditing(True) method does not work? I have been using it in a Python add-in with a da.UpdateCursor. edit.isEditing prints True but when the script reaches edit.stopEditing(True), an exception is thrown and the e.message reads "Start Edit Session". My solution is to comment out edit.stopEditing.

I am at a dead end with this and after reading about versioned geodatabase states I have a feeling that they are related.

Thanks

Viewing all articles
Browse latest Browse all 2485

Trending Articles