Arcade and attribut rules

542
1
Jump to solution
03-25-2020 06:08 AM
leonoestergaard
New Contributor III

Hi Im trying to create my first attribut rule. Im using ArcGis Pro 2.5

When validating the following code

var area= FeatureSetByName($datastore,"TestArea")
var fs = Contains(area,$feature)
var res = First(fs)

..

It fails with this message

Invalid expression
Error on line 3.
General evaluation error

..

If i Change First to Count, i do not get a validation error. Why can i not use first?

0 Kudos
1 Solution

Accepted Solutions
JoeBorgione
MVP Esteemed Contributor

I too have just entered into the Arcade/Attribute rules arena, and claim no expertise at all, but in Chasing my tail with Arcade/Attribute Rules  Jake Skinner‌ provides a solution for me.  I just wonder of the 'optional' arguments to the function aren't so optional.  Data Functions | ArcGIS for Developers 

can't wait to retire....

View solution in original post

1 Reply
JoeBorgione
MVP Esteemed Contributor

I too have just entered into the Arcade/Attribute rules arena, and claim no expertise at all, but in Chasing my tail with Arcade/Attribute Rules  Jake Skinner‌ provides a solution for me.  I just wonder of the 'optional' arguments to the function aren't so optional.  Data Functions | ArcGIS for Developers 

can't wait to retire....

View solution in original post