<?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: Preventing in_memory layer from being removed from table of contect after running Python tool? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/preventing-in-memory-layer-from-being-removed-from/m-p/6291#M545</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you running this tool in ArcMap or Pro? I believe once you close out of the program the In_memory is deleted.&lt;/P&gt;&lt;P&gt;Do you have a arcpy.Delete_management("in_memory\MN__Table") at the end of you script?&lt;/P&gt;&lt;P&gt;Your best bet is to write\export the report out then the next time you run the script overwrite it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 May 2019 22:52:59 GMT</pubDate>
    <dc:creator>CCWeedcontrol</dc:creator>
    <dc:date>2019-05-30T22:52:59Z</dc:date>
    <item>
      <title>Preventing in_memory layer from being removed from table of contect after running Python tool?</title>
      <link>https://community.esri.com/t5/python-questions/preventing-in-memory-layer-from-being-removed-from/m-p/6290#M544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am creating a python tool that will be used by multiple people, part of the python tool I am creating I want to run a Statistics_analysis report in_memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't need to save it (just view it once) and our departments shared folder location has spaces in it name so I couldn't save it here even if I wanted to since you can't save info tables to a path with any spaces.&lt;/P&gt;&lt;P&gt;The tool works perfectly except for the fact the layer just disappear once the tool is complete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.Statistics_analysis(r'GROUP\POINTS\GPS Pipe Point', r"in_memory\MN__Table", 'COLLECTIONDATE FIRST;COLLECTIONDATE LAST', 'GPSNUMBER')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2019 20:08:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/preventing-in-memory-layer-from-being-removed-from/m-p/6290#M544</guid>
      <dc:creator>MeganWelch1</dc:creator>
      <dc:date>2019-05-30T20:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing in_memory layer from being removed from table of contect after running Python tool?</title>
      <link>https://community.esri.com/t5/python-questions/preventing-in-memory-layer-from-being-removed-from/m-p/6291#M545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you running this tool in ArcMap or Pro? I believe once you close out of the program the In_memory is deleted.&lt;/P&gt;&lt;P&gt;Do you have a arcpy.Delete_management("in_memory\MN__Table") at the end of you script?&lt;/P&gt;&lt;P&gt;Your best bet is to write\export the report out then the next time you run the script overwrite it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2019 22:52:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/preventing-in-memory-layer-from-being-removed-from/m-p/6291#M545</guid>
      <dc:creator>CCWeedcontrol</dc:creator>
      <dc:date>2019-05-30T22:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing in_memory layer from being removed from table of contect after running Python tool?</title>
      <link>https://community.esri.com/t5/python-questions/preventing-in-memory-layer-from-being-removed-from/m-p/6292#M546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could save it to the scratch fgdb.&lt;/P&gt;&lt;P&gt;see the value of env.scratchGDB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2019 10:09:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/preventing-in-memory-layer-from-being-removed-from/m-p/6292#M546</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2019-05-31T10:09:08Z</dc:date>
    </item>
  </channel>
</rss>

