Select to view content in your preferred language

Arcade script not working since 3.5 update.

79
1
Tuesday
AntonyWitts
New Contributor

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.

0 Kudos
1 Reply
JoshuaBixby
MVP Esteemed Contributor

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.

0 Kudos