ArcGIS Pro 2.5.1
In March, 2020, I posted Chasing my tail with Arcade/Attribute Rules and Jake Skinner provided an attribute rule that worked just fine for me. Until today. The rule updates a field in a point feature class when a new point is created with the name of the municipality the point is located within:
var township = FeatureSetByName($datastore,"MunicipalitiesMSD",["NAME"],true)
var intersectLayer = Intersects(township, Geometry($feature))
var layer = First (intersectLayer)
return layer.NAME<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
When I verify the expression, I get an error:
Invalid expression
Error line 4.
Dictionary type expected
I've also deployed the same basic expression to get the Zipcode from an intersecting zip polygon and it now tosses the same error. I don't see the problem.

Jake Skinner
Xander Bakker