laptop and a wrench

Bug

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.

Zuletzt veröffentlicht: March 6, 2020 Portal for ArcGIS
Bug-ID-Nummer BUG-000127655
EingereichtDecember 31, 2019
Zuletzt geändertJuly 17, 2025
Gilt fürPortal for ArcGIS
Gefunden in Version10.7.1
BetriebssystemWindows OS
Betriebssystemversion2012 R2
Behoben in Version10.8
StatusFixed

Zusätzliche Informationen

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

Schritte zur Reproduzierung

Bug-ID: BUG-000127655

Software:

  • Portal for ArcGIS

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