<?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 ArcGIS Pro Arcade Expression Error in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcade-expression-error/m-p/1540037#M88397</link>
    <description>&lt;P&gt;Using ArcGIS Pro 3.3.1&lt;/P&gt;&lt;P&gt;Could someone tell me what is wrong with the expression, please. I am trying to use contains or possibly use intersects to bring back the zip in an attribute field when an address is being added in the database. The zip boundaries are on the sde. and I am wanting it to recognize the ZIP field in that data.&lt;/P&gt;&lt;P&gt;Error I am getting&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LynetteSmith_1-1726678621289.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/115388iC0ABED2E38A800C9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LynetteSmith_1-1726678621289.png" alt="LynetteSmith_1-1726678621289.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Sep 2024 16:57:27 GMT</pubDate>
    <dc:creator>LynetteSmith</dc:creator>
    <dc:date>2024-09-18T16:57:27Z</dc:date>
    <item>
      <title>ArcGIS Pro Arcade Expression Error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcade-expression-error/m-p/1540037#M88397</link>
      <description>&lt;P&gt;Using ArcGIS Pro 3.3.1&lt;/P&gt;&lt;P&gt;Could someone tell me what is wrong with the expression, please. I am trying to use contains or possibly use intersects to bring back the zip in an attribute field when an address is being added in the database. The zip boundaries are on the sde. and I am wanting it to recognize the ZIP field in that data.&lt;/P&gt;&lt;P&gt;Error I am getting&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LynetteSmith_1-1726678621289.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/115388iC0ABED2E38A800C9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LynetteSmith_1-1726678621289.png" alt="LynetteSmith_1-1726678621289.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 16:57:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcade-expression-error/m-p/1540037#M88397</guid>
      <dc:creator>LynetteSmith</dc:creator>
      <dc:date>2024-09-18T16:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Arcade Expression Error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcade-expression-error/m-p/1540047#M88398</link>
      <description>&lt;P&gt;Quite a few things, really.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The &lt;STRONG&gt;Polygon&lt;/STRONG&gt; function just creates a single polygon from a text-based definition, it won't work with an entire datastore&lt;/LI&gt;&lt;LI&gt;To get a layer by name out of the datastore, you have to use the function &lt;STRONG&gt;FeatureSetByName&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;There are other issues as well, but honestly, just throw that whole expression out. To intersect with another layer, you need to get the other layer as a FeatureSet, and you also need to reference an individual feature for the intersection.&lt;/P&gt;&lt;P&gt;It might look something like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// zip polygons
var zips = FeatureSetByName($datastore, 'ZIP_CODE_BOUNDARIES', ['ZIP'], true)

// intersect
var xs_zips = Intersects($feature, zips)

// grab the first intersected feature
var the_zip = First(xs_zips)

// return the zip of that feature
return the_zip['ZIP']&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 18 Sep 2024 17:15:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcade-expression-error/m-p/1540047#M88398</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2024-09-18T17:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Arcade Expression Error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcade-expression-error/m-p/1540634#M88467</link>
      <description>&lt;P&gt;Using ArcGIS Pro attribute rules you can do this rather easily - see an example here -&amp;nbsp;&lt;A href="https://community.esri.com/t5/geoprocessing-questions/using-attribute-rules-to-calculate-fields-from/td-p/1032944" target="_blank"&gt;Solved: Using Attribute Rules to calculate fields from int... - Esri Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 20:07:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcade-expression-error/m-p/1540634#M88467</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2024-09-19T20:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Arcade Expression Error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcade-expression-error/m-p/1543044#M88621</link>
      <description>&lt;P&gt;Thank you for sending me to the helpful information.&lt;/P&gt;&lt;P&gt;I was able to get it to work using the below expression.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LynetteSmith_0-1727360317515.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/116012i08D3FD00E474EC26/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LynetteSmith_0-1727360317515.png" alt="LynetteSmith_0-1727360317515.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 14:19:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcade-expression-error/m-p/1543044#M88621</guid>
      <dc:creator>LynetteSmith</dc:creator>
      <dc:date>2024-09-26T14:19:48Z</dc:date>
    </item>
  </channel>
</rss>

