<?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: Geoprocessing services do not respect enabled validation in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/geoprocessing-services-do-not-respect-enabled/m-p/1617996#M27576</link>
    <description>&lt;P&gt;It's been a while since I've needing to publish any GP tasks but I do remember it being very trial-and-error when it comes to validation.&amp;nbsp; My thinking/wisdom (right or wrong) essentially ended up as:&lt;/P&gt;&lt;P&gt;I'm guessing any validation is really limited and static, probably as it's only enacted when the tool is first opened, rather than dynamically after each argument input.&amp;nbsp;&lt;BR /&gt;If the validation has to actually do/retrieve something from somewhere outside of the validator code - it's not going to work.&lt;/P&gt;</description>
    <pubDate>Fri, 23 May 2025 20:00:21 GMT</pubDate>
    <dc:creator>DavidPike</dc:creator>
    <dc:date>2025-05-23T20:00:21Z</dc:date>
    <item>
      <title>Geoprocessing services do not respect enabled validation</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/geoprocessing-services-do-not-respect-enabled/m-p/1617561#M27575</link>
      <description>&lt;P&gt;I am seeing that hiding params using self.params[3].enabled = False works great as a regular toolbox but when I publish the tool as a service in both Pro and ExB this does not work and it just always shows the param.&lt;/P&gt;&lt;P&gt;def updateParameters(self):&lt;/P&gt;&lt;P&gt;if(self.params[2].value):&lt;BR /&gt;self.params[3].enabled = True&lt;BR /&gt;else:&lt;BR /&gt;self.params[3].enabled = False&lt;BR /&gt;return&lt;/P&gt;&lt;P&gt;Is this a known issue?&amp;nbsp; I am seeing a number of things that work in a toolbox but not as a service.&lt;/P&gt;&lt;P&gt;Another example is Category is not supported in ExB but does work in Pro.&amp;nbsp; This is making it hard to create a consistent user experience.&lt;/P&gt;&lt;P&gt;Is there any doc on what is and is not supported when publishing?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 15:10:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/geoprocessing-services-do-not-respect-enabled/m-p/1617561#M27575</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2025-05-22T15:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing services do not respect enabled validation</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/geoprocessing-services-do-not-respect-enabled/m-p/1617996#M27576</link>
      <description>&lt;P&gt;It's been a while since I've needing to publish any GP tasks but I do remember it being very trial-and-error when it comes to validation.&amp;nbsp; My thinking/wisdom (right or wrong) essentially ended up as:&lt;/P&gt;&lt;P&gt;I'm guessing any validation is really limited and static, probably as it's only enacted when the tool is first opened, rather than dynamically after each argument input.&amp;nbsp;&lt;BR /&gt;If the validation has to actually do/retrieve something from somewhere outside of the validator code - it's not going to work.&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 20:00:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/geoprocessing-services-do-not-respect-enabled/m-p/1617996#M27576</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2025-05-23T20:00:21Z</dc:date>
    </item>
  </channel>
</rss>

