<?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 Arcade First() function causes 'Illegal Argument' Error in 3.4 in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-first-function-causes-illegal-argument/m-p/1556839#M89951</link>
    <description>&lt;P&gt;There isn't any detail in the latest release notes, but after the latest update, all arcade functions using specifically the Count(First(Geometry($feature)['paths'])) scheme for counting vertices broke and raised 'Illegal Argument' errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oddly, re-witing that scheme as Count(Geometry($feature)['paths'][0]) worked totally fine...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was also not an issue in 3.3, so something has changes with Arcade or the way arcade accesses geometry data in this update and it was undocumented.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Count(First(Geometry($feature)['paths']))
&amp;gt;&amp;gt;&amp;gt; Arcade error: Illegal argument

Count(Geometry($feature)['paths'][0])

&amp;gt;&amp;gt;&amp;gt; 10&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Nov 2024 16:10:30 GMT</pubDate>
    <dc:creator>HaydenWelch</dc:creator>
    <dc:date>2024-11-08T16:10:30Z</dc:date>
    <item>
      <title>Arcade First() function causes 'Illegal Argument' Error in 3.4</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-first-function-causes-illegal-argument/m-p/1556839#M89951</link>
      <description>&lt;P&gt;There isn't any detail in the latest release notes, but after the latest update, all arcade functions using specifically the Count(First(Geometry($feature)['paths'])) scheme for counting vertices broke and raised 'Illegal Argument' errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oddly, re-witing that scheme as Count(Geometry($feature)['paths'][0]) worked totally fine...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was also not an issue in 3.3, so something has changes with Arcade or the way arcade accesses geometry data in this update and it was undocumented.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Count(First(Geometry($feature)['paths']))
&amp;gt;&amp;gt;&amp;gt; Arcade error: Illegal argument

Count(Geometry($feature)['paths'][0])

&amp;gt;&amp;gt;&amp;gt; 10&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 16:10:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-first-function-causes-illegal-argument/m-p/1556839#M89951</guid>
      <dc:creator>HaydenWelch</dc:creator>
      <dc:date>2024-11-08T16:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade First() function causes 'Illegal Argument' Error in 3.4</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-first-function-causes-illegal-argument/m-p/1606039#M94995</link>
      <description>&lt;P&gt;Just encountered this within attribute rules for one of the simplest count functions:&lt;BR /&gt;&lt;BR /&gt;if(count($feature.name &amp;gt; 0))&lt;/P&gt;&lt;P&gt;I held off on updating for the longest time and now that I did, I can't use the count function at all &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 14:54:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-first-function-causes-illegal-argument/m-p/1606039#M94995</guid>
      <dc:creator>AimeeJones</dc:creator>
      <dc:date>2025-04-15T14:54:28Z</dc:date>
    </item>
  </channel>
</rss>

