<?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: How do you force a GP tool to release it's output in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-do-you-force-a-gp-tool-to-release-it-s-output/m-p/18039#M1419</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you found a way to resolve this? I'm having a similar issue with a shapefile after using arcpy.ImportMetadata_conversion. The lock persists until I close Pythonwin and using del arcpy doesn't help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Nov 2013 14:04:13 GMT</pubDate>
    <dc:creator>SarahSchwarzer2</dc:creator>
    <dc:date>2013-11-27T14:04:13Z</dc:date>
    <item>
      <title>How do you force a GP tool to release it's output</title>
      <link>https://community.esri.com/t5/python-questions/how-do-you-force-a-gp-tool-to-release-it-s-output/m-p/18037#M1417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can see that I get a file lock on the KMZ output file after using MapToKML_conversion while still in the script, or still in Pythonwin. (I can't rename it, delete it etc). 10.1 SP1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My workflow exports the map to a KMZ and then needs to upzip the file to extract the doc.kml inside.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I re-run the script without editing I trip up on this file lock.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I exit Pythonwin something cleans up the lock, so what could I do inside the script?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried a del arcpy without success. Some people have success by encapsulating the tool in a function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sometimes an arcpy.RefreshCatalog() works with featureclasses, but in this case it is a system file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A with... gpTool: would be nice!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe it is just another Annoyance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 07:43:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-you-force-a-gp-tool-to-release-it-s-output/m-p/18037#M1417</guid>
      <dc:creator>KimOllivier</dc:creator>
      <dc:date>2013-04-03T07:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do you force a GP tool to release it's output</title>
      <link>https://community.esri.com/t5/python-questions/how-do-you-force-a-gp-tool-to-release-it-s-output/m-p/18038#M1418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A last ditch idea: subprocess the gp command? As the subprocess ends, so does the lock.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 14:37:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-you-force-a-gp-tool-to-release-it-s-output/m-p/18038#M1418</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2013-04-03T14:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do you force a GP tool to release it's output</title>
      <link>https://community.esri.com/t5/python-questions/how-do-you-force-a-gp-tool-to-release-it-s-output/m-p/18039#M1419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you found a way to resolve this? I'm having a similar issue with a shapefile after using arcpy.ImportMetadata_conversion. The lock persists until I close Pythonwin and using del arcpy doesn't help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 14:04:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-you-force-a-gp-tool-to-release-it-s-output/m-p/18039#M1419</guid>
      <dc:creator>SarahSchwarzer2</dc:creator>
      <dc:date>2013-11-27T14:04:13Z</dc:date>
    </item>
  </channel>
</rss>

