Reconcile
- URL: https://<version-url>/reconcile(POST only)
- Version Introduced:10.6
Description
Use the reconcile operation to reconcile a branch version with the default version. The reconcile operation requires that you are the only user currently editing the version and remain so throughout the reconcile process until you save or post your edits. You must have full permissions to all the feature classes that have been modified in the version being edited. This operation detects differences between the branch version and the default version and flags these differences as conflicts. Resolve any conflicts.
Request parameters
Parameter | Details |
|---|---|
| f | Description: Optional parameter that specifies the output format of the response. The default response format is html. Values: html | json |
| sessionID | Description: The client-generated session ID (GUID). This is a required parameter. Syntax : sessionId = {3F2504E0-4F89-41D3-9A0C-0305E82C3301} |
| abortIfConflicts | Description: Optional Boolean parameter specifying whether the reconcile should be aborted if conflicts are found. The default is false. Values: true | false |
| conflictDetection | Description: Optional parameter specifying whether the conditions required for conflicts to occur are defined by object (row) or attribute (column). The default is byObject. This parameter was introduced at ArcGIS Enterprise 10.8.1. Values: byObject | byAttribute |
| withPost | Description: Optional Boolean parameter that causes a post of the current version following the reconcile. The default is false. Values: true | false |
JSON Response syntax
{
"hasConflicts" : <true | false>,
"moment" : <datetime>,
"didPost" : <true | false>,
"success" : <true | false>,
"error" : { // only if success is false
"extendedCode" : <HRESULT>,
"message" : <error message>,
"details" : [ <detail> ]
}
}
Example usage
Reconcile a named version with the default version using the reconcile operation. Conflicts are defined by setting the conflictDetection parameter to byAttribute. The optional parameters abortIfConflicts and withPost are both set to true.
Request URL and parameters:
https://myserver.esri.com/server/rest/services/LandUse/VersionManagementServer/versions/24417758-0DBD-4EC3-95B0-467CAA47FC43/reconcile
f=json
sessionID={638ed440-b81f-406c-bd5d-757c91dbfd70}
abortIfConflicts=true
conflictDetection=byAttribute
withPost=true
JSON response:
{
"hasConflicts": false,
"moment": 1582135929926,
"didPost": true,
"success": true
}