| Numéro d’ID de bogue |
BUG-000127655 |
| Envoi | December 31, 2019 |
| Dernière modification | July 17, 2025 |
| S’applique à | Portal for ArcGIS |
| Version trouvée | 10.7.1 |
| Système d’exploitation | Windows OS |
| Version du système d’exploitation | 2012 R2 |
| Version de correction | 10.8 |
| Statut | Fixed
Le bogue a été corrigé. Pour plus d’informations, reportez-vous aux sections Version de correction et Informations supplémentaires, le cas échéant.
|
Informations supplémentaires
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
Étapes pour reproduire
ID de bogue: BUG-000127655
Logiciel: