I built some basic arcade expressions to plug into a field maps form to capture some attributes for point features our folks on the field are collecting. Some of these work, others I have been getting an error that the form "Failed to calculate."
Here is one of the following expressions to populate City Data for said point features:
var cities = FeatureSetByName($map, 'Political Boundaries', ['Name ID'])
var intersectCities = First(Intersects(feature, cities))
if (!IsEmpty(intersectCities)) {
return intersectCities['Name ID']
}else {
return null
}
However, upon testing this expression in field maps it appears to fail to calculate the expression:

I am unsure what the issue is precisely, I have similar expressions built for Tile Grid which works but it seems to be having issues with Cities and even Districts. Has anyone come across this issue?