How do I deal with empty featuresets in arcade? When I try to use count() it errors when empty but I want to be able to count 0 in this circumstance. How can I do it?

78
1
05-18-2020 12:46 AM
MattCreaney
Occasional Contributor

My expression is a filtered featuresetbyname which I purely need to produce a count of how many features match the query. It only works when the number of features is more than one. If none, the count() function errors.

0 Kudos
1 Reply
XanderBakker
Esri Esteemed Contributor

Hi mcreaney ,

Can you share the Arcade expression that you are using?

0 Kudos