Select to view content in your preferred language

Arcade First() function causes 'Illegal Argument' Error in 3.4

413
1
11-08-2024 08:10 AM
HaydenWelch
MVP Regular Contributor

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.

 

Oddly, re-witing that scheme as Count(Geometry($feature)['paths'][0]) worked totally fine...

 

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.

 

 

Count(First(Geometry($feature)['paths']))
>>> Arcade error: Illegal argument

Count(Geometry($feature)['paths'][0])

>>> 10

 

Tags (3)
1 Reply
AimeeJones
Occasional Contributor

Just encountered this within attribute rules for one of the simplest count functions:

if(count($feature.name > 0))

I held off on updating for the longest time and now that I did, I can't use the count function at all 😞

0 Kudos