<?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: ArcPro ModelBuilder Error Help in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcpro-modelbuilder-error-help/m-p/1104444#M46319</link>
    <description>&lt;P&gt;Answered my own question...&lt;/P&gt;&lt;P&gt;Rename outputs in the model without %%. This won't change the actual output name, just how it's seen in ModelBuilder.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Oct 2021 16:09:15 GMT</pubDate>
    <dc:creator>AnninaRupe1</dc:creator>
    <dc:date>2021-10-04T16:09:15Z</dc:date>
    <item>
      <title>ArcPro ModelBuilder Error Help</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpro-modelbuilder-error-help/m-p/1104424#M46316</link>
      <description>&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;I am trying to automate a process in ArcPro and I'm getting an error when running my model that doesn't occur when I tested manually. Here's the basics of what I'm doing:&lt;BR /&gt;I have one raster (DEM) and one feature class (polygon). I'm iterating through each feature in the feature class and clipping the raster with that individual polygon. I'm using the FID field as the iterating value. Once the raster is clipped to the individual polygon, I need to run an expression using Raster Calculator as follows:&lt;/P&gt;&lt;P&gt;Con( "%DrainageDitch1_clp_%FID%.tif%" &amp;gt;= (0.8*( "%DrainageDitch1_clp_%FID%.tif%".maximum - "%DrainageDitch1_clp_%FID%.tif%".minimum) + "%DrainageDitch1_clp_%FID%.tif%".minimum), "%DrainageDitch1_clp_%FID%.tif%")&lt;/P&gt;&lt;P&gt;This gives me the cells that have elevations in the top 20% of the polygon area. When this is run manually using Raster Calculator (without the %), it works as expected. However, when run in ModelBuilder, I receive an error:&lt;/P&gt;&lt;P&gt;ERROR 000539: Traceback (most recent call last):&lt;BR /&gt;File "&amp;lt;expression&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;File "&amp;lt;string&amp;gt;", line 5, in rcexec_DC684390_0C54_4F14_9EBF_B34DF3F2E1B1&lt;BR /&gt;AttributeError: 'str' object has no attribute 'maximum'&lt;BR /&gt;Failed to execute (Raster Calculator).&lt;/P&gt;&lt;P&gt;I've tried rewriting the expression in many different ways, including removing the %% and "" around the raster input (except for around FID), and I still get the same error. Also, the iteration runs fine before the Raster Calculator part is added.&lt;/P&gt;&lt;P&gt;Ideas to get around this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Annina&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnninaRupe1_0-1633361537065.png" style="width: 659px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/24456i6161080AF993ED8B/image-dimensions/659x450?v=v2" width="659" height="450" role="button" title="AnninaRupe1_0-1633361537065.png" alt="AnninaRupe1_0-1633361537065.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 15:33:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpro-modelbuilder-error-help/m-p/1104424#M46316</guid>
      <dc:creator>AnninaRupe1</dc:creator>
      <dc:date>2021-10-04T15:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPro ModelBuilder Error Help</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpro-modelbuilder-error-help/m-p/1104444#M46319</link>
      <description>&lt;P&gt;Answered my own question...&lt;/P&gt;&lt;P&gt;Rename outputs in the model without %%. This won't change the actual output name, just how it's seen in ModelBuilder.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 16:09:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpro-modelbuilder-error-help/m-p/1104444#M46319</guid>
      <dc:creator>AnninaRupe1</dc:creator>
      <dc:date>2021-10-04T16:09:15Z</dc:date>
    </item>
  </channel>
</rss>

