HOW TO
The Extract Changes operation in the ArcGIS REST API allows retrieving the changes made to a feature layer with the change tracking capability enabled. Applications can use change tracking to query changes made to the layers and tables in the service.
Change tracking capability on a hosted feature service must be enabled, as by default it is set to 'false'. The following steps describe how to enable this.

https://FQDN/webadaptor_instance/rest/admin/services/layername/FeatureServer



{"capabilities":"Query,Create,Update,Delete,Editing,Uploads,ChangeTracking"}



Note: Hosted feature services cannot have both the Sync and ChangeTracking capabilities enabled at the same time.
For enterprise geodatabase-based feature services published from ArcGIS Pro 2.2 or later, the ChangeTracking capability requires all layers and tables to be either archive enabled or branch versioned and have globalid columns.
Note: • If we publish enterprise geodatabase-based feature services and if layers have traditional versioning enabled, the extract changes option will be available under Supported Operations in the rest end URL of the service, however, we won’t be able to perform the operation. It will give us an “unable to complete operation” error message. • Unlike hosted feature layers, we can work with enterprise geodatabase-based feature services, if both the Sync and ChangeTracking capabilities are enabled at the same time. • Enterprise geodatabase-based feature services do not support disabling/enabling the ChangeTracking capability post publishing, like hosted feature layers.
Article ID: 000036676
Get help from ArcGIS experts
Start chatting now