laptop and a wrench

Error

In ArcGIS Online Map Viewer, pop-ups configured using the Max function with alphanumeric values string field return results irrespective of the string type field.

ArcGIS Online
Número de ID del error BUG-000160849
EnviadoAugust 23, 2023
Última modificaciónAugust 19, 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

This happens because the feature service returns this result when performing statistical queries. Arcade cannot control that result.

Solución alternativa

Use the Max() function with an array of the alphanumeric strings to return 'NaN' as expected. Example code:

var fs = FeatureSetById($datastore, "0", ["stringField"])

// create array to hold alphanumeric string fields

var myArray = []

// add each string field to the array

for (var x in fs)

{ Push(myArray, x.stringField) }

// return the max string value in the array

return Max(myArray)

// returns NaN

Pasos para reproducir

ID del error: BUG-000160849

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