<?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 ERROR 000539: Raster Calculator in Model Builder in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/error-000539-raster-calculator-in-model-builder/m-p/772469#M2364</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="the red highlighted tool is where I am getting the error. but #s 1-4 also use Raster Calculator" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/372449_Capture.PNG" style="width: 620px; height: 253px;" /&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to run Raster Calculator in Model Builder, however I am getting what looks like two errors after my model reaches a certain step. I'm not sure if it is a syntax issue or something else.. Raster Calculator is used in earlier steps in the same model with no problem. Could someone please help with my syntax? Below is what I wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;(Power("%P95%"-"%Ia%"*"%S05g%",2)) /("%P95%"+(0.95*"%S05g%"))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: P95 and Ia are parameters, and S05g is a dataset raster that is calculated in the previous step.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then get this error message:&lt;/P&gt;&lt;P style="margin: 1.5pt 0in 1.5pt 7.5pt;"&gt;&lt;SPAN style="font-size: 9.0pt; color: #e54724;"&gt;ERROR 000539: Error running expression: rcexec() Traceback (most recent call last):&amp;nbsp; File "&amp;lt;expression&amp;gt;", line 1, in &amp;lt;module&amp;gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 5, in rcexec&amp;nbsp; File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\sa\Functions.py", line 4485, in Times &amp;nbsp;&amp;nbsp;&amp;nbsp;in_raster_or_constant2)&amp;nbsp; File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\sa\Utils.py", line 53, in swapper&amp;nbsp;&amp;nbsp;&amp;nbsp; result = wrapper(*args, **kwargs)&amp;nbsp; File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\sa\Functions.py", line 4482, in Wrapper&amp;nbsp;&amp;nbsp;&amp;nbsp; ["Times", in_raster_or_constant1, in_raster_or_constant2])RuntimeError: ERROR 000732: Input Raster: Dataset 0.05 does not exist or is not supported&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 1.5pt 0in 1.5pt 7.5pt;"&gt;&lt;SPAN style="font-size: 9.0pt; color: #e54724;"&gt;Failed to execute (calculate Q95g).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's going on here? I originally wrote the expression with '**' instead of 'Power(,)', but that also presented me with the same error. I am using ArcGIS Pro 2.0 if that helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks! &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Sep 2017 23:27:49 GMT</pubDate>
    <dc:creator>MichelleTanner2</dc:creator>
    <dc:date>2017-09-22T23:27:49Z</dc:date>
    <item>
      <title>ERROR 000539: Raster Calculator in Model Builder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/error-000539-raster-calculator-in-model-builder/m-p/772469#M2364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="the red highlighted tool is where I am getting the error. but #s 1-4 also use Raster Calculator" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/372449_Capture.PNG" style="width: 620px; height: 253px;" /&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to run Raster Calculator in Model Builder, however I am getting what looks like two errors after my model reaches a certain step. I'm not sure if it is a syntax issue or something else.. Raster Calculator is used in earlier steps in the same model with no problem. Could someone please help with my syntax? Below is what I wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;(Power("%P95%"-"%Ia%"*"%S05g%",2)) /("%P95%"+(0.95*"%S05g%"))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: P95 and Ia are parameters, and S05g is a dataset raster that is calculated in the previous step.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then get this error message:&lt;/P&gt;&lt;P style="margin: 1.5pt 0in 1.5pt 7.5pt;"&gt;&lt;SPAN style="font-size: 9.0pt; color: #e54724;"&gt;ERROR 000539: Error running expression: rcexec() Traceback (most recent call last):&amp;nbsp; File "&amp;lt;expression&amp;gt;", line 1, in &amp;lt;module&amp;gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 5, in rcexec&amp;nbsp; File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\sa\Functions.py", line 4485, in Times &amp;nbsp;&amp;nbsp;&amp;nbsp;in_raster_or_constant2)&amp;nbsp; File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\sa\Utils.py", line 53, in swapper&amp;nbsp;&amp;nbsp;&amp;nbsp; result = wrapper(*args, **kwargs)&amp;nbsp; File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\sa\Functions.py", line 4482, in Wrapper&amp;nbsp;&amp;nbsp;&amp;nbsp; ["Times", in_raster_or_constant1, in_raster_or_constant2])RuntimeError: ERROR 000732: Input Raster: Dataset 0.05 does not exist or is not supported&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 1.5pt 0in 1.5pt 7.5pt;"&gt;&lt;SPAN style="font-size: 9.0pt; color: #e54724;"&gt;Failed to execute (calculate Q95g).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's going on here? I originally wrote the expression with '**' instead of 'Power(,)', but that also presented me with the same error. I am using ArcGIS Pro 2.0 if that helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks! &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 23:27:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/error-000539-raster-calculator-in-model-builder/m-p/772469#M2364</guid>
      <dc:creator>MichelleTanner2</dc:creator>
      <dc:date>2017-09-22T23:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 000539: Raster Calculator in Model Builder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/error-000539-raster-calculator-in-model-builder/m-p/772470#M2365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Note: P95 and Ia are parameters, and S05g is a dataset raster that is calculated in the previous step. &lt;BR /&gt;...&lt;BR /&gt;&lt;EM&gt;ERROR 000732: Input Raster: Dataset 0.05 does not exist or is not supported&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If P95 and Ia are numbers they should not have quotes around them. You have Raster Calculator looking for a raster layer or dataset named ".05". This may work better. &amp;nbsp;&lt;/P&gt;&lt;P&gt;(Also check the parentheses I added to the left expression -- the parentheses I added will make it work the way you wrote it.)&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;Power&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt;P95&lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt;Ia&lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"%S05g%"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt;P95&lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0.95&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"%S05g%"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2017 06:50:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/error-000539-raster-calculator-in-model-builder/m-p/772470#M2365</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-09-27T06:50:23Z</dc:date>
    </item>
  </channel>
</rss>

