Secret to edit.stopEditing(True)

494
1
04-21-2014 05:20 AM
RichardHughes3
New Contributor III
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
Tags (2)
0 Kudos
1 Reply
JamesCrandall
MVP Frequent Contributor
You will probably have to post up your code to get any answer with precision. 

In the meantime, how close are you to the work examples here: http://resources.arcgis.com/en/help/main/10.1/index.html#//018w00000005000000
0 Kudos