AnsweredAssumed Answered

Multi-user editing in ArcPy

Question asked by mturnbullesriaustralia-com-au-esridist Employee on Feb 1, 2017
Latest reply on Feb 15, 2017 by Dan_Patterson

I have a python script that updates attributes on a versioned feature class from an external table. It uses the arcpy.da.editing functions (startediting, startoperation, updatecursor, stopoperation, stopediting). The script does not create any named versions.  It works fine if one person uses it. If a second person runs it at the same time as the first, the second person gets the following error message


Traceback (most recent call last):
File "C:\Users\ArcG_adm\AppData\Local\ESRI\Desktop10.4\AssemblyCache\{89912E36-0BFE-45B9-8E7D-84A455D7E3A1}\", line 724, in executeSelectedFeatures
RuntimeError: The version has been redefined to reference a new database state. [sde.DEFAULT]

So it appears as though it cannot reconcile. Has anyone come across this before? Am I doing something wrong or missing a step?