Geoprocessing error code list

2317
0
06-19-2019 04:34 PM

Geoprocessing error code list

These codes are in the 10.2 help but not in the current help for Desktop or Pro. They seem to be in the help somewhere, but they are hard to find by search.

Why these lists: using the codes with the AddIDMessage method is better than just reporting text messages -- because it links your Python Geoprocessing tool validation errors and tool errors directly to Esri's help information. This makes a tool work well with a wider audience, as Esri translates the error codes for use in other language environments.

Here's a script I used to generate these lists with arcpy:

import sys
import arcpy
for k in range(1000000):
    try:
        dsc = arcpy.GetIDMessage(k)
        if dsc:
            print("{:6d} {}".format(k, dsc))
    except:
        pass‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

Where is the list of geoprocessing error codes?

Attachments
Version history
Last update:
‎12-12-2021 03:47 AM
Updated by: