Custom Arcade symbology and symbol classes without features

106
3
02-12-2020 01:42 AM
Occasional Contributor

I am using symbology classes defined by a custom Arcade expression.

My problem is that if there's no feature that satisfies some of the defined classes those symbols will not show in the Classes tab and therefore I can't format the symbol for future features that will fall in that class.

This is an excerpt of my Arcade expression:

if (Left($feature.KEY, 2) == '01')
{return "Oak";}
else if (Left($feature.KEY, 2) == '02')
{return "Palm tree";}
else if (Left($feature.KEY, 2) == '03')
{return "Cherry tree";}
else if (Left($feature.KEY, 2) == '04' || Left($feature.KEY, 2) == '05')
{return "Pine";}
else if (Left($feature.KEY, 2) == '07')
{return "Ash";}
else if (Left($feature.KEY, 2) == '08' || Left($feature.KEY, 2) == '09')
{return "Beech";}
else if (Left($feature.KEY, 2) == '10')
{return "Cedar";}

Right now we have no catalogued Ash nor Cedar, so there's no feature with KEY values starting with 07 or 10, but we will eventually in the future and need to format a symbol for those symbol classes.

As you see below, those classes do not show in the Classes tab and the 'Add unlisted value' option doesn't list those symbols either.

I thought of adding some dummy features with the missing KEY values to be able to format their symbols but I don't have the privileges to add features to the catalogue feature class, so I don't know if that would work anyway.

Any idea of what to do?

Custom Arcade Symbol Classes

Reply
0 Kudos
3 Replies
Esri Esteemed Contributor

Hi DMS2 ,

Have you tried adding the missing values?

Reply
0 Kudos
Occasional Contributor

Clicked that option and it turned grayed out.

Reply
0 Kudos
Esri Esteemed Contributor

Hi DMS2 ,

That wasn't supposed to happen. I will try and test something here to see what happens. In the mean time, maybe Kory Kramer‌ may know something....

Reply
0 Kudos