laptop and a wrench

Bug

LabelDefinition configured with an Arcade expression causes the labels to disappear if there is a missing attribute in the expression in ArcGIS Runtime SDK for .NET.

Last Published: October 1, 2022 ArcGIS Runtime SDK
Bug ID Number BUG-000151838
SubmittedAugust 24, 2022
Last ModifiedJune 5, 2024
Applies toArcGIS Runtime SDK
Version found100.14
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusWill Not Be Addressed

Additional Information

This is the expected and correct behavior and matches the ArcGIS Pro and ArcGIS Online experience.

Workaround

To support fields that may or may not exist, account for the field in the script logic before referring to the field.

For example:

if (haskey($feature, "Population"))

return $feature.id

Steps to Reproduce

Bug ID: BUG-000151838

Software:

  • ArcGIS Runtime SDK

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options