<?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: Server Geoprocessing Tool with Dynamic Input Parameter in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/server-geoprocessing-tool-with-dynamic-input/m-p/1546769#M40703</link>
    <description>&lt;P&gt;Do you have the option set in your AGS machine machine in the "Site" area to "Allow data to be copied to the site when publishing services." under the settings button?&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you make sure this is unchecked; it should avoid the publishing process from creating a cached/feature-table.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Oct 2024 22:55:10 GMT</pubDate>
    <dc:creator>DEWright_CA</dc:creator>
    <dc:date>2024-10-08T22:55:10Z</dc:date>
    <item>
      <title>Server Geoprocessing Tool with Dynamic Input Parameter</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/server-geoprocessing-tool-with-dynamic-input/m-p/1545596#M40681</link>
      <description>&lt;P&gt;I have created a custom Python Toolbox tool with an input parameter where the options are loaded from an attribute in a table in an Enterprise Geodatabase.&amp;nbsp; The parameter is of type&amp;nbsp;GPString.&amp;nbsp; And the list of choices is generated in the&amp;nbsp;updateMessages method.&amp;nbsp; Like this:&lt;/P&gt;&lt;P&gt;with arcpy.da.SearchCursor(projects, "ProjName") as rows:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; parameters[0].filter.list = sorted(list(set([row[0] for row in rows])))&lt;/P&gt;&lt;P&gt;All works great as a tool in Pro.&lt;/P&gt;&lt;P&gt;When I publish the tool to ArcGIS Server, it still works.&amp;nbsp; However the list of choices is now fixed.&amp;nbsp; If I add a record to the table in the EGDB, the new item is not provided as an option in the tool.&lt;/P&gt;&lt;P&gt;Is there a way to keep this dynamic as a server tool?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 14:11:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/server-geoprocessing-tool-with-dynamic-input/m-p/1545596#M40681</guid>
      <dc:creator>Layth</dc:creator>
      <dc:date>2024-10-04T14:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Server Geoprocessing Tool with Dynamic Input Parameter</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/server-geoprocessing-tool-with-dynamic-input/m-p/1545634#M40682</link>
      <description>&lt;P&gt;Do you have the DB registered as a DataSource in your ArcGIS Server? If you don't when the script is published it will snapshot the table.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 15:04:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/server-geoprocessing-tool-with-dynamic-input/m-p/1545634#M40682</guid>
      <dc:creator>DEWright_CA</dc:creator>
      <dc:date>2024-10-04T15:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Server Geoprocessing Tool with Dynamic Input Parameter</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/server-geoprocessing-tool-with-dynamic-input/m-p/1546675#M40700</link>
      <description>&lt;P&gt;It is registered with the server, yes.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 18:25:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/server-geoprocessing-tool-with-dynamic-input/m-p/1546675#M40700</guid>
      <dc:creator>Layth</dc:creator>
      <dc:date>2024-10-08T18:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Server Geoprocessing Tool with Dynamic Input Parameter</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/server-geoprocessing-tool-with-dynamic-input/m-p/1546769#M40703</link>
      <description>&lt;P&gt;Do you have the option set in your AGS machine machine in the "Site" area to "Allow data to be copied to the site when publishing services." under the settings button?&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you make sure this is unchecked; it should avoid the publishing process from creating a cached/feature-table.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 22:55:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/server-geoprocessing-tool-with-dynamic-input/m-p/1546769#M40703</guid>
      <dc:creator>DEWright_CA</dc:creator>
      <dc:date>2024-10-08T22:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Server Geoprocessing Tool with Dynamic Input Parameter</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/server-geoprocessing-tool-with-dynamic-input/m-p/1546825#M40704</link>
      <description>&lt;P&gt;I do not think validation code goes to server in anyway.&lt;/P&gt;
&lt;P&gt;The input to the tool should be simple string.&lt;/P&gt;
&lt;P&gt;You should write code to give dynamic choice list in the client. If you run it from Pro you can warp the gp service with local tool that will call it. If in JavaScript you should write the dynamic UI yourself.&lt;/P&gt;
&lt;P&gt;Have fun&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 04:53:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/server-geoprocessing-tool-with-dynamic-input/m-p/1546825#M40704</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2024-10-09T04:53:55Z</dc:date>
    </item>
  </channel>
</rss>

