<?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: arcpy.AddMessage() known limitation? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-addmessage-known-limitation/m-p/641866#M50038</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/creating-tools/controlling-the-progress-dialog-box.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/creating-tools/controlling-the-progress-dialog-box.htm"&gt;Controlling the progress dialog box—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This help topic also has the stub code to do something every 1000 records if you want to go the messaging&amp;nbsp;route.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jun 2017 18:04:40 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2017-06-20T18:04:40Z</dc:date>
    <item>
      <title>arcpy.AddMessage() known limitation?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-addmessage-known-limitation/m-p/641862#M50034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No issue with my script as it is running fine but just for my information (or making sure my system is not giving up on me...),&lt;/P&gt;&lt;P&gt;is there a known limitation with arcpy.AddMessage not &lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;automatically updating the tool dialog box after ~65500 rows?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;However, one can still see the vertical scrollbar update its position upward as new lines are 'added' to the console.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;&lt;IMG alt="arcpy.AddMessage" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/357651_Capture.PNG" style="width: 620px; height: 365px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2017 15:53:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-addmessage-known-limitation/m-p/641862#M50034</guid>
      <dc:creator>SamyBouma_Ngock1</dc:creator>
      <dc:date>2017-06-19T15:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.AddMessage() known limitation?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-addmessage-known-limitation/m-p/641863#M50035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It probably isn't coincidence that you are running into issues ~65,500 messages and the maximum value of an unsigned short int is 65,535.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't say for sure whether you are running into a buffer/queue limit, but it seems that way.&amp;nbsp; That said, that is a fairly excessive amount of messaging (&lt;EM&gt;I am differentiating messaging from logging&lt;/EM&gt;).&amp;nbsp; Until you do sort out what is happening, maybe using a log file would work better since it seems you want to log millions of events.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2017 17:43:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-addmessage-known-limitation/m-p/641863#M50035</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-06-19T17:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.AddMessage() known limitation?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-addmessage-known-limitation/m-p/641864#M50036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Couldn't agree more with Joshua - GP messages are saved both in the current document and to the geoprocessing history by default -- kind of a bad idea to stuff many MB of text messages in both these places!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2017 17:46:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-addmessage-known-limitation/m-p/641864#M50036</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-06-19T17:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.AddMessage() known limitation?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-addmessage-known-limitation/m-p/641865#M50037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Joshua's comment that this limitation is due to the maximum short int value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend either implementing logging to a file instead of messaging to the GP pane as he suggests, using a progress bar, or doing some sort of batching on your messages (ie: only print every 1000 messages using a counter to determine progress)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2017 20:40:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-addmessage-known-limitation/m-p/641865#M50037</guid>
      <dc:creator>ClintonDow1</dc:creator>
      <dc:date>2017-06-19T20:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.AddMessage() known limitation?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-addmessage-known-limitation/m-p/641866#M50038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/creating-tools/controlling-the-progress-dialog-box.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/creating-tools/controlling-the-progress-dialog-box.htm"&gt;Controlling the progress dialog box—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This help topic also has the stub code to do something every 1000 records if you want to go the messaging&amp;nbsp;route.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 18:04:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-addmessage-known-limitation/m-p/641866#M50038</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-06-20T18:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.AddMessage() known limitation?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-addmessage-known-limitation/m-p/641867#M50039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, thank you all for your feedback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that I'll have to observe some best practices for messaging and/or logging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the issue I described is a reproducible one since&amp;nbsp;for each run it happens at the same line number. I also noted that when clicking in the console window, line count information gets refreshed... I am not that concerned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 20:46:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-addmessage-known-limitation/m-p/641867#M50039</guid>
      <dc:creator>SamyBouma_Ngock1</dc:creator>
      <dc:date>2017-07-06T20:46:06Z</dc:date>
    </item>
  </channel>
</rss>

