AnsweredAssumed Answered

How to end a script tool so it ends correctly in 10.1

Question asked by narsdani on Jun 6, 2013
Latest reply on Jun 6, 2013 by narsdani
I've got a script tool that I wrote for 10.0 and I'm trying to make it work in 10.1 now.  It does in fact work--I can go to where the output file is stored on disk, but the tool never returns anything.  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 & now it has a little thought bubble icon next to it like all the intermediate messages.  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).   Anyone seen this before?  Will 10.1 Desktop not correctly run a tool created in 10.0?  Below is the code at the beginning & end of the script in case that can help sorting this out.


# Import system modules import sys, string, os, arcpy, time from arcpy import mapping as mappy   """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):    try:       # [Stuff that works]       arcpy.SetParameterAsText(13,TargetPacketPDF)    except:       raise if __name__ == "__main__":     main(sys.argv[1:])