<?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 Runtime error &amp;amp;lt;class 'arcgisscripting.ExecuteError'&amp;amp;gt; persists until you restart ArcMp in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/runtime-error-amp-lt-class-arcgisscripting/m-p/354208#M27838</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I frequently encounter this error after I mess up in a script: "Runtime error &amp;lt;class 'arcgisscripting.ExecuteError'&amp;gt;: ERROR 000582: Error occurred during execution."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I then fix the script, the error persists until I restart ArcGIS. This is a pain.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, say I try to export and overwrite a pdf, but the pdf is still open in Adobe Acrobat. This causes an error. So I go and close Acrobat, but the script still won't run. It will only work after I restart ArcGIS, even though nothing else changes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why is this? How can I 'flush' arcpy so I can successfully run scripts without having to restart the app?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your tips&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Mar 2012 11:17:33 GMT</pubDate>
    <dc:creator>JT2</dc:creator>
    <dc:date>2012-03-20T11:17:33Z</dc:date>
    <item>
      <title>Runtime error &amp;lt;class 'arcgisscripting.ExecuteError'&amp;gt; persists until you restart ArcMp</title>
      <link>https://community.esri.com/t5/python-questions/runtime-error-amp-lt-class-arcgisscripting/m-p/354208#M27838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I frequently encounter this error after I mess up in a script: "Runtime error &amp;lt;class 'arcgisscripting.ExecuteError'&amp;gt;: ERROR 000582: Error occurred during execution."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I then fix the script, the error persists until I restart ArcGIS. This is a pain.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, say I try to export and overwrite a pdf, but the pdf is still open in Adobe Acrobat. This causes an error. So I go and close Acrobat, but the script still won't run. It will only work after I restart ArcGIS, even though nothing else changes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why is this? How can I 'flush' arcpy so I can successfully run scripts without having to restart the app?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your tips&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 11:17:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/runtime-error-amp-lt-class-arcgisscripting/m-p/354208#M27838</guid>
      <dc:creator>JT2</dc:creator>
      <dc:date>2012-03-20T11:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error &lt;class 'arcgisscripting.ExecuteError'&gt; persists until you restart A</title>
      <link>https://community.esri.com/t5/python-questions/runtime-error-amp-lt-class-arcgisscripting/m-p/354209#M27839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You should do your debugging outside of ArcMap. Alternatively, you can put in some error checking (such as checking if an export file exists) on frequent errors so you don't run into the problem at all. Also if you are using a script tool and you have the script embedded in the tool and you click edit, you are not editing the script that is being executed. You are editing the reference script which then needs to be reimported to be executed. This is also accomplished by restarting ArcMap which sounds like the error you are having specifically.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 14:34:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/runtime-error-amp-lt-class-arcgisscripting/m-p/354209#M27839</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2012-03-20T14:34:34Z</dc:date>
    </item>
  </channel>
</rss>

