Is This Content Helpful?
We're glad to know this article was helpful.
Running a standalone geoprocessing script from a Python IDE returns the error "IndexError: list index out of range". An example of the message in the Interactive Window can be seen in the screenshot below.
The script may contain arguments that must be passed into the script by the user at runtime.
Depending on the structure of the script, pass in the appropriate arguments. These can be identified by reviewing the code prior to executing the script.