Hi All,
I have a little script that goes through bat records and tells me which one is the closest to a search point for each of the bat species in the data. Here is the code:
var bat = $feature.COMMON_NAM
var closest = Min(filter($featureset, "COMMON_NAM = @bat"), "NEAR_DIST")
return iif($feature.NEAR_DIST == closest,1,0
This worked fine in 3.4, but has stopped working since updating to 3.5 giving an error of "object not found $featureset"
I would really appreciate any help on this. I am not a proficient coder, so I don't really know where to start in fixing this.
Many thanks.
Since Arcade can be used with many Esri products/platforms and in various places within a given product/platform, it is helpful to state what product and where exactly you are using Arcade.