Ver ARCGIS 3.3.1
Cannot get past error 'Object Not found $map2'
Checked the Properties of 'Map2' to identify any alias .. none
_/
var x = FeatureSetByID($map, 'FireServiceArea', [*], true);
var z = $feature.name;
return z
<ERR> Invalid Expression / Error on line1 / Identifier expected
---------
var x = FeatureSetByName($map, 'FireServiceArea', [*], true);
var z = $feature.name;
return z
<ERR> Invalid Expression / Error on line1 / Object not found $map
--------
The Arcade Labeling profile doesn't have access to the $map profile variable, only the $feature variable.