AnsweredAssumed Answered

arcpy.ReconcileVersions_management WITHOUT reconciling all other versions at the same time

Question asked by mfrancis_CoServ on Feb 7, 2017

In a versioned, enterprise environment, we have several versions that are children of default, lets call them Inky, Pinky and Blinky.  Each of these versions are several days old, and are in progress--the data contained within should not be posted into sde.default.  Through python, I create a fourth version, Sue, and make edits.  I want to reconcile with default and post only this version to default without incorporating any of the unfinished edits from Inky, Pinky, or Blinky.  Afterwards, I want to delete Sue after posting. 

 

1) is this possible?

2) if so, what am I doing wrong?

 

arcpy.ReconcileVersions_management(input_database = connection_to_edit_version,
                                   reconcile_mode = "ALL_VERSIONS", # or BLOCKING_VERSIONS
                                   target_version = parent_version,  # default
                                   edit_versions = [edit_version],  # sue, in a list by herself
                                   abort_if_conflicts = "ABORT_CONFLICTS",
                                   with_post = "POST",
                                   with_delete = "DELETE_VERSION",
                                   out_log = reclog)

Outcomes