Hello everyone,
Environment: ArcSDe 10.7 and Python 2.7.
When I run a reconcile version with the Post option checked I get in ArcCatalog and eBuilder the following error message:
Error posting version [child version].[Operation can only be executed by the owner since the version is protected. [Pre_Prod_Version]]”
The error is caused because [Pre_Prod_Version] is protected.
Questions?
- how do I do a Reconcile and Post when the PArent version is protected?
- how do I catch this error message, This is what I have in my Try, Except
Source code
try:
arcpy.ReconcileVersions_management(database,
"ALL_VERSIONS",
"Pre_Prod_Version",
child version,
"LOCK_ACQUIRED",
"NO_ABORT",
"BY_OBJECT",
"FAVOR_TARGET_VERSION",
"POST",
"KEEP_VERSION",
reconcileLog)
except Exception as e:
print "Python Error occurred"
#print exception message to the Interactive window
print e
#place error message in geoprocessing messages
sys.exit(1)
except arcpy.ExecuteError:
print "Geoprocessing error occurred"
print arcpy.GetMessages(2)
sys.exit(1)
except:
print "Error occurred"
#print any geoprocessing messages to the Interactive window
print arcpy.GetMessages()
sys.exit(1)
Please advise.
Thanks
It looks like it is the owner of [Pre_Prod_Version] who has t.o do the edits from the Child to [Pre_Prod_Version]