<?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 Online Arcade Intersection/Contains Function Not Recognizing Each Point in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-arcade-intersection-contains/m-p/1633194#M65578</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for help with arcade expressions. I'm attempting to use arcade to pull and summarize data from other layers that overlap a parcel. I'm using FeatureSet and Intersects or Contains functions to do so. Unfortunately, I'm noticing some inconsistencies and I'm not sure if its the arcade expression or something else. The issue is that the expression works for most instances but appears to randomly fail for others. I've attached screenshots below as well as the arcade expression itself. Any help with resolving this issue and ensuring all points are identified correctly is appreciated. Thank you!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screenshot of the expression working as intended. The green point represents 'Closed Activity' which is picked up by the arcade expression and correctly displayed by the Activity ID in the Parcel's pop up." style="width: 665px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/136538iC3AC322A39F821F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Expression Correctly Working.png" alt="Screenshot of the expression working as intended. The green point represents 'Closed Activity' which is picked up by the arcade expression and correctly displayed by the Activity ID in the Parcel's pop up." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Screenshot of the expression working as intended. The green point represents 'Closed Activity' which is picked up by the arcade expression and correctly displayed by the Activity ID in the Parcel's pop up.&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Same expression, different parcel. A buffer is included in the expression yet the expression still fails to recognize the point and populate the pop-up." style="width: 986px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/136539i9D2A486BD9BFFD9F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Expression Not Working.png" alt="Same expression, different parcel. A buffer is included in the expression yet the expression still fails to recognize the point and populate the pop-up." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Same expression, different parcel. A buffer is included in the expression yet the expression still fails to recognize the point and populate the pop-up.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;var brrts_fs = FeatureSetByName($map, "Closed Activity")
var brrts = Contains(Buffer($feature, 5), brrts_fs)
var brrts_count = Count(brrts)
var b_array = []

if(brrts_count == 0){
  return { 
	type : 'text', 
	text : `&amp;lt;font color = "#19234A"&amp;gt;&amp;lt;b&amp;gt;IS THERE CLOSED ACTIVITY?&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt;` + '&amp;lt;br&amp;gt;' + `NO`
}
} 
else {
  for (var b in brrts){
	Push(b_array, b['ACTIVITY_DETAIL_NO'])
  }

  var unique_b = Distinct(Sort(b_array))
  var con_b = Concatenate(unique_b, ', ')
  var arr = Split(con_b, ", ")
  var output = []

  for (var index in arr) {
    var code = arr[index]
    var pub = Filter(brrts_fs, "ACTIVITY_DETAIL_NO = @code")
    var item  = `&amp;lt;a href="https://apps.dnr.wi.gov/rrbotw/botw-activity-detail?crumb=2&amp;amp;siteId=29104100&amp;amp;dsn=${First(pub).DETAIL_SEQ_NO}"&amp;gt;${code}&amp;lt;/a&amp;gt;`
    Push(output, item)
  }
  return { 
	type : 'text',
	text : `&amp;lt;font color = "#19234A"&amp;gt;&amp;lt;b&amp;gt;IS THERE CLOSED ACTIVITY?&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt;` + '&amp;lt;br&amp;gt;' + `${Concatenate(output, " | ")}`
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jul 2025 15:29:37 GMT</pubDate>
    <dc:creator>chaehl</dc:creator>
    <dc:date>2025-07-15T15:29:37Z</dc:date>
    <item>
      <title>ArcGIS Online Arcade Intersection/Contains Function Not Recognizing Each Point</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-arcade-intersection-contains/m-p/1633194#M65578</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for help with arcade expressions. I'm attempting to use arcade to pull and summarize data from other layers that overlap a parcel. I'm using FeatureSet and Intersects or Contains functions to do so. Unfortunately, I'm noticing some inconsistencies and I'm not sure if its the arcade expression or something else. The issue is that the expression works for most instances but appears to randomly fail for others. I've attached screenshots below as well as the arcade expression itself. Any help with resolving this issue and ensuring all points are identified correctly is appreciated. Thank you!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screenshot of the expression working as intended. The green point represents 'Closed Activity' which is picked up by the arcade expression and correctly displayed by the Activity ID in the Parcel's pop up." style="width: 665px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/136538iC3AC322A39F821F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Expression Correctly Working.png" alt="Screenshot of the expression working as intended. The green point represents 'Closed Activity' which is picked up by the arcade expression and correctly displayed by the Activity ID in the Parcel's pop up." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Screenshot of the expression working as intended. The green point represents 'Closed Activity' which is picked up by the arcade expression and correctly displayed by the Activity ID in the Parcel's pop up.&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Same expression, different parcel. A buffer is included in the expression yet the expression still fails to recognize the point and populate the pop-up." style="width: 986px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/136539i9D2A486BD9BFFD9F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Expression Not Working.png" alt="Same expression, different parcel. A buffer is included in the expression yet the expression still fails to recognize the point and populate the pop-up." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Same expression, different parcel. A buffer is included in the expression yet the expression still fails to recognize the point and populate the pop-up.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;var brrts_fs = FeatureSetByName($map, "Closed Activity")
var brrts = Contains(Buffer($feature, 5), brrts_fs)
var brrts_count = Count(brrts)
var b_array = []

if(brrts_count == 0){
  return { 
	type : 'text', 
	text : `&amp;lt;font color = "#19234A"&amp;gt;&amp;lt;b&amp;gt;IS THERE CLOSED ACTIVITY?&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt;` + '&amp;lt;br&amp;gt;' + `NO`
}
} 
else {
  for (var b in brrts){
	Push(b_array, b['ACTIVITY_DETAIL_NO'])
  }

  var unique_b = Distinct(Sort(b_array))
  var con_b = Concatenate(unique_b, ', ')
  var arr = Split(con_b, ", ")
  var output = []

  for (var index in arr) {
    var code = arr[index]
    var pub = Filter(brrts_fs, "ACTIVITY_DETAIL_NO = @code")
    var item  = `&amp;lt;a href="https://apps.dnr.wi.gov/rrbotw/botw-activity-detail?crumb=2&amp;amp;siteId=29104100&amp;amp;dsn=${First(pub).DETAIL_SEQ_NO}"&amp;gt;${code}&amp;lt;/a&amp;gt;`
    Push(output, item)
  }
  return { 
	type : 'text',
	text : `&amp;lt;font color = "#19234A"&amp;gt;&amp;lt;b&amp;gt;IS THERE CLOSED ACTIVITY?&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt;` + '&amp;lt;br&amp;gt;' + `${Concatenate(output, " | ")}`
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2025 15:29:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-arcade-intersection-contains/m-p/1633194#M65578</guid>
      <dc:creator>chaehl</dc:creator>
      <dc:date>2025-07-15T15:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Arcade Intersection/Contains Function Not Recognizing Each Point</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-arcade-intersection-contains/m-p/1633210#M65579</link>
      <description>&lt;P&gt;The second one is failing because the point is 'on' the boundary line. Contains needs to have the point entirely within the polygon. Intersect would pick it up if it's on the boundary line.&lt;/P&gt;&lt;P&gt;As it being on the line or not, using $feature will also use the view scale resolution of the map. That's why you're getting different results and why the point is getting considered to not be within.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/arcade/function-reference/geometry_functions/#contains" target="_blank"&gt;https://developers.arcgis.com/arcade/function-reference/geometry_functions/#contains&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2025 16:10:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-arcade-intersection-contains/m-p/1633210#M65579</guid>
      <dc:creator>ChristopherCounsell</dc:creator>
      <dc:date>2025-07-15T16:10:33Z</dc:date>
    </item>
  </channel>
</rss>

