AnsweredAssumed Answered

Reconcile & Post Exclude Parent and Child Versions

Question asked by NEOMAPPER on Sep 26, 2018
Latest reply on Oct 2, 2018 by NEOMAPPER

How do I prevent SDE.Collector and it's child versions from reconciling and posting to the default version? My code only prevents SDE.GIS from posting to default version and all the child versions get posted.

# Get a list of versions to pass into the ReconcileVersions tool.
print("Getting list of all versions")
versionList = arcpy.ListVersions(adminConn)

for version in versionList:
    if 'collector' in version.lower():
        if 'dbo' in version.lower():
            defaultVersion = 'dbo.Collector' #dbo.DEFAULT
        elif 'sde' in version.lower():
            defaultVersion = 'sde.Collector' #sde.DEFAULT

reconcileVersionList = []
for version in versionList:
    if version != 'SDE.GIS': # Child versions of GIS are posting to DEFAULT