laptop and a wrench

Bug

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
Bug-ID-Nummer BUG-000160849
EingereichtAugust 23, 2023
Zuletzt geändertAugust 19, 2024
Gilt fürArcGIS Online
Gefunden in VersionN/A
BetriebssystemWindows OS
Betriebssystemversion10.0 64 Bit
StatusWill Not Be Addressed

Zusätzliche Informationen

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

Workaround

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

Schritte zur Reproduzierung

Bug-ID: BUG-000160849

Software:

  • ArcGIS Online

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln