<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Where is the list of geoprocessing error codes? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/where-is-the-list-of-geoprocessing-error-codes/m-p/1566169#M73295</link>
    <description>&lt;P&gt;Another variant to save all options to a txt file using ArcGIS Pro Notebook:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy

# Define the output file path
output_file_path = "C:/tempfolder/arcpy_messages.txt"

# Open the file in write mode
with open(output_file_path, "w") as file:
    for k in range(1000000):
        try:
            dsc = arcpy.GetIDMessage(k)
            if dsc:
                message = "{:6d} {}\n".format(k, dsc)
                file.write(message)
        except:
            pass

print(f"Messages saved to {output_file_path}")&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 09 Dec 2024 11:27:40 GMT</pubDate>
    <dc:creator>SimonSchütte_ct</dc:creator>
    <dc:date>2024-12-09T11:27:40Z</dc:date>
    <item>
      <title>Where is the list of geoprocessing error codes?</title>
      <link>https://community.esri.com/t5/python-questions/where-is-the-list-of-geoprocessing-error-codes/m-p/132762#M10297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where did the documentation go for GP error codes? I can find them &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//018n00000002000000"&gt;in the 10.2 help&lt;/A&gt; but not in the current help for Desktop or Pro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I like to use arcpy &lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/functions/addidmessage.htm"&gt;AddIDMessage&lt;/A&gt;&amp;nbsp;method because this allows you to link your &lt;A href="https://community.esri.com/space/2145"&gt;Python&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.esri.com/space/2087"&gt;Geoprocessing&lt;/A&gt; tool validation errors and tool errors directly to Esri's help information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jun 2019 22:29:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/where-is-the-list-of-geoprocessing-error-codes/m-p/132762#M10297</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2019-06-19T22:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Where is the list of geoprocessing error codes?</title>
      <link>https://community.esri.com/t5/python-questions/where-is-the-list-of-geoprocessing-error-codes/m-p/132763#M10298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will love Esri's answer, classic and BS.&amp;nbsp; See &lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/main/arcgis-pro-tool-reference.htm#ESRI_SECTION2_E43EF9B185E84ABC8A5EBDED067BB0AF" title="https://pro.arcgis.com/en/pro-app/tool-reference/main/arcgis-pro-tool-reference.htm#ESRI_SECTION2_E43EF9B185E84ABC8A5EBDED067BB0AF"&gt;ArcGIS Pro tool reference—ArcGIS Pro | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', sans-serif; font-size: 17px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;Click to expand the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="font-weight: bold; color: #4c4c4c; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', sans-serif; font-size: 17px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;Appendices&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', sans-serif; font-size: 17px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;node and you'll see the topic about&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A class="" href="https://pro.arcgis.com/en/pro-app/tool-reference/appendices/understanding-geoprocessing-tool-errors-and-warnings.htm" style="color: #0074b8; text-decoration: none; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', sans-serif; font-size: 17px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;"&gt;errors and warnings&lt;/A&gt;&lt;SPAN style="color: #4c4c4c; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', sans-serif; font-size: 17px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;. Due to the number of error reference pages, they are not provided in a browsable format. Instead, enter a search query to find a particular error reference page.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jun 2019 22:37:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/where-is-the-list-of-geoprocessing-error-codes/m-p/132763#M10298</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-06-19T22:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Where is the list of geoprocessing error codes?</title>
      <link>https://community.esri.com/t5/python-questions/where-is-the-list-of-geoprocessing-error-codes/m-p/132764#M10299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't want to break any copyright stuff, but everything is there.&lt;/P&gt;&lt;P&gt;messages...? .... if you know th code range, you can make your own list and paper your walss&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; numpy &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; np

&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcpy &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; gp

codes &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; np&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;asarray&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; gp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;getIDMessage&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; range&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;84000&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;85000&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

vals &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; np&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;where&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;codes&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;!=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;''&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;

messages &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; codes&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;vals&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;

messages&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;3&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;  &lt;SPAN class="comment token"&gt;# ---- first 3 messages as an example&lt;/SPAN&gt;
 
array&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'84001'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Reading Data....'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
       &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'84002'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Computing Results....'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
       &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'84003'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Writing Results to Output Feature Class....'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
      dtype&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'&amp;lt;U617'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sabbatical/pre-retirement explorations &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:26:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/where-is-the-list-of-geoprocessing-error-codes/m-p/132764#M10299</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T07:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Where is the list of geoprocessing error codes?</title>
      <link>https://community.esri.com/t5/python-questions/where-is-the-list-of-geoprocessing-error-codes/m-p/132765#M10300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's my method. Ran this from ArcMap and Pro python.exe's to get the list.&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; k &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; range&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;999999&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;try&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
        dsc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GetIDMessage&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;k&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; dsc&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"{:6d} {}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;k&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; dsc&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;except&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;pass&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The diff is kind of fun, note they have tried to be consistent so your error IDs will work with one code for both arcpys.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="operator token"&gt;--&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; a&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;gpcodes_arcmap106&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;txt
&lt;SPAN class="operator token"&gt;++&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; b&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;gpcodes_pro23&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;txt
&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;203&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt;s Cannot contain representations
&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;203&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt;s cannot contain representations
&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;357&lt;/SPAN&gt; End type option invalid with the ArcView or ArcEditor license
&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;357&lt;/SPAN&gt; End type option invalid with a Basic or Standard license
&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;377&lt;/SPAN&gt; The Side type option is invalid with an ArcView or ArcEditor license
&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;377&lt;/SPAN&gt; The Side type option is invalid with a Basic or Standard license
&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;384&lt;/SPAN&gt; Cannot have more than &lt;SPAN class="number token"&gt;2&lt;/SPAN&gt; inputs with the ArcView or ArcEditor license
&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;384&lt;/SPAN&gt; Cannot have more than &lt;SPAN class="number token"&gt;2&lt;/SPAN&gt; inputs with a Basic or Standard license
&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;574&lt;/SPAN&gt; Python &lt;SPAN class="number token"&gt;2.7&lt;/SPAN&gt; is not installed&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;574&lt;/SPAN&gt; Python is not installed&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;707&lt;/SPAN&gt; Spatial reference of the tiling scheme does not match the spatial reference of the data frame
&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;707&lt;/SPAN&gt; Spatial reference of the tiling scheme does not match the spatial reference of the map
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:26:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/where-is-the-list-of-geoprocessing-error-codes/m-p/132765#M10300</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-11T07:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Where is the list of geoprocessing error codes?</title>
      <link>https://community.esri.com/t5/python-questions/where-is-the-list-of-geoprocessing-error-codes/m-p/1028865#M60039</link>
      <description>&lt;P&gt;Here's a new way to do it, appropriate for the age of Python notebooks! Run this code in an interactive window or Python notebook:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;gperr = []
for k in range(120000):
    try:
        dsc = arcpy.GetIDMessage(k)
        if dsc:
            gperr.append("{:6d} {}".format(k, dsc))
    except:
        pass
for k in range(999998,1000000,1):
    try:
        dsc = arcpy.GetIDMessage(k)
        if dsc:
            gperr.append("{:6d} {}".format(k, dsc))
    except:
        pass

def gpfind(txt="parameter", maxrec=100, use_regex=False):
    """Search for geoprocessing error code IDs"""
    import re
    rtxt = txt
    if not use_regex:
        # simple case-insensitive search supporting *
        rtxt = "{}".format(txt.replace("*",".*"))
    elist = [e for e in gperr if re.search(rtxt,e,re.I)]
    if len(elist) &amp;gt; maxrec or len(elist) == 0:
        print("{} gp errors match '{}'".format(len(elist), txt))
    else: 
        print("\n".join(elist))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you can do this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;gt;&amp;gt;&amp;gt; gpfind("map extent")
 87779 DataFrameObject: Error in setting map extent
&amp;gt;&amp;gt;&amp;gt; gpfind("parameter")
138 gp error messages match 'parameter'
&amp;gt;&amp;gt;&amp;gt; gpfind("*invalid value*")
   216 Cannot execute Pivot Table--invalid value field name
 60412 The value provided was an invalid value for an identifier authority.
&amp;gt;&amp;gt;&amp;gt; gpfind("*invalid*value*")
   216 Cannot execute Pivot Table--invalid value field name
   738 At least one statistical result was invalid (NaN).  Please check the VIF values to determine whether near perfect multicollinearity is present.
  1165 Features with invalid date/time values (only includes first 30): %1 = %2.
 60412 The value provided was an invalid value for an identifier authority.
 60436 A logon request contained an invalid logon type value.
 61246 The string contains an invalid X500 name attribute key, oid, value or delimiter.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Feb 2021 19:15:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/where-is-the-list-of-geoprocessing-error-codes/m-p/1028865#M60039</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-02-20T19:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Where is the list of geoprocessing error codes?</title>
      <link>https://community.esri.com/t5/python-questions/where-is-the-list-of-geoprocessing-error-codes/m-p/1073026#M61503</link>
      <description>&lt;P&gt;Fixing the original formatting...&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import numpy as np
from arcpy import gp

# ---- sample range, change as appropriate
strt = 84000
end_ = 85000

codes = np.asarray([(i, gp.getIDMessage(i)) for i in range(strt, end_)])
vals = np.where(codes[:, 1] != '')[0]
messages = codes[vals]messages[:3]

# ---- first 3 messages as an example
array([['84001', 'Reading Data....'],
       ['84002', 'Computing Results....'],
       ['84003', 'Writing Results to Output Feature Class....']],
	   dtype='&amp;lt;U617')‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 27 Jun 2021 22:30:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/where-is-the-list-of-geoprocessing-error-codes/m-p/1073026#M61503</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-06-27T22:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Where is the list of geoprocessing error codes?</title>
      <link>https://community.esri.com/t5/python-questions/where-is-the-list-of-geoprocessing-error-codes/m-p/1566169#M73295</link>
      <description>&lt;P&gt;Another variant to save all options to a txt file using ArcGIS Pro Notebook:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy

# Define the output file path
output_file_path = "C:/tempfolder/arcpy_messages.txt"

# Open the file in write mode
with open(output_file_path, "w") as file:
    for k in range(1000000):
        try:
            dsc = arcpy.GetIDMessage(k)
            if dsc:
                message = "{:6d} {}\n".format(k, dsc)
                file.write(message)
        except:
            pass

print(f"Messages saved to {output_file_path}")&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 09 Dec 2024 11:27:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/where-is-the-list-of-geoprocessing-error-codes/m-p/1566169#M73295</guid>
      <dc:creator>SimonSchütte_ct</dc:creator>
      <dc:date>2024-12-09T11:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Where is the list of geoprocessing error codes?</title>
      <link>https://community.esri.com/t5/python-questions/where-is-the-list-of-geoprocessing-error-codes/m-p/1681846#M75092</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JeffreyThompson2_0-1770147446710.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/147824i20FB32F1C15AF511/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JeffreyThompson2_0-1770147446710.png" alt="JeffreyThompson2_0-1770147446710.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Even the AI chatbot says there should be a list.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Feb 2026 19:38:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/where-is-the-list-of-geoprocessing-error-codes/m-p/1681846#M75092</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2026-02-03T19:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Where is the list of geoprocessing error codes?</title>
      <link>https://community.esri.com/t5/python-questions/where-is-the-list-of-geoprocessing-error-codes/m-p/1682029#M75093</link>
      <description>&lt;P&gt;Bit late to this one, but here's a quick and dirty little script that will generate a 'codes.py' file containing a dictionary you can import:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcpy import GetIDMessage


def get_codes(start: int=0, stop: int=280265) -&amp;gt; dict[int, str]:
    # Note, only 2 codes are in the &amp;gt; 280265 range. We can massively speed
    # up this function by just grabbing them after we get the rest
    c = {
        code: msg
        for code in range(start, stop)
        if (msg := GetIDMessage(code, False))
    }
    c[888888] = GetIDMessage(888888)
    c[999998] = GetIDMessage(999998)
    return c

def write_codes():
    codes = get_codes()
    with open('codes.py', 'wt') as fl:
        fl.write('IDToMessage = {\n')
        for code, message in codes.items():
            fl.write(f"    {code}: {repr(message)},\n")
        fl.write('}\n\n')
        
if __name__ == '__main__':
    write_codes()&lt;/LI-CODE&gt;&lt;P&gt;It seems like there's a ton of different formatting codes in the messages, sometimes '{0} ... {1}', sometimes '%s ... %d' and sometimes '%!lld! ... %s'. It took me about&amp;nbsp; 10 minutes to find and replace the different styles using the standard python string formatting specs, but you mmv&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2026 14:46:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/where-is-the-list-of-geoprocessing-error-codes/m-p/1682029#M75093</guid>
      <dc:creator>HaydenWelch</dc:creator>
      <dc:date>2026-02-04T14:46:47Z</dc:date>
    </item>
  </channel>
</rss>

