laptop and a wrench

Error

The Arcade expression DomainName() does not work as expected with an attribute in ArcGIS Online.

Última publicación: March 8, 2019 ArcGIS Online
Número de ID del error BUG-000120493
EnviadoMarch 2, 2019
Última modificaciónJune 5, 2024
Relacionado conArcGIS Online
Versión encontradaN/A
Sistema operativoWindows OS
Versión de sistema operativo10.0 64 Bit
EstadoWill Not Be Addressed

Información adicional

According to https://developers.arcgis.com/arcade/guide/logic/ "For more complex expressions, we suggest you explicitly list all field attributes that will be used in the execution of the script at the top of the expression. This will ensure the profile, app, and map all request the appropriate fields so the expression executes properly." This is a known limitation with dynamically optimizing queries and field declaration. When writing expressions it is always best to declare the field first to ensure that it behaves accordingly. For example: $feature.COLLEGE; $feature.POPULATION; Round(($feature.COLLEGE / $feature.POPULATION) * 100, 2);

Solución alternativa

Add description in the field instead.

Or

Declare the field at the start of the expression so that it gets requested.

For example:

$feature.Domain //the field name of the domain

DomainName($feature, "Domain")

Pasos para reproducir

ID del error: BUG-000120493

Software:

  • ArcGIS Online

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga