<?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>idea Interpret warnings as warnings instead of errors in Python tools in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/interpret-warnings-as-warnings-instead-of-errors/idi-p/1177992</link>
    <description>&lt;P&gt;&lt;SPAN&gt;When executing a Python script as a custom tool in ArcGIS Pro through a Python toolbox or other means, Python will sometimes emit warning-level messages via warnings.warn or logging.warn. These should be interpreted by ArcGIS Pro as warning-level messages. Instead, Pro sees these as error messages because Python outputs these to sys.stderr. This will cause them to be shown on the wrong list in the tool results, and it will also indicate the tool has failed, even though it completed sucessfully. I've included screenshots showing the behavior in the results, as well as a simple PYT with a tool that will demonstrate this issue. The tool does nothing but print a warning, but Pro still claims that it failed to run.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 27 May 2022 15:31:25 GMT</pubDate>
    <dc:creator>philnagel</dc:creator>
    <dc:date>2022-05-27T15:31:25Z</dc:date>
    <item>
      <title>Interpret warnings as warnings instead of errors in Python tools</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/interpret-warnings-as-warnings-instead-of-errors/idi-p/1177992</link>
      <description>&lt;P&gt;&lt;SPAN&gt;When executing a Python script as a custom tool in ArcGIS Pro through a Python toolbox or other means, Python will sometimes emit warning-level messages via warnings.warn or logging.warn. These should be interpreted by ArcGIS Pro as warning-level messages. Instead, Pro sees these as error messages because Python outputs these to sys.stderr. This will cause them to be shown on the wrong list in the tool results, and it will also indicate the tool has failed, even though it completed sucessfully. I've included screenshots showing the behavior in the results, as well as a simple PYT with a tool that will demonstrate this issue. The tool does nothing but print a warning, but Pro still claims that it failed to run.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 15:31:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/interpret-warnings-as-warnings-instead-of-errors/idi-p/1177992</guid>
      <dc:creator>philnagel</dc:creator>
      <dc:date>2022-05-27T15:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Interpret warnings as warnings instead of errors in Python tools</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/interpret-warnings-as-warnings-instead-of-errors/idc-p/1189738#M20198</link>
      <description>&lt;P&gt;Good idea. Esri should implement this idea as well as&amp;nbsp;&lt;A href="https://community.esri.com/t5/python-ideas/make-arcpy-addwarning-wrapped-in-script-warnings/idi-p/1189701" target="_blank"&gt; Make arcpy.AddWarning wrapped in script warnings! - Esri Community &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 08:59:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/interpret-warnings-as-warnings-instead-of-errors/idc-p/1189738#M20198</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2022-07-06T08:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Interpret warnings as warnings instead of errors in Python tools</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/interpret-warnings-as-warnings-instead-of-errors/idc-p/1189784#M20199</link>
      <description>&lt;P&gt;To do my test I always turn off warning if it's not doing something meaningful in my tests.&lt;BR /&gt;Do like so in your scripts and you will see no fail, after the end.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;warnings&lt;BR /&gt;warnings.filterwarnings(&lt;SPAN&gt;"ignore"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;To turn on again.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;warnings.filterwarnings("default")&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 12:06:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/interpret-warnings-as-warnings-instead-of-errors/idc-p/1189784#M20199</guid>
      <dc:creator>HildermesJoséMedeirosFilho</dc:creator>
      <dc:date>2022-07-06T12:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Interpret warnings as warnings instead of errors in Python tools</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/interpret-warnings-as-warnings-instead-of-errors/idc-p/1189825#M20203</link>
      <description>&lt;P&gt;Sure, if you don't want to see warnings that is a possibility. But I would like to be able to use them to warn the user of something that maybe didn't work as expected, even though the tool still completed. In the current scenario, it is not possible to emit warnings (which are displayed in a specific way after the tool completes). The tool will always look like it failed, even though if completed with warnings but no errors.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 13:36:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/interpret-warnings-as-warnings-instead-of-errors/idc-p/1189825#M20203</guid>
      <dc:creator>philnagel</dc:creator>
      <dc:date>2022-07-06T13:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Interpret warnings as warnings instead of errors in Python tools</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/interpret-warnings-as-warnings-instead-of-errors/idc-p/1189828#M20204</link>
      <description>&lt;P&gt;By the way, this issue is logged as&amp;nbsp;&lt;SPAN&gt;BUG-000149576 with ESRI. This idea was only posted because ESRI requires an idea to be there in order to log a defect now.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 13:37:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/interpret-warnings-as-warnings-instead-of-errors/idc-p/1189828#M20204</guid>
      <dc:creator>philnagel</dc:creator>
      <dc:date>2022-07-06T13:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Interpret warnings as warnings instead of errors in Python tools - Status changed to: Under Consideration</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/interpret-warnings-as-warnings-instead-of-errors/idc-p/1190058#M20213</link>
      <description>&lt;P&gt;We are looking at addressing this bug for the next release. Please keep in mind though, that this doesn't guarantee that it'll be resolved in time for the next release, as there are many other things that require our attention.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 19:55:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/interpret-warnings-as-warnings-instead-of-errors/idc-p/1190058#M20213</guid>
      <dc:creator>HannesZiegler</dc:creator>
      <dc:date>2022-07-06T19:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Interpret warnings as warnings instead of errors in Python tools - Status changed to: Closed</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/interpret-warnings-as-warnings-instead-of-errors/idc-p/1190561#M20228</link>
      <description>&lt;P&gt;Sorry for the miscommunication on this&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/276319"&gt;@philnagel&lt;/a&gt;&amp;nbsp;Thank you for mentioning that this had already been submitted as a bug through Technical Support. I read through your comments on that case, and you are absolutely correct - it is certainly not a prerequisite to submit an idea before support can log a bug. &lt;EM&gt;In fact&lt;/EM&gt;, the&amp;nbsp;&lt;LI-MESSAGE title="ArcGIS Ideas Submission Guidelines and Statuses" uid="904874" url="https://community.esri.com/t5/community-help-documents/arcgis-ideas-submission-guidelines-and-statuses/m-p/904874#U904874" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;are explicit in stating that ArcGIS Ideas is not for bugs:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KoryKramer_0-1657224057094.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/45471i440FBB277EC0D65B/image-size/large?v=v2&amp;amp;px=999" role="button" title="KoryKramer_0-1657224057094.png" alt="KoryKramer_0-1657224057094.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This issue is being tracked through the bug tracking system and can be found here:&amp;nbsp;&lt;A href="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDE0OTU3Ng==" target="_blank"&gt;https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDE0OTU3Ng==&lt;/A&gt;&amp;nbsp;If other Esri Community members encounter this, it is not necessary to call Support. Rather, use the Subscribe button at the link above - this will set you up for notifications as well as increment the count of affected users in the system which helps teams prioritize issues.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KoryKramer_1-1657224155957.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/45472iF82506CFED00C8A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="KoryKramer_1-1657224155957.png" alt="KoryKramer_1-1657224155957.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Given the above, this idea will be closed. Thank you again, and we apologize for the confusion in communicating around this issue.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 20:04:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/interpret-warnings-as-warnings-instead-of-errors/idc-p/1190561#M20228</guid>
      <dc:creator>KoryKramer</dc:creator>
      <dc:date>2022-07-07T20:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Interpret warnings as warnings instead of errors in Python tools</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/interpret-warnings-as-warnings-instead-of-errors/idc-p/1190968#M20251</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/129401"&gt;@KoryKramer&lt;/a&gt;&amp;nbsp;thanks for that reference. I thought this was odd, too, but I was instructed by the ESRI support rep to submit the bug here first. He stated that this was a new workflow and now the only way to submit bugs to ESRI, they had to be in the ideas forum first. Sounds like there is some mis-communication going on between some ESRI departments.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 19:23:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/interpret-warnings-as-warnings-instead-of-errors/idc-p/1190968#M20251</guid>
      <dc:creator>philnagel</dc:creator>
      <dc:date>2022-07-08T19:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Interpret warnings as warnings instead of errors in Python tools</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/interpret-warnings-as-warnings-instead-of-errors/idc-p/1228427#M22019</link>
      <description>&lt;P&gt;Just wanted to bump the thread to point out that&amp;nbsp;&lt;A href="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDE0OTU3Ng==" target="_blank"&gt;https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDE0OTU3Ng==&lt;/A&gt;&amp;nbsp;is now showing as Fixed in ArcGIS Pro 3.1 (scheduled to be available ~Feb 2023).&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 17:45:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/interpret-warnings-as-warnings-instead-of-errors/idc-p/1228427#M22019</guid>
      <dc:creator>KoryKramer</dc:creator>
      <dc:date>2022-11-03T17:45:42Z</dc:date>
    </item>
  </channel>
</rss>

