laptop and a wrench

Erro

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 do Erro BUG-000160849
EnviadoAugust 23, 2023
Última ModificaçãoAugust 19, 2024
Aplica-se àArcGIS Online
Versão encontradaN/A
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0 64 Bit
StatusWill Not Be Addressed

Informações Adicionais

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

Solução Provisória

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

Etapas para Reproduzir

ID do Erro: BUG-000160849

Software:

  • ArcGIS Online

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download