<?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 service output files - can they be conditional? in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/geoprocessing-service-output-files-can-they-be/m-p/620448#M20621</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you share your parameters?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jun 2020 03:13:31 GMT</pubDate>
    <dc:creator>LanceKirby2</dc:creator>
    <dc:date>2020-06-26T03:13:31Z</dc:date>
    <item>
      <title>Geoprocessing service output files - can they be conditional?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/geoprocessing-service-output-files-can-they-be/m-p/620447#M20620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a python geoprocessing script, published as a service, that allows users to enter Parcel numbers and then generates a series of pdf maps needed for notifying nearby parcel owners, as well as mailing labels in either pdf or csv format - that is a drop down input parameter that the user selects.&lt;/P&gt;&lt;P&gt;The tool is hooked up to a GP Widget in AGOL.&amp;nbsp; User can select a few options, then the output files show as links.&amp;nbsp; All is good, but if the user selects 'pdf' output type for the mailing labels, there is still a link generated for CSV maling label output -it's just a bad link, gives a 404, so it's quite sloppy and misleading just by it's presence.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had configured validation code in the tool within ArcMap to handle this, and it worked as desired in that environment, but from what I have seen validation code is not applied to the tool when published as a service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way around this - to have the output parameters (files) be present or not based on input values?&amp;nbsp; All I can think of is making the 'SetParameterAsText' output parameters be nested in 'If elif else' loops, but I'm skeptical that will work.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks -&amp;nbsp;&lt;/P&gt;&lt;P&gt;Allen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2020 19:01:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/geoprocessing-service-output-files-can-they-be/m-p/620447#M20620</guid>
      <dc:creator>AllenScully</dc:creator>
      <dc:date>2020-05-21T19:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing service output files - can they be conditional?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/geoprocessing-service-output-files-can-they-be/m-p/620448#M20621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you share your parameters?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2020 03:13:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/geoprocessing-service-output-files-can-they-be/m-p/620448#M20621</guid>
      <dc:creator>LanceKirby2</dc:creator>
      <dc:date>2020-06-26T03:13:31Z</dc:date>
    </item>
  </channel>
</rss>

