<?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 to end a script tool so it ends correctly in 10.1 in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-end-a-script-tool-so-it-ends-correctly-in/m-p/402214#M31670</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried disabling background processing?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jun 2013 16:15:06 GMT</pubDate>
    <dc:creator>MathewCoyle</dc:creator>
    <dc:date>2013-06-06T16:15:06Z</dc:date>
    <item>
      <title>How to end a script tool so it ends correctly in 10.1</title>
      <link>https://community.esri.com/t5/python-questions/how-to-end-a-script-tool-so-it-ends-correctly-in/m-p/402213#M31669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've got a script tool that I wrote for 10.0 and I'm trying to make it work in 10.1 now.&amp;nbsp; It does in fact work--I can go to where the output file is stored on disk, but the tool never returns anything.&amp;nbsp; The last message in the results window says "Succeeded at [time]" like it always has, but at 10.0 it had a little clock icon next to it &amp;amp; now it has a little thought bubble icon next to it like all the intermediate messages.&amp;nbsp; And the little check mark never appears, and the tool's status never gets set to complete (it keeps the little hourglass icon in the GP results window).&amp;nbsp;&amp;nbsp; Anyone seen this before?&amp;nbsp; Will 10.1 Desktop not correctly run a tool created in 10.0?&amp;nbsp; Below is the code at the beginning &amp;amp; end of the script in case that can help sorting this out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;# Import system modules import sys, string, os, arcpy, time from arcpy import mapping as mappy&amp;nbsp;&amp;nbsp; """Creates a custom map for a BOE appeal, containing a subject parcel (first parameter) and a list of comps (second parameter)""" def main(args=None): &amp;nbsp;&amp;nbsp; try: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # [Stuff that works] &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SetParameterAsText(13,TargetPacketPDF) &amp;nbsp;&amp;nbsp; except: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise if __name__ == "__main__": &amp;nbsp;&amp;nbsp;&amp;nbsp; main(sys.argv[1:])&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 16:00:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-end-a-script-tool-so-it-ends-correctly-in/m-p/402213#M31669</guid>
      <dc:creator>DanNarsavage</dc:creator>
      <dc:date>2013-06-06T16:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to end a script tool so it ends correctly in 10.1</title>
      <link>https://community.esri.com/t5/python-questions/how-to-end-a-script-tool-so-it-ends-correctly-in/m-p/402214#M31670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried disabling background processing?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 16:15:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-end-a-script-tool-so-it-ends-correctly-in/m-p/402214#M31670</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2013-06-06T16:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to end a script tool so it ends correctly in 10.1</title>
      <link>https://community.esri.com/t5/python-questions/how-to-end-a-script-tool-so-it-ends-correctly-in/m-p/402215#M31671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That sure did it.&amp;nbsp; Thanks Mathew!&amp;nbsp; Seems like a bit of a band-aid for some sort of incompatibility between 10.1 &amp;amp; Win7 threading or something like that, but it solves my problem!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 16:29:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-end-a-script-tool-so-it-ends-correctly-in/m-p/402215#M31671</guid>
      <dc:creator>DanNarsavage</dc:creator>
      <dc:date>2013-06-06T16:29:06Z</dc:date>
    </item>
  </channel>
</rss>

