<?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: Turn off geoprocessing history in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/turn-off-geoprocessing-history/m-p/161474#M12353</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ESRI technical support logged BUG-000128506 regarding &lt;STRONG&gt;SetLogHistory&lt;/STRONG&gt; function not functioning properly. I have this same issue. In my case and verified by tech support&amp;nbsp;&lt;STRONG&gt;SetLogHistory&lt;/STRONG&gt; is functioning as expected when the code is executed from within Pro from a python prompt.&amp;nbsp;&lt;STRONG&gt;SetLogHistory&lt;/STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is&lt;SPAN&gt;&amp;nbsp;also functioning as expected if the code is tied to a toolbox tool.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Feb 2020 20:05:49 GMT</pubDate>
    <dc:creator>RobertHolliday</dc:creator>
    <dc:date>2020-02-10T20:05:49Z</dc:date>
    <item>
      <title>Turn off geoprocessing history</title>
      <link>https://community.esri.com/t5/python-questions/turn-off-geoprocessing-history/m-p/161471#M12350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Arcpy is writing all my geoprocessing history to the metadata&amp;nbsp;of a&amp;nbsp;file geodatabase I am trying to delete.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script to delete the file is on another server.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the following code does not work:&lt;/P&gt;&lt;P&gt;arcpy.env.workspace = dataloc&amp;nbsp;&lt;BR /&gt; if arcpy.GetLogHistory(): &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;arcpy.SetLogHistory(False)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2019 20:25:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/turn-off-geoprocessing-history/m-p/161471#M12350</guid>
      <dc:creator>annegrimes2</dc:creator>
      <dc:date>2019-11-21T20:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Turn off geoprocessing history</title>
      <link>https://community.esri.com/t5/python-questions/turn-off-geoprocessing-history/m-p/161472#M12351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you trying to delete the history or just not create any new history as you run your scripts?&amp;nbsp; What version of ArcGIS/ArcPy are you using?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a long,drawn out process &lt;A href="https://support.esri.com/en/technical-article/000011751"&gt;described here&lt;/A&gt; that deletes existing geoprocessing history.&amp;nbsp; I've modified the code a bit and we run it the first of every month against all of our enterprise gdb's.&amp;nbsp; It also works with fgdb's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI- none of the metadata related tools are available in the ArcGIS Pro environment (Yet).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In all of our scheduled task python scripts, right after we import arcpy, we use&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;arcpy.SetLogHistory(False) so we aren't logging what we are doing.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2019 20:34:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/turn-off-geoprocessing-history/m-p/161472#M12351</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2019-11-21T20:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Turn off geoprocessing history</title>
      <link>https://community.esri.com/t5/python-questions/turn-off-geoprocessing-history/m-p/161473#M12352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe.&lt;/P&gt;&lt;P&gt;I don't want to create any new metadata content(GP History).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;arcpy.SetLogHistory(False) and it doesn't work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;My script (which resides on another server) is using python 3.6 (pro 2.4)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I just checked the metadata(see italics below) and I see a new record. It's a big problem because updates occur every 30 minutes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;EM&gt;&lt;SPAN class=""&gt;Process&lt;/SPAN&gt; &lt;/EM&gt;&lt;DL&gt;&lt;DT&gt;&lt;EM&gt;&lt;SPAN class=""&gt;Date&lt;/SPAN&gt; 2019-11-21 15:37:38&lt;/EM&gt;&lt;/DT&gt;&lt;DT&gt;&lt;EM&gt;&lt;SPAN class=""&gt;Tool location&lt;/SPAN&gt; c:\program files\arcgis\pro\Resources\ArcToolbox\toolboxes\Data Management Tools.tbx\DeleteRows&lt;/EM&gt;&lt;/DT&gt;&lt;DT&gt;&lt;EM&gt;&lt;SPAN class=""&gt;Command issued&lt;/SPAN&gt;&lt;/EM&gt;&lt;DL&gt;&lt;DT&gt;&lt;EM&gt;&lt;SPAN class=""&gt;DeleteRows \\oi-agisxx-he-x.my.site\shared_drive\Map_Service_Data\Ops_me.gdb\Ops_me&lt;/SPAN&gt;&lt;/EM&gt;&lt;/DT&gt;&lt;/DL&gt;&lt;/DT&gt;&lt;DT&gt;&lt;EM&gt;&lt;SPAN class=""&gt;Include in lineage when exporting metadata&lt;/SPAN&gt; No&lt;/EM&gt;&lt;P&gt;&lt;/P&gt;&lt;/DT&gt;&lt;/DL&gt;&lt;DIV class=""&gt;&lt;A href="#ID0ECGKA"&gt;Hide&amp;nbsp;Geoprocessing history&amp;nbsp;&lt;/A&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2019 20:50:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/turn-off-geoprocessing-history/m-p/161473#M12352</guid>
      <dc:creator>annegrimes2</dc:creator>
      <dc:date>2019-11-21T20:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Turn off geoprocessing history</title>
      <link>https://community.esri.com/t5/python-questions/turn-off-geoprocessing-history/m-p/161474#M12353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ESRI technical support logged BUG-000128506 regarding &lt;STRONG&gt;SetLogHistory&lt;/STRONG&gt; function not functioning properly. I have this same issue. In my case and verified by tech support&amp;nbsp;&lt;STRONG&gt;SetLogHistory&lt;/STRONG&gt; is functioning as expected when the code is executed from within Pro from a python prompt.&amp;nbsp;&lt;STRONG&gt;SetLogHistory&lt;/STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is&lt;SPAN&gt;&amp;nbsp;also functioning as expected if the code is tied to a toolbox tool.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2020 20:05:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/turn-off-geoprocessing-history/m-p/161474#M12353</guid>
      <dc:creator>RobertHolliday</dc:creator>
      <dc:date>2020-02-10T20:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Turn off geoprocessing history</title>
      <link>https://community.esri.com/t5/python-questions/turn-off-geoprocessing-history/m-p/1195358#M65060</link>
      <description>&lt;P&gt;It is still not working in 2.9&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 11:01:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/turn-off-geoprocessing-history/m-p/1195358#M65060</guid>
      <dc:creator>CordulaGöke</dc:creator>
      <dc:date>2022-07-25T11:01:54Z</dc:date>
    </item>
  </channel>
</rss>

