nheick

Script Tool Completes Then Fails

Discussion created by nheick on Feb 16, 2012
Latest reply on Feb 16, 2012 by nheick
Hello,

I wrote a stand-alone Python script a few months ago that ran without error several times from IDLE.  The script gets all of the feature classes in a workspace and attempts to rebuild their spatial indexes.  I am using it on an ArcSDE geodatabase.

Today, I tried to convert it into a script tool so I can add it to a model.  When I was testing it directly from its toolbox, it would run to completion based on the informational messages I added to the script, the message window would say something like "Completed script RebuildSpatialIndexes", then give me an error that said "Failed to execute tool Rebuild Spatial Indexes"  Does anyone have any idea why it would say it completed and then say it failed?  Am I missing some kind of cleanup task?

Thanks,


Nathan

Outcomes