Not all values returning when Symbolizing using Arcade Expression

165
1
06-11-2019 12:24 PM
Highlighted
New Contributor III

Hello,

I have a map on ArcGIS Online of customer calls and I want to symbolize them into three categories:

  • Affected, No Call
  • Called, No Information
  • Called, Left Comments

I am using this arcade expression:

var comments = $feature.CALL_COMMENTS

return When(IsEmpty(comments), 'Affected, No Call',
                     comments == 'None','Called, No Information',
                     'Called, Left Comments');

But for some reason, if the value for 'Called, Left Comments' is never appearing on the map, instead those customers are grouped into "Other." Even though in the symbology panel "Other" has a count of Zero.

I have also tried:

var comments = $feature.CALL_COMMENTS

If (IsEmpty(comments)){
   return 'Affected, No Call';
}
Else If (comments == 'None'){
   return 'Called, No Information';
}
Else {
   return 'Called, Left Comments';
}

Which results in the same.

And if I switch it around and do:

var comments = $feature.CALL_COMMENTS

return When(IsEmpty(comments), 'Affected, No Call',
                     comments != 'None', 'Called, Left Comments'',

                     'Called, No Information'
);

Then the default value returns if $feature.CALL_COMMENTS is None, but nothing is returned if $feature.CALL_COMMENTS is not equal null or 'None'

Does anyone know why this might be happening?

Thanks!

1 Reply
Highlighted
New Contributor III

Not really sure how or why, but it suddenly works after saving and refreshing the page for the 3rd or 4th time.

The symbology panel/tool must not be automatically refreshing the available data, even after data is edited or changed, and even with a refresh interval of 1-minute set.

Reply
0 Kudos