I'm struggling to complete a field calculation using Arcade. I'm trying to calculate a field in table 1 based on a field from table 2. Both tables exist in the same file geodatabase.
var commericalLine = FeatureSetByName($datastore,'CommericalLine_Table')
if ($feature["FACILITYID"] == commericalLine["FACILITYID"]) {
return 1
}
else{
return Null
}
When I go to validate the expression, I receive the following error message:
Invalid Expression.
Error on line 3
Dictionary type expected.
Any suggestions on how to resolve this?