| Número de ID del error |
BUG-000179915 |
| Enviado | October 3, 2025 |
| Última modificación | October 12, 2025 |
| Relacionado con | ArcGIS Field Maps |
| Versión encontrada | 25.2.0 |
| Sistema operativo | Apple iOS |
| Versión de sistema operativo | 18.x |
| Estado | Will Not Be Addressed
El equipo de desarrollo ha considerado el problema o la solicitud y ha llegado a la conclusión de que no se va a solucionar. La sección Información adicional del problema puede contener más explicaciones.
|
Información adicional
In the latest release of ArcGIS Field Maps, this is not a valid expression since the variable being accessed in the return expression has not been declared when the FeatureSet is empty. To remedy this, move the declaration of the variable in the for loop outside the loop.
var wetlands = FeatureSetByName($map, "Layer 2");
var intNWis = Intersects($feature, wetlands);
var intwetland;
for (var n in intNWls){
intwetland = n.ATTRIBUTE;
return intwetland;
Solución alternativa
Add a conditional statement to return the FeatureSet only when the count is not zero:
if(Count(featureSetName)>0){}
Pasos para reproducir