Reconciles a version or multiple versions against a target version.
| Parameter | Type | Description | Required |
|---|---|---|---|
| Workspace | String | Path to SDE connection file. | Yes |
| log_folder | String | Path to folder where log file(s) will be stored. | Yes |
| versions | List | List of version names to be reconciled and posted. | No |
| parent_version | String | The geodatabase, or version of a geodatabase, which owns the version(s).
|
No |
| delete_version | Boolean | Indicates if versions will be deleted after posting to target version.
|
No |
| all_versions | Boolean | Determines which versions will be reconciled when the tool is executed.
|
No |
| acquire_locks | Boolean | Determines whether feature locks will be acquired.
|
No |
| abort_if_conflicts | Boolean | Reconcile will be aborted if conflicts are found between versions.
|
No |
| by_object | Boolean | Describes the conditions required for a conflict to occur.
|
No |
| favor_target | Boolean | Describes the behavior if a conflict is detected.
|
No |
| post | Boolean | Posts the current edit session to the reconciled target version.
|
No |
Returns: Boolean
Simple call with all parameters specified.
import RPLib sdeOwner = "C:/GIS/SDEADMIN@GIS.sde" RPLib.reconcilepost(sdeOwner,"C:/TESTGIS","","sde.DEFAULT",True,True,True,True,True,True,True)
Simple call with only required parameters specified.
import RPLib sdeOwner = "C:/GIS/SDEADMIN@GIS.sde" RPLib.reconcilepost(sdeOwner,"C:/TESTGIS")
If Else logic with all parameters specified.
import RPLib sdeOwner = "C:/GIS/SDEADMIN@GIS.sde" if RPLib.reconcilepost(sdeOwner,"C:/TESTGIS","","sde.DEFAULT",True,True,True,True,True,True,True): print("successful, run another tool") else: print("failed, run another tool")
- Notice you do not need to specify these parameters because by default:
- versions = None - Will gather all versions for the connection file used
- parent_version = “sde.default”
- delete_version = True
- all_versions = True
- acquire_locks = True
- abort_if_conflicts = True
- by_object = True
- favor_target = True
- post = True
import RPLib sdeOwner = "C:/GIS/SDEADMIN@GIS.sde" if RPLib.reconcilepost(sdeOwner,"C:/TESTGIS"): print("successful, run another tool") else: print("failed, run another tool")