Select to view content in your preferred language

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?

05-18-2020 12:46 AM
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
Esri Esteemed Contributor

Hi mcreaney ,

Can you share the Arcade expression that you are using?

0 Kudos