laptop and a wrench

Error

Arcades expression in a pop-up fails to return result when the Filter() function is using the 'For' loop condition on the feature service in Portal for ArcGIS 10.7.1.

Última publicación: March 6, 2020 Portal for ArcGIS
Número de ID del error BUG-000127655
EnviadoDecember 31, 2019
Última modificaciónJuly 17, 2025
Relacionado conPortal for ArcGIS
Versión encontrada10.7.1
Sistema operativoWindows OS
Versión de sistema operativo2012 R2
Versión corregida10.8
EstadoFixed

Información adicional

The SQL query syntax is invalid in the following line of the expression. var sql = 'STATE_FIPS = 15' The field 'STATE_FIPS' is a string field and the value being passed is not contained in quotations. The line above must be updated to provide quotations around the query value. The correct syntax for the entire expression is below: var tbl = FeatureSetByName($map,"Test.DBO.cities1") var ftr = $feature.STATE_FIPS; var sql = 'STATE_FIPS =' + TextFormatting.SingleQuote+ '15'+TextFormatting.SingleQuote; var txt = Filter(tbl,sql) Console(Count(txt)) Console(TypeOf(txt)) var outtxt = "" if (Count(txt)>0){ for (var test in txt){ Console("THIS IS NEVER REACHED") outtxt += $feature.STATE_NAME + " " + test["POP1990"] + " " + test["CITY_NAME"] + TextFormatting.NewLine}} return outtxt

Pasos para reproducir

ID del error: BUG-000127655

Software:

  • Portal for ArcGIS

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