Hello! I have a python script which reconciles all of our 72 versions in the recommended order, then compresses. I notice, in the resultant log, that it reconciles "grandchild" versions with Default--not with the parent. This is not consistent with my understanding of proper ArcSDE reconcile ordering.I would benefit from other ArcSDE folks' thoughts on these "grandchildren."Thank you!
import arcpy import time timestr = time.strftime("%Y%b%d-%I%M%S%p") LogFilePath = '\\\abcsrv\\staff\\Administrative\\GISsoftware\\SDE_SQL_Server_Information\\PROD\\ReconcileVersionsLogs' final = LogFilePath + "\\" + timestr + ".txt" # Get a list of versions to pass into the ReconcileVersions tool. versionList = arcpy.ListVersions('\\\abcsrv\\staff\\ArcGIS_Scripts\\Script_Files\\SDE_Connection_Files\\PROD_SDE.sde') # Execute the ReconcileVersions tool. arcpy.ReconcileVersions_management('\\\abcsrv\\staff\\ArcGIS_Scripts\\Script_Files\\SDE_Connection_Files\\PROD_SDE.sde', "BLOCKING_VERSIONS", "sde.DEFAULT", versionList, "NO_LOCK_ACQUIRED", "ABORT_CONFLICTS", "BY_OBJECT", "FAVOR_TARGET_VERSION", "NO_POST", "KEEP_VERSION", final) # Compress the geodatabase arcpy.Compress_management('\\\abcsrv\\staff\\ArcGIS_Scripts\\Script_Files\\SDE_Connection_Files\\PROD_SDE.sde') print "versions have been reconciled, database has been compressed"
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.