<?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: Model Builder Precondition (Get Field Value) run error thinks its Null despite correctly collecting a value. in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/model-builder-precondition-get-field-value-run/m-p/732295#M32180</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make a separate model with those values hardcoded as input into Calculate Field and see what happens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Nov 2020 11:31:29 GMT</pubDate>
    <dc:creator>DavidPike</dc:creator>
    <dc:date>2020-11-09T11:31:29Z</dc:date>
    <item>
      <title>Model Builder Precondition (Get Field Value) run error thinks its Null despite correctly collecting a value.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/model-builder-precondition-get-field-value-run/m-p/732294#M32179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My model collects two values using the Get Field Value model-only tool. The table it is pulling these values from has no nulls in it. The two Get Field Value tools are preconditions for a Calculate Field tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run the model, it fails to execute the Calculate Field tool, giving an error:&amp;nbsp; "&lt;SPAN&gt;The process did not execute because the precondition is false."&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I stop the model after I get the error, the Get Field Value outputs have non-null values in them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They are not boolean, so i do not understand why "False" is being reported to the Calculate Field tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Model Readout as it runs:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Executing (Get Field Value): GetFieldValue "X:\2019\19-107 Sac Valley WQC - 2020 GW Services\GIS\SVWQC_HVA_AMK_v2.gdb\Temp_NSummary" MAX_Model Double -1&lt;BR /&gt;Start Time: Sunday, November 08, 2020 8:37:31 PM&lt;BR /&gt;Succeeded at Sunday, November 08, 2020 8:37:31 PM (Elapsed Time: 0.05 seconds)&lt;BR /&gt;Executing (Get Field Value (2)): GetFieldValue "X:\2019\19-107 Sac Valley WQC - 2020 GW Services\GIS\SVWQC_HVA_AMK_v2.gdb\Temp_NSummary" MIN_Model Double -1&lt;BR /&gt;Start Time: Sunday, November 08, 2020 8:37:31 PM&lt;BR /&gt;Succeeded at Sunday, November 08, 2020 8:37:31 PM (Elapsed Time: 0.05 seconds)&lt;BR /&gt;Executing (Calculate Field): CalculateField N_WelltestsDissolved_AllAttributesAssigned Model (!Model!-0)/(48.5839991620112-0) "Python 3" # Text&lt;BR /&gt;Start Time: Sunday, November 08, 2020 8:37:31 PM&lt;BR /&gt; The process did not execute because the precondition is false.&lt;BR /&gt;Succeeded at Sunday, November 08, 2020 8:37:31 PM (Elapsed Time: 0.00 seconds)&lt;/P&gt;&lt;P&gt;,...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/512725_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2020 04:48:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/model-builder-precondition-get-field-value-run/m-p/732294#M32179</guid>
      <dc:creator>AaronKing3</dc:creator>
      <dc:date>2020-11-09T04:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder Precondition (Get Field Value) run error thinks its Null despite correctly collecting a value.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/model-builder-precondition-get-field-value-run/m-p/732295#M32180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make a separate model with those values hardcoded as input into Calculate Field and see what happens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2020 11:31:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/model-builder-precondition-get-field-value-run/m-p/732295#M32180</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2020-11-09T11:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder Precondition (Get Field Value) run error thinks its Null despite correctly collecting a value.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/model-builder-precondition-get-field-value-run/m-p/1136475#M50442</link>
      <description>&lt;P&gt;I have just stumbled over the same scenario and&amp;nbsp;&lt;SPAN&gt;resolved this issue in my own processing. I see from the log&amp;nbsp; you have extracted out the &lt;EM&gt;min&lt;/EM&gt; and &lt;EM&gt;max&lt;/EM&gt; value to be used to normalise a field in your field calculate tool and quite understandably you have made the Get Field value tools&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;preconditions&lt;/EM&gt;&lt;SPAN&gt; to the Calculate tool. I too had created a model to do exactly the same and my calculate tool would not run.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The reason why this happens in that a ZERO value is interpreted as a FALSE value in model builder if used as a precondition.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="inherit"&gt;But! Zero is your &lt;/FONT&gt;minimum&lt;FONT face="inherit"&gt;&amp;nbsp;value, a perfectly acceptable value, which is being used to normalise a field. So if zero is an appropriate value but you try to use it as a precondition then that will halt processing in model builder. A chicken and egg scenario!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="inherit"&gt;So how do you get around this?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="inherit"&gt;My trick is to feed both the outputs of the Get Field Value tools into a Collects Value tool. This creates a LIST of values, in your case a &lt;/FONT&gt;maximum&lt;FONT face="inherit"&gt;&amp;nbsp;value and a &lt;/FONT&gt;minimum&lt;FONT face="inherit"&gt;&amp;nbsp;value (which is zero). It does not matter what is in the list, but a list now exists and that &lt;/FONT&gt;evaluates&lt;FONT face="inherit"&gt;&amp;nbsp;to TRUE in model builder. So even though I create a list, not even interested &lt;/FONT&gt;what's&lt;FONT face="inherit"&gt;&amp;nbsp;in it, by using it as a precondition because the list exists then the precondition is TRUE and the &lt;/FONT&gt;calculate&lt;FONT face="inherit"&gt;&amp;nbsp;field tool is allowed to run.&amp;nbsp; For the list to exist it needs to run the Get Field Value tools first and this ensure the correct logical sequence you need, i.e. get the min and max values which feed into your normalisation equation.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 17:30:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/model-builder-precondition-get-field-value-run/m-p/1136475#M50442</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2022-01-24T17:30:06Z</dc:date>
    </item>
  </channel>
</rss>

