Bug ID Number |
BUG-000179915 |
Submitted | October 3, 2025 |
Last Modified | October 12, 2025 |
Applies to | ArcGIS Field Maps |
Version found | 25.2.0 |
Operating System | Apple iOS |
Operating System Version | 18.x |
Status | Will Not Be Addressed
The development team has considered the issue or request and concluded it will not be addressed. The issue's Additional Information section may contain further explanation.
|
Additional Information
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;
Workaround
Add a conditional statement to return the FeatureSet only when the count is not zero:
if(Count(featureSetName)>0){}
Steps to Reproduce