<?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 Using geoprocessing services with precondition boolean in ArcGIS Online in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/using-geoprocessing-services-with-precondition/m-p/411996#M20634</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a model where I have a basic if-else need. The second half of my model I don't want to run if a condition is not met. This is based on whether a piece of data has any records or not. I have simply added a get count and then calculate value based on the get count result. There are then 2 tools that have a precondition on the result of the calculate value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tool runs fine if the condition is or isn't met. I want to use the tool in the web app builder so have run the tool with the condition met, published as a geoprocessing service and put into a geoprocessing app in the web app builder. The tool runs fine if the condition is met but if it isn't, the tool fails (see below image).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way I can get the tool to finish gracefully if the condition is not met? Can you use preconditions like these in a &lt;SPAN&gt;geoprocessing &lt;/SPAN&gt;service?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user will not know if the condition will be met when running the process so both scenarios could be correct and I want the tool to work gracefully either way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/252660_ErrorArcGISOnline.png" style="height: auto;" /&gt;##&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Oct 2016 08:28:04 GMT</pubDate>
    <dc:creator>JamesWellington</dc:creator>
    <dc:date>2016-10-27T08:28:04Z</dc:date>
    <item>
      <title>Using geoprocessing services with precondition boolean in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-geoprocessing-services-with-precondition/m-p/411996#M20634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a model where I have a basic if-else need. The second half of my model I don't want to run if a condition is not met. This is based on whether a piece of data has any records or not. I have simply added a get count and then calculate value based on the get count result. There are then 2 tools that have a precondition on the result of the calculate value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tool runs fine if the condition is or isn't met. I want to use the tool in the web app builder so have run the tool with the condition met, published as a geoprocessing service and put into a geoprocessing app in the web app builder. The tool runs fine if the condition is met but if it isn't, the tool fails (see below image).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way I can get the tool to finish gracefully if the condition is not met? Can you use preconditions like these in a &lt;SPAN&gt;geoprocessing &lt;/SPAN&gt;service?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user will not know if the condition will be met when running the process so both scenarios could be correct and I want the tool to work gracefully either way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/252660_ErrorArcGISOnline.png" style="height: auto;" /&gt;##&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 08:28:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-geoprocessing-services-with-precondition/m-p/411996#M20634</guid>
      <dc:creator>JamesWellington</dc:creator>
      <dc:date>2016-10-27T08:28:04Z</dc:date>
    </item>
  </channel>
</rss>

