<?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 Setting up layer for offline sync whose data gets truncated daily from another database in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/setting-up-layer-for-offline-sync-whose-data-gets/m-p/1396170#M8120</link>
    <description>&lt;P&gt;I currently have a non-editable polygon layer whose data runs a nightly SQL script, pulling data from our CAMA system onto our enterprise database connection. The current workflow is to run a nightly job that TRUNCATE the table and then INSERTs the data from CAMA into our database.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I am hoping to add the capability to take the data offline on field maps. When taking the layer offline, on the database , new fields are added to the table:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;GDB_ARCHIVE_OID&lt;/LI&gt;&lt;LI&gt;GlobalID&lt;/LI&gt;&lt;LI&gt;GDB_FROM_DATE&lt;/LI&gt;&lt;LI&gt;GDB_TO_DATE&lt;/LI&gt;&lt;LI&gt;GDB_ROW_CREATE_REPLICA_GUID&lt;/LI&gt;&lt;LI&gt;GDB_ROW_EXPIRE_REPLICA_GUID&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;With this, the current SQL Script syncing with our CAMA system becomes detrimental to maintaining offline capability on field maps. Because I am unsure how the offline data collection process works on the database side of things. I am wondering what would be best practice on how to approach creating a new SQL Script.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Mar 2024 21:07:06 GMT</pubDate>
    <dc:creator>KL_MSB</dc:creator>
    <dc:date>2024-03-14T21:07:06Z</dc:date>
    <item>
      <title>Setting up layer for offline sync whose data gets truncated daily from another database</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/setting-up-layer-for-offline-sync-whose-data-gets/m-p/1396170#M8120</link>
      <description>&lt;P&gt;I currently have a non-editable polygon layer whose data runs a nightly SQL script, pulling data from our CAMA system onto our enterprise database connection. The current workflow is to run a nightly job that TRUNCATE the table and then INSERTs the data from CAMA into our database.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I am hoping to add the capability to take the data offline on field maps. When taking the layer offline, on the database , new fields are added to the table:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;GDB_ARCHIVE_OID&lt;/LI&gt;&lt;LI&gt;GlobalID&lt;/LI&gt;&lt;LI&gt;GDB_FROM_DATE&lt;/LI&gt;&lt;LI&gt;GDB_TO_DATE&lt;/LI&gt;&lt;LI&gt;GDB_ROW_CREATE_REPLICA_GUID&lt;/LI&gt;&lt;LI&gt;GDB_ROW_EXPIRE_REPLICA_GUID&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;With this, the current SQL Script syncing with our CAMA system becomes detrimental to maintaining offline capability on field maps. Because I am unsure how the offline data collection process works on the database side of things. I am wondering what would be best practice on how to approach creating a new SQL Script.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 21:07:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/setting-up-layer-for-offline-sync-whose-data-gets/m-p/1396170#M8120</guid>
      <dc:creator>KL_MSB</dc:creator>
      <dc:date>2024-03-14T21:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up layer for offline sync whose data gets truncated daily from another database</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/setting-up-layer-for-offline-sync-whose-data-gets/m-p/1396216#M8121</link>
      <description>&lt;P&gt;Another route would be to edit your polygons in place. We do something like that for our parcels, CAMA, etc., and it looks like this:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;SQL queries the source table&lt;/LI&gt;&lt;LI&gt;Python API queries the polygon layer&lt;/LI&gt;&lt;LI&gt;Compare the two tables&lt;OL&gt;&lt;LI&gt;Result of "compare" function can identify adds, updates, and deletes&lt;/LI&gt;&lt;LI&gt;All other rows are unchanged&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Use Python API &lt;STRONG&gt;edit_features&lt;/STRONG&gt; to send adds, updates, and deletes to the polygon layer&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;It would take some tweaking to fit your particular situation, but we've found it to be a good approach. Our CAMA layer has something like 48,000 points in it, but only a few dozen might be edited on a given day. By identifying and selectively editing those few records, the bulk of the data can stay put, and we don't need to truncate anything.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 18:42:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/setting-up-layer-for-offline-sync-whose-data-gets/m-p/1396216#M8121</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2024-03-14T18:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up layer for offline sync whose data gets truncated daily from another database</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/setting-up-layer-for-offline-sync-whose-data-gets/m-p/1396266#M8122</link>
      <description>&lt;P&gt;I could understand how that would work when using SQL to update between two tables. However, I am unsure how it would work while trying to maintain Offline Editing Capabilities. While running with a test dataset, I discovered that deleting the data does not work as GDB_ARCHIVE_OID could not be NULL. This made me more aware of trying to maintain the integrity of data created by enabling Archiving and Replica Tracking.&lt;/P&gt;&lt;P&gt;I was curious with this offline workflow on field maps what considerations must be made to the SQL script.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;- Kevin Li&lt;/P&gt;&lt;P&gt;Matanuska Susitna Borough GIS&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 20:00:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/setting-up-layer-for-offline-sync-whose-data-gets/m-p/1396266#M8122</guid>
      <dc:creator>KL_MSB</dc:creator>
      <dc:date>2024-03-14T20:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up layer for offline sync whose data gets truncated daily from another database</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/setting-up-layer-for-offline-sync-whose-data-gets/m-p/1396268#M8123</link>
      <description>&lt;P&gt;Given that it would edit your features in place, it would work quite well. Some of our layers we update this way are used in an offline capacity, and there is no issue. When the source data has adds or deletes, those are made, everything else is simply edited in place or left alone, so any internal fields used to link features to the offline copy would still be in place.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 20:03:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/setting-up-layer-for-offline-sync-whose-data-gets/m-p/1396268#M8123</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2024-03-14T20:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up layer for offline sync whose data gets truncated daily from another database</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/setting-up-layer-for-offline-sync-whose-data-gets/m-p/1396371#M8128</link>
      <description>&lt;P&gt;Could I get some further detail as to what the "Compare Function" is? A geoprocessing tool, SQL statement or a python function?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 00:44:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/setting-up-layer-for-offline-sync-whose-data-gets/m-p/1396371#M8128</guid>
      <dc:creator>KL_MSB</dc:creator>
      <dc:date>2024-03-15T00:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up layer for offline sync whose data gets truncated daily from another database</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/setting-up-layer-for-offline-sync-whose-data-gets/m-p/1396565#M8134</link>
      <description>&lt;P&gt;It's a method on the GeoAccessor, Esri's version of a spatial dataframe.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#geoaccessor" target="_blank"&gt;https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#geoaccessor&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can also use pandas.DataFrame.compare() to compare two dataframes, but it operates differently.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 14:54:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/setting-up-layer-for-offline-sync-whose-data-gets/m-p/1396565#M8134</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2024-03-15T14:54:13Z</dc:date>
    </item>
  </channel>
</rss>

