<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Change Tracking layer doesn't have changeTrackingInfo in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/change-tracking-layer-doesn-t-have/m-p/1715055#M75339</link>
    <description>&lt;P&gt;A few things:&lt;/P&gt;&lt;P&gt;Change Tracking must actually be enabled on the service, not just Extract. Check with "ChangeTracking" in flc.properties.capabilities. Archiving + a GlobalID column should auto-enable it on an enterprise geodatabase feature service, but verify rather than assume.&lt;/P&gt;&lt;P&gt;Build the FeatureLayerCollection from the service, not the layer. Your webhook gives you a single layer's URL. changeTrackingInfo only exists on the parent service object, so go up a level:&lt;/P&gt;&lt;P&gt;python flc = FeatureLayer(layer_url, gis).container&lt;/P&gt;&lt;P&gt;Match layerServerGens entries by id, not by position. Don't assume [0] — find the entry whose id equals your layer's own id.&lt;/P&gt;&lt;P&gt;Skip the manual serverGen lookup for the first run. Call extract_changes() with no layer_servergen to get a full extract. The response hands back the current layerServerGens itself.&lt;/P&gt;&lt;P&gt;Persist that returned serverGen somewhere durable (a small state file or table) so each subsequent webhook-triggered run can pass it back in as layer_servergen=[{"id": layer_id, "serverGen": last_gen}] for an incremental extract instead of a full one.&lt;/P&gt;&lt;P&gt;Confirm your installed arcgis package version's exact extract_changes signature (layer_servergen vs older servergen, and whether return_inserts_updates_deletes or the three separate return_inserts/updates/deletes flags apply),&amp;nbsp; run help(flc.extract_changes) on the Notebook Server once to be sure, since this has changed across API versions.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jul 2026 14:41:24 GMT</pubDate>
    <dc:creator>TonyAlmeida</dc:creator>
    <dc:date>2026-07-17T14:41:24Z</dc:date>
    <item>
      <title>Change Tracking layer doesn't have changeTrackingInfo</title>
      <link>https://community.esri.com/t5/python-questions/change-tracking-layer-doesn-t-have/m-p/1714721#M75338</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm working on a workflow where a webhook fires when an attachment is added to a layer. This triggers a notebook on the notebook server to run which is code that will move this attachment to other tables based on ID. What I hoped to do in the notebook is use the extract_changes function because my layer has archiving&amp;nbsp; enabled and in turn Change Tracking which I confirmed under capabilities on the REST services page. Using extract_changes, I would fetch exactly the attachments that have been added and then I could move them accordingly. That was at least my understanding of what I could do with this but I might've misunderstood the documentation.&lt;/P&gt;&lt;P&gt;The issue is I need the&amp;nbsp;&lt;SPAN&gt;server&lt;/SPAN&gt;&lt;SPAN&gt;Gens parameter and to do that I need to pull it from changeTrackingInfo. I was trying a line like this .&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;sg = flc.properties.changeTrackingInfo.layerServerGens[0].serverGen&lt;/LI-CODE&gt;&lt;P&gt;But this doesn't work and it doesn't seem like i can access chnageTrackingInfo from properties at all.&lt;/P&gt;&lt;P&gt;I think there are other ways of going about this so if this doesn't work or I'm completely misunderstanding the functionally that that's alright but I was curious why this might be.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2026 20:38:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/change-tracking-layer-doesn-t-have/m-p/1714721#M75338</guid>
      <dc:creator>Lisa_GIS</dc:creator>
      <dc:date>2026-07-15T20:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Change Tracking layer doesn't have changeTrackingInfo</title>
      <link>https://community.esri.com/t5/python-questions/change-tracking-layer-doesn-t-have/m-p/1715055#M75339</link>
      <description>&lt;P&gt;A few things:&lt;/P&gt;&lt;P&gt;Change Tracking must actually be enabled on the service, not just Extract. Check with "ChangeTracking" in flc.properties.capabilities. Archiving + a GlobalID column should auto-enable it on an enterprise geodatabase feature service, but verify rather than assume.&lt;/P&gt;&lt;P&gt;Build the FeatureLayerCollection from the service, not the layer. Your webhook gives you a single layer's URL. changeTrackingInfo only exists on the parent service object, so go up a level:&lt;/P&gt;&lt;P&gt;python flc = FeatureLayer(layer_url, gis).container&lt;/P&gt;&lt;P&gt;Match layerServerGens entries by id, not by position. Don't assume [0] — find the entry whose id equals your layer's own id.&lt;/P&gt;&lt;P&gt;Skip the manual serverGen lookup for the first run. Call extract_changes() with no layer_servergen to get a full extract. The response hands back the current layerServerGens itself.&lt;/P&gt;&lt;P&gt;Persist that returned serverGen somewhere durable (a small state file or table) so each subsequent webhook-triggered run can pass it back in as layer_servergen=[{"id": layer_id, "serverGen": last_gen}] for an incremental extract instead of a full one.&lt;/P&gt;&lt;P&gt;Confirm your installed arcgis package version's exact extract_changes signature (layer_servergen vs older servergen, and whether return_inserts_updates_deletes or the three separate return_inserts/updates/deletes flags apply),&amp;nbsp; run help(flc.extract_changes) on the Notebook Server once to be sure, since this has changed across API versions.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2026 14:41:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/change-tracking-layer-doesn-t-have/m-p/1715055#M75339</guid>
      <dc:creator>TonyAlmeida</dc:creator>
      <dc:date>2026-07-17T14:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Change Tracking layer doesn't have changeTrackingInfo</title>
      <link>https://community.esri.com/t5/python-questions/change-tracking-layer-doesn-t-have/m-p/1715349#M75340</link>
      <description>&lt;P&gt;Ok thank you I'll give that a try!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2026 18:24:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/change-tracking-layer-doesn-t-have/m-p/1715349#M75340</guid>
      <dc:creator>Lisa_GIS</dc:creator>
      <dc:date>2026-07-20T18:24:48Z</dc:date>
    </item>
  </channel>
</rss>

