Select to view content in your preferred language

How do you enable supportsFieldsToCompare?

460
2
Jump to solution
01-14-2026 01:02 PM
Joshua-Young
MVP Regular Contributor

I am trying to create a webhook that will send an email when the status changed to a specific value. It looks like I need the fieldsToCompare array but the supportsFieldsToCompare property is set to false. I have tried using updateDefinition to change the supportsFieldsToCompare to true but I get this error "Field 'extractChangesCapabilities' cannot be updated."

This involves a hosted feature service on ArcGIS Enterprise 11.5 with Change Tracking enabled and Sync disabled. I have tried with other hosted feature services and the result is the same. Here is part of the service's definition.

"capabilities": "Query,Create,Update,Delete,Editing,Extract,Uploads,ChangeTracking",
  "xssPreventionInfo": {
    "xssInputRule": "rejectInvalid",
    "xssPreventionRule": "input",
    "xssPreventionEnabled": true
  },
  "supportsAppend": true,
  "supportsDisconnectedEditing": false,
  "maxFieldNameLength": 63,
  "extractChangesCapabilities": {
    "supportsFeatureReturn": true,
    "supportsReturnHasGeometryUpdates": false,
    "supportsLayerQueries": true,
    "supportsReturnAttachments": true,
    "supportsReturnIdsOnly": true,
    "supportsServerGens": true,
    "supportsFieldsToCompare": false,
    "supportsGeometry": true,
    "supportsReturnExtentOnly": true
  },
  "supportedAppendFormats": "featureCollection,featureService,shapefile",
  "serviceAdminOperationsOptions": {
    "deleteFromDefinition": [
      "tables",
      "layers"
    ],
    "addToDefiniton": [
      "tables",
      "layers"
    ],
    "updateDefinition": [
      "initialExtent",
      "preferredTimeReference",
      "GUIDFormat",
      "datumTransformations",
      "xssPreventionInfo",
      "preserveLayerIds",
      "zDefault",
      "serviceDescription",
      "layerOverridesEnabled",
      "allowGeometryUpdates",
      "editorTrackingInfo",
      "canUseTopologicalSortForRelationshipOrdering",
      "copyrightText",
      "description",
      "enableZDefaults",
      "hasStaticData",
      "syncRowsMovedOutsideFilter",
      "maxRecordCount",
      "enforceDefinitionQueryDuringEdit",
      "maxViewsCount",
      "capabilities",
      "supportsBiDirectionalSyncForServer",
      "maxIdsCount"
    ]
  },
  "currentVersion": 11.5,

  

"Not all those who wander are lost" ~ Tolkien
0 Kudos
1 Solution

Accepted Solutions
Joshua-Young
MVP Regular Contributor

Hello @GlenterpriseUK 

I worked with Esri Support and they have logged BUG-000182529 for my issue. They were able to confirm that supportsFieldsToCompare is not functioning correctly for hosted or referenced services in versions 11.1, 11.2, 11.5, and 12.0 even when all prerequisites are met.

The service is returning updates through ExtractChanges when I do not try to use the supportsFieldsToCompare parameter.

"Not all those who wander are lost" ~ Tolkien

View solution in original post

2 Replies
GlenterpriseUK
Esri Contributor

Hi @Joshua-Young

I just had a brief look at our Rest API Documentation and it looks like:

Support for this parameter is indicated when the service-level supportsFieldsToCompare property, under extractChangesCapabilities , is set as true . This parameter can only be included when returnUpdates is true , as only updates are evaluated with this parameter.

https://developers.arcgis.com/rest/services-reference/enterprise/extract-changes-feature-service/

I was not able to spot the presence of returnUpdates above.

Hope the above helps.

Regards,

Glen

0 Kudos
Joshua-Young
MVP Regular Contributor

Hello @GlenterpriseUK 

I worked with Esri Support and they have logged BUG-000182529 for my issue. They were able to confirm that supportsFieldsToCompare is not functioning correctly for hosted or referenced services in versions 11.1, 11.2, 11.5, and 12.0 even when all prerequisites are met.

The service is returning updates through ExtractChanges when I do not try to use the supportsFieldsToCompare parameter.

"Not all those who wander are lost" ~ Tolkien