<?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 arcpy DisableEditorTracking_management in ArcMap Questions</title>
    <link>https://community.esri.com/t5/arcmap-questions/arcpy-disableeditortracking-management/m-p/1135262#M3335</link>
    <description>&lt;P&gt;ArcGIS Desktop 10.6.1.&amp;nbsp; Creating command line arcpy script&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;Get a list of databases within the gdb, and a list of associated feature classes for each database.&amp;nbsp; Then sequentially, update a field called "Admin_Date" w/ today's date for each feature class, within each database.&lt;/P&gt;&lt;P&gt;This works perfectly.&amp;nbsp; However, I'm trying to disable tracking, so the tracking fields are not updated when "Admin_Date" is populated.&amp;nbsp; Below is the code:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;arcpy&lt;BR /&gt;&lt;SPAN&gt;#Set Overwrite Option&lt;BR /&gt;&lt;/SPAN&gt;arcpy.env.overwriteOutput = &lt;SPAN&gt;True&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;# set the workspace to be able to use the ListDatasets and ListFeatureClasses&lt;BR /&gt;&lt;/SPAN&gt;arcpy.env.workspace = &lt;SPAN&gt;r"C:\Users\Forestry_GIS\Forestry_GIS.gdb"&lt;BR /&gt;&lt;/SPAN&gt;fds = arcpy.ListDatasets(&lt;SPAN&gt;feature_type&lt;/SPAN&gt;=&lt;SPAN&gt;'Feature'&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;for &lt;/SPAN&gt;fd &lt;SPAN&gt;in &lt;/SPAN&gt;fds:&lt;BR /&gt;    fcs = arcpy.ListFeatureClasses(&lt;SPAN&gt;feature_dataset&lt;/SPAN&gt;=fd)&lt;BR /&gt;    &lt;SPAN&gt;for &lt;/SPAN&gt;fc &lt;SPAN&gt;in &lt;/SPAN&gt;fcs:&lt;BR /&gt;        &lt;SPAN&gt;print &lt;/SPAN&gt;(&lt;SPAN&gt;'Database: ' &lt;/SPAN&gt;+ fd + &lt;SPAN&gt;' Feature Class: ' &lt;/SPAN&gt;+ fc)&lt;BR /&gt;        arcpy.ClearWorkspaceCache_management()&lt;BR /&gt;        arcpy.DisableEditorTracking_management(fc)&lt;BR /&gt;        &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;"Finshed Disable Editor Tracking"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;I get the following error when I run the above code:&lt;BR /&gt;Database: Forestry Feature Class: Usal_Ownership&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "UpDateAdminDate_Finalet.py", line 20, in &amp;lt;module&amp;gt; "DISABLE_LAST_EDIT_DATE")&lt;BR /&gt;File "C:\Program Files (x86)\ArcGIS\Desktop10.6\ArcPy\arcpy\management.py", line 3884, in DisableEditorTracking&lt;BR /&gt;raise arcgisscripting.ExecuteError: ERROR 000464: Cannot get exclusive schema lock. Either being edited or in use by another application.&lt;BR /&gt;Failed to execute (DisableEditorTracking).&lt;BR /&gt;&lt;BR /&gt;Any suggestions to allow DisableEditorTracking_Management to work.&lt;BR /&gt;Thank You,&lt;BR /&gt;Jeff&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jan 2022 03:41:10 GMT</pubDate>
    <dc:creator>JeffHouser</dc:creator>
    <dc:date>2022-01-21T03:41:10Z</dc:date>
    <item>
      <title>arcpy DisableEditorTracking_management</title>
      <link>https://community.esri.com/t5/arcmap-questions/arcpy-disableeditortracking-management/m-p/1135262#M3335</link>
      <description>&lt;P&gt;ArcGIS Desktop 10.6.1.&amp;nbsp; Creating command line arcpy script&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;Get a list of databases within the gdb, and a list of associated feature classes for each database.&amp;nbsp; Then sequentially, update a field called "Admin_Date" w/ today's date for each feature class, within each database.&lt;/P&gt;&lt;P&gt;This works perfectly.&amp;nbsp; However, I'm trying to disable tracking, so the tracking fields are not updated when "Admin_Date" is populated.&amp;nbsp; Below is the code:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;arcpy&lt;BR /&gt;&lt;SPAN&gt;#Set Overwrite Option&lt;BR /&gt;&lt;/SPAN&gt;arcpy.env.overwriteOutput = &lt;SPAN&gt;True&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;# set the workspace to be able to use the ListDatasets and ListFeatureClasses&lt;BR /&gt;&lt;/SPAN&gt;arcpy.env.workspace = &lt;SPAN&gt;r"C:\Users\Forestry_GIS\Forestry_GIS.gdb"&lt;BR /&gt;&lt;/SPAN&gt;fds = arcpy.ListDatasets(&lt;SPAN&gt;feature_type&lt;/SPAN&gt;=&lt;SPAN&gt;'Feature'&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;for &lt;/SPAN&gt;fd &lt;SPAN&gt;in &lt;/SPAN&gt;fds:&lt;BR /&gt;    fcs = arcpy.ListFeatureClasses(&lt;SPAN&gt;feature_dataset&lt;/SPAN&gt;=fd)&lt;BR /&gt;    &lt;SPAN&gt;for &lt;/SPAN&gt;fc &lt;SPAN&gt;in &lt;/SPAN&gt;fcs:&lt;BR /&gt;        &lt;SPAN&gt;print &lt;/SPAN&gt;(&lt;SPAN&gt;'Database: ' &lt;/SPAN&gt;+ fd + &lt;SPAN&gt;' Feature Class: ' &lt;/SPAN&gt;+ fc)&lt;BR /&gt;        arcpy.ClearWorkspaceCache_management()&lt;BR /&gt;        arcpy.DisableEditorTracking_management(fc)&lt;BR /&gt;        &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;"Finshed Disable Editor Tracking"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;I get the following error when I run the above code:&lt;BR /&gt;Database: Forestry Feature Class: Usal_Ownership&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "UpDateAdminDate_Finalet.py", line 20, in &amp;lt;module&amp;gt; "DISABLE_LAST_EDIT_DATE")&lt;BR /&gt;File "C:\Program Files (x86)\ArcGIS\Desktop10.6\ArcPy\arcpy\management.py", line 3884, in DisableEditorTracking&lt;BR /&gt;raise arcgisscripting.ExecuteError: ERROR 000464: Cannot get exclusive schema lock. Either being edited or in use by another application.&lt;BR /&gt;Failed to execute (DisableEditorTracking).&lt;BR /&gt;&lt;BR /&gt;Any suggestions to allow DisableEditorTracking_Management to work.&lt;BR /&gt;Thank You,&lt;BR /&gt;Jeff&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 03:41:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/arcpy-disableeditortracking-management/m-p/1135262#M3335</guid>
      <dc:creator>JeffHouser</dc:creator>
      <dc:date>2022-01-21T03:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy DisableEditorTracking_management</title>
      <link>https://community.esri.com/t5/arcmap-questions/arcpy-disableeditortracking-management/m-p/1135742#M3349</link>
      <description>&lt;P&gt;For solution to my original posting, I tested the followling posting &amp;amp; replies on the Esri Community site:&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/logistics-questions/editor-tracking/td-p/414772" target="_blank"&gt;https://community.esri.com/t5/logistics-questions/editor-tracking/td-p/414772&lt;/A&gt;.&amp;nbsp; This solution prevents the "DisableEditorTracking_Management" error 000464.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 05:45:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/arcpy-disableeditortracking-management/m-p/1135742#M3349</guid>
      <dc:creator>JeffHouser</dc:creator>
      <dc:date>2022-01-21T05:45:05Z</dc:date>
    </item>
  </channel>
</rss>

