<?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 Python Toolbox hasBeenValidated clears all Error Messages in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/python-toolbox-hasbeenvalidated-clears-all-error/m-p/1613119#M95650</link>
    <description>&lt;P&gt;I have&amp;nbsp; a Python Toolbox that uses a spreadsheet as input.&lt;BR /&gt;When the spreadsheet is set by the user, I have the UpdateParameters def test it to make sure it has the correct columns.&lt;/P&gt;&lt;P&gt;To prevent this happening repeatedly, I use the hasBeenValidated of the parameter to just&amp;nbsp; test once.&lt;BR /&gt;This works fine, but the problem is that when hasBeenValidated is used, it clears &lt;EM&gt;all&lt;/EM&gt; the existing errors on all the other parameters. This includes the errors for the test being carried out.&lt;/P&gt;&lt;P&gt;I've tried using .altered, but this is always true after the parameter is set.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;if parameters[0].ValueAsText and parameters[1].ValueAsText and parameters[1].hasBeenValidated == False:&lt;/LI-CODE&gt;&lt;P&gt;How can I prevent the value being checked repeatedly without clearing all the error messages?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Nav&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 May 2025 04:47:38 GMT</pubDate>
    <dc:creator>JohnMcGlynn</dc:creator>
    <dc:date>2025-05-09T04:47:38Z</dc:date>
    <item>
      <title>Python Toolbox hasBeenValidated clears all Error Messages</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python-toolbox-hasbeenvalidated-clears-all-error/m-p/1613119#M95650</link>
      <description>&lt;P&gt;I have&amp;nbsp; a Python Toolbox that uses a spreadsheet as input.&lt;BR /&gt;When the spreadsheet is set by the user, I have the UpdateParameters def test it to make sure it has the correct columns.&lt;/P&gt;&lt;P&gt;To prevent this happening repeatedly, I use the hasBeenValidated of the parameter to just&amp;nbsp; test once.&lt;BR /&gt;This works fine, but the problem is that when hasBeenValidated is used, it clears &lt;EM&gt;all&lt;/EM&gt; the existing errors on all the other parameters. This includes the errors for the test being carried out.&lt;/P&gt;&lt;P&gt;I've tried using .altered, but this is always true after the parameter is set.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;if parameters[0].ValueAsText and parameters[1].ValueAsText and parameters[1].hasBeenValidated == False:&lt;/LI-CODE&gt;&lt;P&gt;How can I prevent the value being checked repeatedly without clearing all the error messages?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Nav&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 04:47:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python-toolbox-hasbeenvalidated-clears-all-error/m-p/1613119#M95650</guid>
      <dc:creator>JohnMcGlynn</dc:creator>
      <dc:date>2025-05-09T04:47:38Z</dc:date>
    </item>
  </channel>
</rss>

