Skip To Content

Conflicts

Description

The conflicts operation allows you to view conflicts by layer and type (update-update, update-delete, and delete-update) that were identified during the previous reconcile operation. The features that are in conflict will also be returned as they existed in the branch, ancestor, and default versions.

Revise los requisitos de la sesión de lectura y edición para las operaciones de recurso de versión.

Licencia:
Los miembros de su organización deben tener una licencia asignada para la extensión de tipo de usuario de ArcGIS Advanced Editing para utilizar esta operación.

Request parameters

ParameterDetails
f

The output response format. The default response format is html. This parameter is optional.

Values: html | json

sessionId

The client-generated session ID (GUID). This parameter is required.

Syntax : sessionId = {3F2504E0-4F89-41D3-9A0C-0305E82C3301}

outSR

The output spatial reference. This parameter is required.

Syntax: {wkid=<wkid>}

Example: outSR = {wkid=4326}

This parameter was introduced at ArcGIS Enterprise 11.1.

JSON Response syntax

{
  "conflicts" : [
    {
      "layerId": long,
      "updateUpdateConflicts": [
        {
          "branchVersion": {
            "attributes": {
              "OBJECTID": 581,
              "SUBTYPE": 3,
                . . .
              "SHAPE.STLength()": 132.5
            },
            "geometry": {
              "hasZ": true,
              "hasM": true,
              "paths": [
                . . .
              ]
            }
          },
          "ancestorVersion": {
            "attributes": {
              "OBJECTID": 581,
              "SUBTYPE": 3,
                . . .
              "SHAPE.STLength()": 132.5
            },
            "geometry": {
              "hasZ": true,
              "hasM": true,
              "paths": [
                . . .
              ]
            }
          },
          "defaultVersion": {
            "attributes": {
              "OBJECTID": 581,
              "SUBTYPE": 3,
                . . .
              "SHAPE.STLength()": 132.5
            },
            "geometry": {
              "hasZ": true,
              "hasM": true,
              "paths": [
                . . .
              ]
            }
          },
          "note": "notes", 
          "isInspected": <true | false> 
        }
      ],
      "updateDeleteConflicts": [
        {
          "branchVersion": {
              . . .
          },
          "ancestorVersion": {
              . . .
          },
          "note": "notes", 
          "isInspected": <true | false> 
        }
      ],
	     "deleteUpdateConflicts": [{
        {
          "ancestorVersion": {
              . . .
          },
          "defaultVersion": {
              . . .
          },
          "note": "notes", 
          "isInspected": <true | false> 
        }
      ]
    }
  ],
  "success" : <true | false>,
  "error" : { // only if success is false
    "extendedCode" : <HRESULT>,
    "message" : <error message>,
    "details" : [ <detail> ]
  }
}

Example usage

The example below returns the conflicts for a named version using the conflicts operation.

Request URL and parameters:

https://myserver.esri.com/server/rest/services/LandUse/VersionManagementServer/versions/<versionGuid>/conflicts

JSON response:

{
 "conflicts": [
  {
   "layerId": 0,
   "updateUpdateConflicts": [
    {
     "branchVersion": {
      "attributes": {
       "objectid": 1,
       "buildingid": "1",
       "facilitykey": "Building M",
       "shortname": "M",
       "bldgarea": 1768.9923984,
       "accesstype": "Employee",
       "condition": "Excellent",
       "ownedby": 1,
       "maintby": 1,
       "lastupdate": 1308068821000,
       "lasteditor": "Esri",
       "shortname1": null,
       "bldgtype": null,
       "globalid": "{126BE255-1E01-44B6-A957-1104EB11D9BF}",
       "created_user": null,
       "created_date": null,
       "last_edited_user": "publisher1",
       "last_edited_date": 1638822851000,
       "st_area(shape)": 1768.98881048752605,
       "st_length(shape)": 178.404835533569781
      },
      "geometry": {
       "hasZ": true,
       "rings": [
        [
         [
          6801192.1862077713,
          1839874.45668251812,
          0
         ],
         [
          6801251.53254577518,
          1839874.88253468275,
          0
         ],
         [
          6801251.751377359,
          1839845.12439210713,
          0
         ],
         [
          6801192.30431777239,
          1839844.69722759724,
          0
         ],
         [
          6801192.09598486125,
          1839874.45569826663,
          0
         ],
         [
          6801192.1862077713,
          1839874.45668251812,
          0
         ]
        ]
       ]
      }
     },
     "ancestorVersion": {
      "attributes": {
       "objectid": 1,
       "buildingid": "1",
       "facilitykey": "Building N",
       "shortname": "N",
       "bldgarea": 1768.9923984,
       "accesstype": "Employee",
       "condition": "Excellent",
       "ownedby": 1,
       "maintby": 1,
       "lastupdate": 1308068821000,
       "lasteditor": "Esri",
       "shortname1": null,
       "bldgtype": null,
       "globalid": "{126BE255-1E01-44B6-A957-1104EB11D9BF}",
       "created_user": null,
       "created_date": null,
       "last_edited_user": "publisher1",
       "last_edited_date": 1633042076000,
       "st_area(shape)": 1768.98881048752605,
       "st_length(shape)": 178.404835533569781
      },
      "geometry": {
       "hasZ": true,
       "rings": [
        [
         [
          6801192.1862077713,
          1839874.45668251812,
          0
         ],
         [
          6801251.53254577518,
          1839874.88253468275,
          0
         ],
         [
          6801251.751377359,
          1839845.12439210713,
          0
         ],
         [
          6801192.30431777239,
          1839844.69722759724,
          0
         ],
         [
          6801192.09598486125,
          1839874.45569826663,
          0
         ],
         [
          6801192.1862077713,
          1839874.45668251812,
          0
         ]
        ]
       ]
      }
     },
     "defaultVersion": {
      "attributes": {
       "objectid": 1,
       "buildingid": "1",
       "facilitykey": "Building O",
       "shortname": "O",
       "bldgarea": 1768.9923984,
       "accesstype": "Employee",
       "condition": "Excellent",
       "ownedby": 1,
       "maintby": 1,
       "lastupdate": 1308068821000,
       "lasteditor": "Esri",
       "shortname1": null,
       "bldgtype": null,
       "globalid": "{126BE255-1E01-44B6-A957-1104EB11D9BF}",
       "created_user": null,
       "created_date": null,
       "last_edited_user": "publisher1",
       "last_edited_date": 1638822829000,
       "st_area(shape)": 1768.98881048752605,
       "st_length(shape)": 178.404835533569781
      },
      "geometry": {
       "hasZ": true,
       "rings": [
        [
         [
          6801192.1862077713,
          1839874.45668251812,
          0
         ],
         [
          6801251.53254577518,
          1839874.88253468275,
          0
         ],
         [
          6801251.751377359,
          1839845.12439210713,
          0
         ],
         [
          6801192.30431777239,
          1839844.69722759724,
          0
         ],
         [
          6801192.09598486125,
          1839874.45569826663,
          0
         ],
         [
          6801192.1862077713,
          1839874.45668251812,
          0
         ]
        ]
       ]
      }
     },
     "note": "",
     "isInspected": false
    }
   ]
  }
 ],
 "success": true
}