Geoprocessing error code list

Document created by curtvprice Champion on Jun 19, 2019Last modified by curtvprice Champion on Aug 8, 2019
Version 8Show Document
  • View in full screen mode

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):
        dsc = arcpy.GetIDMessage(k)
        if dsc:
            print("{:6d} {}".format(k, dsc))


Where is the list of geoprocessing error codes?

3 people found this helpful