<?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: Updating feature class from view on daily using python in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/updating-feature-class-from-view-on-daily-using/m-p/1548443#M9334</link>
    <description>&lt;P&gt;Thanks Robert.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Oct 2024 15:53:41 GMT</pubDate>
    <dc:creator>vijaybadugu</dc:creator>
    <dc:date>2024-10-14T15:53:41Z</dc:date>
    <item>
      <title>Updating feature class from view on daily using python</title>
      <link>https://community.esri.com/t5/geodatabase-questions/updating-feature-class-from-view-on-daily-using/m-p/1548429#M9332</link>
      <description>&lt;P&gt;We have created a view to get the data from multiple tables. I tried publishing same view with sync enabled feature service, However, it did not work due to limitation on view. So, I created same feature class with same fields, published with sync (archiving) enabled. I need to update this feature class on daily basis to see the latest data in field maps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have already python script (job) to update this feature class on daily. which deletes entire data from the feature class and copies from view.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to do this process ESRI best practices?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 15:04:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/updating-feature-class-from-view-on-daily-using/m-p/1548429#M9332</guid>
      <dc:creator>vijaybadugu</dc:creator>
      <dc:date>2024-10-14T15:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Updating feature class from view on daily using python</title>
      <link>https://community.esri.com/t5/geodatabase-questions/updating-feature-class-from-view-on-daily-using/m-p/1548430#M9333</link>
      <description>&lt;P&gt;Instead of deleting all the features every day, push inserts/updates/deletes to the layer. If you're only ever adding/updating values you can use the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/append.htm" target="_blank" rel="noopener"&gt;Append&lt;/A&gt; tool to do upserts by specifying a match key. If you need to handle deletes you can run the append then delete any rows that are no longer present in the source data.&lt;/P&gt;
&lt;P&gt;Remember that when you edit a table that has archiving enabled that every edit is tracked in your database. This means that if you delete the contents and reinsert them every day, your database is recording all those edits. If your table is large, you should consider periodically &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/trim-archive-history.htm" target="_blank" rel="noopener"&gt;trimming&lt;/A&gt; the table.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 15:16:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/updating-feature-class-from-view-on-daily-using/m-p/1548430#M9333</guid>
      <dc:creator>RobertKrisher</dc:creator>
      <dc:date>2024-10-14T15:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Updating feature class from view on daily using python</title>
      <link>https://community.esri.com/t5/geodatabase-questions/updating-feature-class-from-view-on-daily-using/m-p/1548443#M9334</link>
      <description>&lt;P&gt;Thanks Robert.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 15:53:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/updating-feature-class-from-view-on-daily-using/m-p/1548443#M9334</guid>
      <dc:creator>vijaybadugu</dc:creator>
      <dc:date>2024-10-14T15:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Updating feature class from view on daily using python</title>
      <link>https://community.esri.com/t5/geodatabase-questions/updating-feature-class-from-view-on-daily-using/m-p/1548855#M9336</link>
      <description>&lt;P&gt;How to preserve Globalids and objectids during this execution ?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 21:29:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/updating-feature-class-from-view-on-daily-using/m-p/1548855#M9336</guid>
      <dc:creator>vijaybadugu</dc:creator>
      <dc:date>2024-10-15T21:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Updating feature class from view on daily using python</title>
      <link>https://community.esri.com/t5/geodatabase-questions/updating-feature-class-from-view-on-daily-using/m-p/1548856#M9337</link>
      <description>&lt;P&gt;If you're just updating rows in the table every night global ids and object ids will be preserved because you're not deleting features every night.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 21:35:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/updating-feature-class-from-view-on-daily-using/m-p/1548856#M9337</guid>
      <dc:creator>RobertKrisher</dc:creator>
      <dc:date>2024-10-15T21:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Updating feature class from view on daily using python</title>
      <link>https://community.esri.com/t5/geodatabase-questions/updating-feature-class-from-view-on-daily-using/m-p/1549221#M9341</link>
      <description>&lt;P&gt;I checked append tool. it did not update existing report based on matching field and always inserts new record. I am using arcgis pro 3.3&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 19:12:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/updating-feature-class-from-view-on-daily-using/m-p/1549221#M9341</guid>
      <dc:creator>vijaybadugu</dc:creator>
      <dc:date>2024-10-16T19:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Updating feature class from view on daily using python</title>
      <link>https://community.esri.com/t5/geodatabase-questions/updating-feature-class-from-view-on-daily-using/m-p/1549227#M9342</link>
      <description>&lt;P&gt;Double-check that the data type and formats of the input/target match fields are identical. As an example, if the field is a long in one database but a double in another this could cause an issue (this can happen with object id fields if you create them using views).&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 19:20:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/updating-feature-class-from-view-on-daily-using/m-p/1549227#M9342</guid>
      <dc:creator>RobertKrisher</dc:creator>
      <dc:date>2024-10-16T19:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Updating feature class from view on daily using python</title>
      <link>https://community.esri.com/t5/geodatabase-questions/updating-feature-class-from-view-on-daily-using/m-p/1549472#M9343</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have assigned GlobalID for input dataset and target dataset as a matching field in Update option,&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The results are duplicated .&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vijaybadugu_0-1729171832505.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/117437iE6399E068F7F9DCC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vijaybadugu_0-1729171832505.png" alt="vijaybadugu_0-1729171832505.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 13:32:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/updating-feature-class-from-view-on-daily-using/m-p/1549472#M9343</guid>
      <dc:creator>vijaybadugu</dc:creator>
      <dc:date>2024-10-17T13:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Updating feature class from view on daily using python</title>
      <link>https://community.esri.com/t5/geodatabase-questions/updating-feature-class-from-view-on-daily-using/m-p/1549481#M9344</link>
      <description>&lt;P&gt;Field names for the screenshot would be appreciated, so I'm going to have to make some assumptions. I'm going to call your first column a GUID, your second column and Object ID, and the third column a Global ID.&lt;/P&gt;
&lt;P&gt;Global IDs are a special, unique identifier for a table, so your input dataset (the one with changes you want to push) needs to reference the Global ID of each row in the target dataset (the one being updated). So your input dataset should have a foreign key column the values from the Global ID (third column) of the target table. This will allow the append tool to know how to link the values from the two tables.&lt;/P&gt;
&lt;P&gt;In your screenshot it looks like both tables have their own unique Global IDs, which means they'll never be able to match, which is why your rows are being appended and not updated..&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 13:48:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/updating-feature-class-from-view-on-daily-using/m-p/1549481#M9344</guid>
      <dc:creator>RobertKrisher</dc:creator>
      <dc:date>2024-10-17T13:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Updating feature class from view on daily using python</title>
      <link>https://community.esri.com/t5/geodatabase-questions/updating-feature-class-from-view-on-daily-using/m-p/1549648#M9345</link>
      <description>&lt;P&gt;In this below logs, 737 records were inserted and 737 were updated.&amp;nbsp; How it is possible two DML operations at the same time using APPEND&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vijaybadugu_0-1729190918445.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/117485i32D2FA928B7BEB5D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vijaybadugu_0-1729190918445.png" alt="vijaybadugu_0-1729190918445.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 18:49:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/updating-feature-class-from-view-on-daily-using/m-p/1549648#M9345</guid>
      <dc:creator>vijaybadugu</dc:creator>
      <dc:date>2024-10-17T18:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Updating feature class from view on daily using python</title>
      <link>https://community.esri.com/t5/geodatabase-questions/updating-feature-class-from-view-on-daily-using/m-p/1549653#M9346</link>
      <description>&lt;P&gt;The tool updated the rows it found matches for, then inserted the rows it couldn't find matches for. Doing both an insert and an update is what the append tool does when you select the Matching fields options. This is why this is often referred to as doing an "Upsert" because the tool will first "Update" rows it matches, then "Insert" the rows it doesn't.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 19:01:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/updating-feature-class-from-view-on-daily-using/m-p/1549653#M9346</guid>
      <dc:creator>RobertKrisher</dc:creator>
      <dc:date>2024-10-17T19:01:59Z</dc:date>
    </item>
  </channel>
</rss>

