Workspace already in transaction mode

المشرف العام

Administrator
طاقم الإدارة
I am writing a script to use an updatecursor. The feature class is locked so I am versioning the database, creating a feature layer, and reconciling versions. I have taken the skeleton for my script from this thread. Error with da.UpdateCursor and SDE feature classes

The main difference is that I already had an SDE connection file in my directory. Should this be re-created each time the script is executed to avoid this error?

__author__ = 'Administrator'from arcpy import *import GetSRConfigimport osimport timedef GetDateTimeString(n = None): """ format a datetime to string """ if(n==None): s = time.strftime("%Y%m%d%H%M%S", time.localtime()) else: s = time.strftime("%Y%m%d%H%M%S", time.localtime()) if((isNumeric(n)==True) and ((n>4) and (n
 
أعلى