<?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 Publish a geoprocessing tool without constants in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/publish-a-geoprocessing-tool-without-constants/m-p/1100078#M62510</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to publish a script tool as a geoprocessing service, but there are several issues that I have run into recently has caused the tool to not execute as I originally expected.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Some of the inputs are converted into constants despite setting the parameters to only execute when there is user input&lt;/LI&gt;&lt;LI&gt;the ability to select a feature class which is derived from in input CAD file doesn't seem to work. I don't know if it possible to publish a tool where the end user can upload a CAD file and then select which feature class to extract the data from.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Any help on this would be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Constant for CAD file_LI.jpg" style="width: 524px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/23417iA6243765BFBD8436/image-size/large?v=v2&amp;amp;px=999" role="button" title="Constant for CAD file_LI.jpg" alt="Constant for CAD file_LI.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Constants for user input values.JPG" style="width: 525px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/23415i85518E43EAA670FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Constants for user input values.JPG" alt="Constants for user input values.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CAD Extract.JPG" style="width: 534px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/23418i7D6C65773B96F4AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="CAD Extract.JPG" alt="CAD Extract.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also, I noticed that when the tool is published that the end user can select an analysis layer, but it appears as though they can only select the layer from the organization, not something that is derived. Is this something that would have to be scripted as an update tool validation in order for the end user to select the feature class?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Feature class.JPG" style="width: 407px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/23419i6980D8F0130CD2FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Feature class.JPG" alt="Feature class.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Sep 2021 20:06:34 GMT</pubDate>
    <dc:creator>RPGIS</dc:creator>
    <dc:date>2021-09-20T20:06:34Z</dc:date>
    <item>
      <title>Publish a geoprocessing tool without constants</title>
      <link>https://community.esri.com/t5/python-questions/publish-a-geoprocessing-tool-without-constants/m-p/1100078#M62510</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to publish a script tool as a geoprocessing service, but there are several issues that I have run into recently has caused the tool to not execute as I originally expected.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Some of the inputs are converted into constants despite setting the parameters to only execute when there is user input&lt;/LI&gt;&lt;LI&gt;the ability to select a feature class which is derived from in input CAD file doesn't seem to work. I don't know if it possible to publish a tool where the end user can upload a CAD file and then select which feature class to extract the data from.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Any help on this would be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Constant for CAD file_LI.jpg" style="width: 524px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/23417iA6243765BFBD8436/image-size/large?v=v2&amp;amp;px=999" role="button" title="Constant for CAD file_LI.jpg" alt="Constant for CAD file_LI.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Constants for user input values.JPG" style="width: 525px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/23415i85518E43EAA670FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Constants for user input values.JPG" alt="Constants for user input values.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CAD Extract.JPG" style="width: 534px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/23418i7D6C65773B96F4AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="CAD Extract.JPG" alt="CAD Extract.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also, I noticed that when the tool is published that the end user can select an analysis layer, but it appears as though they can only select the layer from the organization, not something that is derived. Is this something that would have to be scripted as an update tool validation in order for the end user to select the feature class?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Feature class.JPG" style="width: 407px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/23419i6980D8F0130CD2FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Feature class.JPG" alt="Feature class.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 20:06:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/publish-a-geoprocessing-tool-without-constants/m-p/1100078#M62510</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2021-09-20T20:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Publish a geoprocessing tool without constants</title>
      <link>https://community.esri.com/t5/python-questions/publish-a-geoprocessing-tool-without-constants/m-p/1100173#M62523</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/22623"&gt;@RPGIS&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I would suggest to set the type of the CAD file parameter to be "File", and when publishing the GP service to make sure that you check "Upload" within the capabilities configuration.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IhabHassan_1-1632196655212.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/23438i1F5DA6E0BFD5E70A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IhabHassan_1-1632196655212.png" alt="IhabHassan_1-1632196655212.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IhabHassan_0-1632196517069.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/23437i2D1B6EFBC9B0A907/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IhabHassan_0-1632196517069.png" alt="IhabHassan_0-1632196517069.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This should allow you to upload the DWG file instead of having it as a constant.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ihab&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 03:57:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/publish-a-geoprocessing-tool-without-constants/m-p/1100173#M62523</guid>
      <dc:creator>IhabHassan</dc:creator>
      <dc:date>2021-09-21T03:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Publish a geoprocessing tool without constants</title>
      <link>https://community.esri.com/t5/python-questions/publish-a-geoprocessing-tool-without-constants/m-p/1100242#M62526</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/329425"&gt;@IhabHassan&lt;/a&gt; for the suggestion. I will give that a try and test it to see how it performs. As for the other constant issue, I think it may have something to do with having the inputs as a table of values rather than simple input values. Is that the case or is there a way to publish the tool with a table of values as inputs rather than constants? I would greatly appreciate it if you or someone could let me know.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 12:13:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/publish-a-geoprocessing-tool-without-constants/m-p/1100242#M62526</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2021-09-21T12:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Publish a geoprocessing tool without constants</title>
      <link>https://community.esri.com/t5/python-questions/publish-a-geoprocessing-tool-without-constants/m-p/1101043#M62532</link>
      <description>&lt;P&gt;Might be, not sure, I would choose what is working and get the job done&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ihab&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 21:36:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/publish-a-geoprocessing-tool-without-constants/m-p/1101043#M62532</guid>
      <dc:creator>IhabHassan</dc:creator>
      <dc:date>2021-09-22T21:36:42Z</dc:date>
    </item>
  </channel>
</rss>

