<?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: Can't Sum Integer Field (but can sum small integer) in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/can-t-sum-integer-field-but-can-sum-small-integer/m-p/1675110#M22047</link>
    <description>&lt;P&gt;I wouldn't think so because I had previously done this exact function on the same dataset, but hosted rather than referenced. So in theory it wouldn't exceed the value unless there's something different about that particular data type across different types of web services.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: interestingly, the sum does in fact exceed the long integer storage value. The value is 10.8 billion, while the long integer (correct me if I'm wrong) is 2.1 something billion. Thing about hosted vs. referenced still stands, but there ya go.&lt;/P&gt;</description>
    <pubDate>Mon, 29 Dec 2025 14:02:22 GMT</pubDate>
    <dc:creator>ZachBodenner</dc:creator>
    <dc:date>2025-12-29T14:02:22Z</dc:date>
    <item>
      <title>Can't Sum Integer Field (but can sum small integer)</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/can-t-sum-integer-field-but-can-sum-small-integer/m-p/1675010#M22035</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I'm working with Arcade here in Experience Builder dev edition 1.19. I want to run a sum function on a filtered featureset, but I'm running into a strange issue where Small Integer fields (and doubles) can be summed, but Integer (long integer in my dataset) cannot. Here's the fields of the map service:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZachBodenner_2-1766772344575.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/146125i1224B4433470EF02/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZachBodenner_2-1766772344575.png" alt="ZachBodenner_2-1766772344575.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here's trying to sum a small integer (note, not really a field I actually want to sum, just using it to illustrate the point)&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var fs = getFilteredFeatureSet($dataSources["dataSource_12-18c82b170ef-layer-17"]);  // Assessed Value

//var integerField = sum(fs,"Assessed_Value")
var smallIntegerField = sum(fs,"Quintile_Year")


return {
  value: smallIntegerField,
  text: {}
};&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZachBodenner_0-1766772176413.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/146123i39017017CCA0014E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZachBodenner_0-1766772176413.png" alt="ZachBodenner_0-1766772176413.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, when I attempt to sum a field that is simply an Integer...&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var fs = getFilteredFeatureSet($dataSources["dataSource_12-18c82b170ef-layer-17"]);  // Assessed Value

var integerField = sum(fs,"Assessed_Value")
//var smallIntegerField = sum(fs,"Quintile_Year")


return {
  value: smallIntegerField,
  text: {}
};&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZachBodenner_1-1766772228669.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/146124i141FA4E1B5621CDC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZachBodenner_1-1766772228669.png" alt="ZachBodenner_1-1766772228669.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This one has me stumped. Anyone run into this yet?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Dec 2025 18:06:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/can-t-sum-integer-field-but-can-sum-small-integer/m-p/1675010#M22035</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2025-12-26T18:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Sum Integer Field (but can sum small integer)</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/can-t-sum-integer-field-but-can-sum-small-integer/m-p/1675021#M22037</link>
      <description>&lt;P&gt;why are lines 8 in both images the same? (eg smallIntegerField)&lt;/P&gt;&lt;P&gt;did you forget to change line 8 to integerField in line 8 in the second image?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Dec 2025 22:10:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/can-t-sum-integer-field-but-can-sum-small-integer/m-p/1675021#M22037</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-12-26T22:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Sum Integer Field (but can sum small integer)</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/can-t-sum-integer-field-but-can-sum-small-integer/m-p/1675022#M22038</link>
      <description>&lt;P&gt;Heh yes I did forget to change that but the error message is coincidentally the same which is probably why I missed it. I've continued testing too and it does seem like other math functions like min(), max() and mean() all work on the long integers, it's just sum() that is causing the error. I've tested with multiple long integer fields in multiple datasets at this point.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Dec 2025 22:15:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/can-t-sum-integer-field-but-can-sum-small-integer/m-p/1675022#M22038</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2025-12-26T22:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Sum Integer Field (but can sum small integer)</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/can-t-sum-integer-field-but-can-sum-small-integer/m-p/1675030#M22039</link>
      <description>&lt;P&gt;The only thing that remains is the possible sum.&amp;nbsp; Would the sum exceed the possible range of values permissable for long integers? Other math functions wouldn't be affected&lt;/P&gt;</description>
      <pubDate>Sat, 27 Dec 2025 00:13:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/can-t-sum-integer-field-but-can-sum-small-integer/m-p/1675030#M22039</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-12-27T00:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Sum Integer Field (but can sum small integer)</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/can-t-sum-integer-field-but-can-sum-small-integer/m-p/1675078#M22041</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/80456"&gt;@ZachBodenner&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I tried to reproduce the issue with my own data, and both integer and big integer worked fine for me. So it doesn’t seem like a value range problem. Do you have a sample dataset I could use to try and trigger the bug on my side?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shengdi&lt;/P&gt;</description>
      <pubDate>Mon, 29 Dec 2025 03:25:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/can-t-sum-integer-field-but-can-sum-small-integer/m-p/1675078#M22041</guid>
      <dc:creator>ShengdiZhang</dc:creator>
      <dc:date>2025-12-29T03:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Sum Integer Field (but can sum small integer)</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/can-t-sum-integer-field-but-can-sum-small-integer/m-p/1675110#M22047</link>
      <description>&lt;P&gt;I wouldn't think so because I had previously done this exact function on the same dataset, but hosted rather than referenced. So in theory it wouldn't exceed the value unless there's something different about that particular data type across different types of web services.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: interestingly, the sum does in fact exceed the long integer storage value. The value is 10.8 billion, while the long integer (correct me if I'm wrong) is 2.1 something billion. Thing about hosted vs. referenced still stands, but there ya go.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Dec 2025 14:02:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/can-t-sum-integer-field-but-can-sum-small-integer/m-p/1675110#M22047</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2025-12-29T14:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Sum Integer Field (but can sum small integer)</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/can-t-sum-integer-field-but-can-sum-small-integer/m-p/1675111#M22048</link>
      <description>&lt;P&gt;Yes, though it's almost certainly too big to upload here. Can you let me know how best to deliver it to you?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Dec 2025 13:56:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/can-t-sum-integer-field-but-can-sum-small-integer/m-p/1675111#M22048</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2025-12-29T13:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Sum Integer Field (but can sum small integer)</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/can-t-sum-integer-field-but-can-sum-small-integer/m-p/1675249#M22052</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi, could you share the URL of the hosted service? You can DM it to me.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Dec 2025 02:33:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/can-t-sum-integer-field-but-can-sum-small-integer/m-p/1675249#M22052</guid>
      <dc:creator>ShengdiZhang</dc:creator>
      <dc:date>2025-12-30T02:33:56Z</dc:date>
    </item>
  </channel>
</rss>

