<?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>idea Tracking user who has deleted the record in the archive table in Data Management Ideas</title>
    <link>https://community.esri.com/t5/data-management-ideas/tracking-user-who-has-deleted-the-record-in-the/idi-p/972114</link>
    <description>&lt;P&gt;At the moment Editor tracking records the folowing information:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The name of the user who created it.&lt;/LI&gt;&lt;LI&gt;The date and time it was created.&lt;/LI&gt;&lt;LI&gt;The name of the user who edited it.&lt;/LI&gt;&lt;LI&gt;The date and time it was last edited.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This is great feature, however when archiving is enabled it misses such a very important information:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The name of the user who deleted it.&lt;/LI&gt;&lt;LI&gt;The date and time it was deleted.&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Tue, 08 Dec 2020 13:51:25 GMT</pubDate>
    <dc:creator>tAndriusBogvila</dc:creator>
    <dc:date>2020-12-08T13:51:25Z</dc:date>
    <item>
      <title>Tracking user who has deleted the record in the archive table</title>
      <link>https://community.esri.com/t5/data-management-ideas/tracking-user-who-has-deleted-the-record-in-the/idi-p/972114</link>
      <description>&lt;P&gt;At the moment Editor tracking records the folowing information:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The name of the user who created it.&lt;/LI&gt;&lt;LI&gt;The date and time it was created.&lt;/LI&gt;&lt;LI&gt;The name of the user who edited it.&lt;/LI&gt;&lt;LI&gt;The date and time it was last edited.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This is great feature, however when archiving is enabled it misses such a very important information:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The name of the user who deleted it.&lt;/LI&gt;&lt;LI&gt;The date and time it was deleted.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 08 Dec 2020 13:51:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-ideas/tracking-user-who-has-deleted-the-record-in-the/idi-p/972114</guid>
      <dc:creator>tAndriusBogvila</dc:creator>
      <dc:date>2020-12-08T13:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking user who has deleted the record in the archive table</title>
      <link>https://community.esri.com/t5/data-management-ideas/tracking-user-who-has-deleted-the-record-in-the/idc-p/972115#M1230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Actually geodatabase archiving combined with editor tracking needs to be used there. There is a bug NIM085153 on this issue, and it shoud be easy to implement.&lt;FONT color="#4d4d4d" face="Arial, Helvetica, sans-serif"&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;

&lt;!-- content transformation source ID: 00aE00000029fwt --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 09:03:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-ideas/tracking-user-who-has-deleted-the-record-in-the/idc-p/972115#M1230</guid>
      <dc:creator>VytautasGipiskis</dc:creator>
      <dc:date>2013-04-10T09:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking user who has deleted the record in the archive table</title>
      <link>https://community.esri.com/t5/data-management-ideas/tracking-user-who-has-deleted-the-record-in-the/idc-p/972116#M1231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Actually geodatabase archiving combined with editor tracking needs to be used there. There is a bug NIM085153 on this issue, and it shoud be easy to implement.&lt;FONT color="#4d4d4d" face="Arial, Helvetica, sans-serif"&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;

&lt;!-- content transformation source ID: 00aE00000029fwy --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 09:03:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-ideas/tracking-user-who-has-deleted-the-record-in-the/idc-p/972116#M1231</guid>
      <dc:creator>VytautasGipiskis</dc:creator>
      <dc:date>2013-04-10T09:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking user who has deleted the record in the archive table</title>
      <link>https://community.esri.com/t5/data-management-ideas/tracking-user-who-has-deleted-the-record-in-the/idc-p/972117#M1232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;vgipiskis,&lt;BR /&gt;&lt;BR /&gt;The geodatabase archiving is only possible in versioned geodatases and versions are only supported in ArcSDE geodatabases.&lt;BR /&gt;&lt;BR /&gt;The editor tracking is available in non ArcSDE geodatabases, so it would be great to had a similar function to archiving in non ArcSDE Geodatabases.&lt;BR /&gt;&lt;BR /&gt;Thanks!

&lt;!-- content transformation source ID: 00aE0000002z02R --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 13:45:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-ideas/tracking-user-who-has-deleted-the-record-in-the/idc-p/972117#M1232</guid>
      <dc:creator>Cesar_RafaelLopes</dc:creator>
      <dc:date>2013-05-22T13:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking user who has deleted the record in the archive table</title>
      <link>https://community.esri.com/t5/data-management-ideas/tracking-user-who-has-deleted-the-record-in-the/idc-p/972118#M1233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've done this in the past on SDE tables&amp;nbsp;&lt;A class="link-titled" href="https://docs.microsoft.com/en-us/sql/relational-databases/track-changes/about-change-data-capture-sql-server" title="https://docs.microsoft.com/en-us/sql/relational-databases/track-changes/about-change-data-capture-sql-server"&gt;About Change Data Capture (SQL Server) | Microsoft Docs&lt;/A&gt;&amp;nbsp;&amp;nbsp;but it's not worth all of the extra steps. If you need to establish chain of custody for a forensic IT investigation, you can get the user name of whom deleted a record from system tables and transaction logs (again, a PITA), provided you're doing daily or incremental backups.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 21:17:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-ideas/tracking-user-who-has-deleted-the-record-in-the/idc-p/972118#M1233</guid>
      <dc:creator>ThomasColson</dc:creator>
      <dc:date>2018-02-12T21:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking user who has deleted the record in the archive table</title>
      <link>https://community.esri.com/t5/data-management-ideas/tracking-user-who-has-deleted-the-record-in-the/idc-p/972119#M1234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with this statement. you can accomplish OP's idea directly in SQL Server (Or any other RDBMS) but its not easy to set up if you're not a professional DBA. &lt;/P&gt;&lt;P&gt;Having this capability directly in ESRI products would be beneficial.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2018 11:49:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-ideas/tracking-user-who-has-deleted-the-record-in-the/idc-p/972119#M1234</guid>
      <dc:creator>Lake_Worth_BeachAdmin</dc:creator>
      <dc:date>2018-08-21T11:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking user who has deleted the record in the archive table</title>
      <link>https://community.esri.com/t5/data-management-ideas/tracking-user-who-has-deleted-the-record-in-the/idc-p/1226018#M2015</link>
      <description>&lt;P&gt;This is still an issue a decade later in 2022.&lt;/P&gt;&lt;P&gt;I am using archiving and editor tracking. But the username of the user performing the delete action is is still not captured.&lt;/P&gt;&lt;P&gt;How can this be implemented?&lt;/P&gt;&lt;P&gt;I can find no record of&amp;nbsp;&lt;SPAN&gt;bug NIM085153 and its resolution, or otherwise.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 03:14:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-ideas/tracking-user-who-has-deleted-the-record-in-the/idc-p/1226018#M2015</guid>
      <dc:creator>PaulBarr</dc:creator>
      <dc:date>2022-10-27T03:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking user who has deleted the record in the archive table</title>
      <link>https://community.esri.com/t5/data-management-ideas/tracking-user-who-has-deleted-the-record-in-the/idc-p/1229713#M2035</link>
      <description>&lt;P&gt;It is now possible to capture who deleted a record in a table with standard archiving and user tracking using attribute rules.&lt;/P&gt;&lt;P&gt;It is not possible to capture the user editing the data into the same table (as the row just gets ended).&lt;/P&gt;&lt;P&gt;It is possible to capture deletes into separate logging table.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PaulBarr_0-1667948742196.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/55517iD88D8DC41E12B887/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PaulBarr_0-1667948742196.png" alt="PaulBarr_0-1667948742196.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Note this is an old screen capture, the Field should exist in your table that is being tracked. It doesn't matter which one, it is not being modified, it just needs to exist so that a calculation rule can be triggered on delete to place a record in the logging table.&lt;/P&gt;&lt;P&gt;There is no point in having a column called DeletedByfield within the table being tracked, as it is not possible to populate the result into the edited table during a delete.&lt;/P&gt;&lt;P&gt;Here is the arcade expression for the attribute rule:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;return {
       //we want to just return the value of field `Field` no change require
      "result": $feature.DeletedByUser,
       //this keyword indicates an edit that need to happen, its an array since we can make many edits
       "edit": [  
           {  
               //the other class we want to edit
               "className" : "GIS.CCC.TestDeleteLog",
               //the type of edit, in this case we want to add so we say `adds`, its an array since we can make many inserts
               "adds" : [
                       
                      {
                            //the attribute of the feature we want to add,
                            // we only want to populate the pointGuid with the globalId of the feature being created
                            "attributes":  
                             {
                                   "FeatureName": "TESTDELETEUSERTRACKING",
                                   "FeatureObjectID": $feature.OBJECTID,
                                   "FeatureGISID": $feature.OBJECTID,
                                   "DeletedBy":  GetUser(GetFeatureSet($feature)).username,
                                   "DeletedAt": Today()
                               }//,
                            //we want to use the buffered geometry to insert the polygon
                           // "geometry": none
                      }
             ]
            }
     ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;STRONG&gt;Useful web references&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-pro/data-management/advanced-gdb-attribute-rules-editing-external-features-with-attribute-rules/" target="_blank" rel="noopener noreferrer"&gt;https://www.esri.com/arcgis-blog/products/arcgis-pro/data-management/advanced-gdb-attribute-rules-editing-external-features-with-attribute-rules/&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;User Idea to allow a calculation rule without specifying another field. (not implemented).&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="https://community.esri.com/t5/attribute-rules-ideas/attribute-rules-calculation-without-attached-field/idi-p/1007568" target="_blank" rel="noopener noreferrer"&gt;https://community.esri.com/t5/attribute-rules-ideas/attribute-rules-calculation-without-attached-field/idi-p/1007568&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Edit another feature class with a calculation rule.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/attribute-rule-script-expression.htm#anchor4" target="_blank" rel="noopener noreferrer"&gt;https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/attribute-rule-script-expression.htm#anchor4&lt;/A&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Nov 2022 23:12:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-ideas/tracking-user-who-has-deleted-the-record-in-the/idc-p/1229713#M2035</guid>
      <dc:creator>PaulBarr</dc:creator>
      <dc:date>2022-11-08T23:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking user who has deleted the record in the archive table</title>
      <link>https://community.esri.com/t5/data-management-ideas/tracking-user-who-has-deleted-the-record-in-the/idc-p/1263452#M2112</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;great idea&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/495868"&gt;@PaulBarr&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We just could not get right credentials in code of described delete attribute rule.&lt;BR /&gt;I mean for deletes from ArcGIS Pro directly connected to database to get database login, and for deletes via feature service to get portal login (same like in Editor Tracking).&lt;/P&gt;&lt;P&gt;Fortunately instead of directly writing DeletedBy/DeletedAt in code of delete attribute rule we just enabled editor tracking on logging table too, and&lt;BR /&gt;now it seems to work the way we wanted.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(created_user in logging table is simply the one who deleted record in original table).&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 11:35:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-ideas/tracking-user-who-has-deleted-the-record-in-the/idc-p/1263452#M2112</guid>
      <dc:creator>MartinKrál</dc:creator>
      <dc:date>2023-03-02T11:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking user who has deleted the record in the archive table</title>
      <link>https://community.esri.com/t5/data-management-ideas/tracking-user-who-has-deleted-the-record-in-the/idc-p/1272771#M2135</link>
      <description>&lt;P&gt;The date of when a feature is deleted is stored in the SQL table of the same name suffixed by "_H", under the field "GDB_TO_DATE".&lt;/P&gt;&lt;P&gt;For example, if your feature class is called "schools" the archive table is called "schools_H".&lt;/P&gt;&lt;P&gt;They really just need to add a field for deletions like "DELETED_BY" so you could have the "WHO" of the "WHEN by WHO?" question.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 20:29:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-ideas/tracking-user-who-has-deleted-the-record-in-the/idc-p/1272771#M2135</guid>
      <dc:creator>alex_friant</dc:creator>
      <dc:date>2023-03-28T20:29:55Z</dc:date>
    </item>
  </channel>
</rss>

