Skip to main content
Question

Esri Extract changes API - Utility Network Delta changes

  • Dec 1, 2026 4:19 PM UTC
  • 3 replies
  • 17 views

fmeuser19
Contributor
Forum|alt.badge.img+1

Hello Experts

I am working on Gas utility network management on Esri Enterprise 11.5. The map/feature service service are published to support version management (branched versioned - NOT HOSTED). As part of the work flow, whenever GIS data is edited , those delta changes needs to update the Postgres database . As of now, current FME workflow , queries feature layer and gets all records and compares with destination and finds the changes. This is cumbersome and time consuming. 

I am looking for example/use case how to efficiently query the everyday delta changes in Esri and get those records and update destination effectively. 

  • capabilities: "Query,Extract,ChangeTracking"
  • hasBranchVersionedData: true, hasArchivedData: true
  • syncEnabled: false
  • supportsDisconnectedEditing: false
  • maxRecordCount: 2000
  • extractChangesCapabilities:
    • supportsServerGens: true
    • supportsFeatureReturn: true
    • supportsReturnIdsOnly: true
    • supportsLayerQueries: false, supportsGeometry: false
    • supportsFieldsToCompare: true

I understand the concept of serverGens. 

 

serverGens=0 returning the full dataset is expected. Use it once as your baseline, then switch to a saved checkpoint.

  • Baseline. POST extractChanges with layers=0, serverGens=0, returnInserts=true. Load the result into Postgres. The response includes layerServerGens, so save the serverGen for your layer id. You can also see the current values at https://<server>/arcgis/rest/services/<service>/FeatureServer?f=pjson under changeTrackingInfo.layerServerGens, but the baseline response is the safer source.
  • Daily run. POST with layers=0, serverGens=<saved value>, returnInserts=true, returnUpdates=true, returnDeletes=true. A single value returns everything changed since that generation. Your service reports supportsServerGens: true, so you can use this instead of layerServerGens.
  • Checkpoint. After the Postgres update commits, overwrite the saved value with the serverGen from that response. If a run fails, the next one retries from the same point.
    Expiry. If the saved value falls below the layer’s minServerGen, the delta can’t be computed. Do a full reload.

 Anyone tried this ? or any working example? 

3 replies

carlm
Supporter
Forum|alt.badge.img+24
  • Supporter
  • Dec 1, 2026 4:49 PM UTC

Hi, I have developed a workflow that bring in only the changes on the version using the REST API:

 https://developers.arcgis.com/rest/services-reference/enterprise/differences/

What I did:

  • Get the Version Info, which will proabably be on the Default (VersionManagementServer/versionInfos)
  • Get the version Guid
  • Generate a sessionId
  • Start Reading (VersionManagementServer/versions/@Value(versionGuid)/startReading)
  • Fetch your layerID and layer Info
  • Get the differences for your layers (VersionManagementServer/versions/@Value(versionGuid)/differences)
    • Insert
    • Update
    • Delete

A trick when you have a lot of attributes is to fetch the differences but only extract the objectIds, otherwise it might be too big.

For the other part of the workflow it would be more custom to your case.

Resolve domain value, filter data by Subtype for example.

 

Hope this helps


fmeuser19
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • Dec 1, 2026 5:11 PM UTC

Hi ​@carlm  : Thank you for your response. I am glad that someone tried this. I am still reading /differences API from Esri and trying to comprehend. The concept of moment is still not clear to me. Moment is just a timestamp right? In case of FME fails on Tuesday, how to re-run?. Do we really need an control table in downstream to save last successful run ?. 


carlm
Supporter
Forum|alt.badge.img+24
  • Supporter
  • Dec 1, 2026 5:34 PM UTC

Moment is a timestamp in epoch time, 1 of the value comes from your version, it’s the latest changed, the other one you calculate it.

In my case I made a User Parameter that I can play with, but for the daily run it’s set to 1 day.

If you need to rerun for a week you just change that user parameter and it will fetch the differences for the past week.

 

I have another workflow that does bidirectional synchronization and for this one I have a table that monitor the last run time, and times from the 2 systems.