| Numéro d’ID de bogue |
BUG-000179915 |
| Envoi | October 3, 2025 |
| Dernière modification | October 12, 2025 |
| S’applique à | ArcGIS Field Maps |
| Version trouvée | 25.2.0 |
| Système d’exploitation | Apple iOS |
| Version du système d’exploitation | 18.x |
| Statut | Will Not Be Addressed
L’équipe de développement a examiné le problème ou la demande et a décidé qu’ils ne seraient pas traités. Pour d’autres explications, reportez-vous à la section Informations supplémentaires correspondant au problème.
|
Informations supplémentaires
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;
Solution de contournement
Add a conditional statement to return the FeatureSet only when the count is not zero:
if(Count(featureSetName)>0){}
Étapes pour reproduire