laptop and a wrench

Error

A calculation attribute rule fails to save when using a previously declared string variable in the FeatureSetByName Arcade function.

ArcGIS Pro
Número de ID del error BUG-000165771
EnviadoMarch 7, 2024
Última modificaciónApril 9, 2025
Relacionado conArcGIS Pro
Versión encontrada3.1.3
Sistema operativoWindows OS
Versión de sistema operativo10.0 64 Bit
EstadoAs Designed

Información adicional

This is by design; featuresetbyname must take a literal string to make the Arcade work across the stack. This is required for copy and paste, publishing, client-side evaluation, and much more. It is not recommended to pass a variable. If the user must pass a variable for any reason, they can create a new function: var newFeatureSetByname = FeatureSetByName, Then, use newFeatureSetByname instead. However, the user must exclude the rule from evaluation and must understand that this will affect publishing, copy and paste, and other workflows.

Solución alternativa

This is by design; featuresetbyname must take a literal string to make the Arcade work across the stack. This is required for copy and paste, publishing, client-side evaluation, and much more. It is not recommended to pass a variable. If the user must pass a variable for any reason, they can create a new function, var newFeatureSetByname = FeatureSetByName, and then use newFeatureSetByname instead. However, the user must exclude the rule from evaluation and must understand that this will affect publishing, copy and paste, and other workflows.

Pasos para reproducir

ID del error: BUG-000165771

Software:

  • ArcGIS Pro

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