Hi all,
I have two layers, one with parcels ("COPY_BaseParcel") and one with buildings ("COPY_BuildingsNew"). Currently there is a field in COPY_BaseParcel named "GPin" which has a unique GPIN ID number for every parcel.
I have this code to try to see which parcel each building intersects with and add the corresponding "GPin" from the parcel layer to the building layer.
There must be some kind of error with my code, as ArcGIS Pro will not let me save the attribute rule.
Please help me figure it out!
---
var fsParcel = FeatureSetByName($datastore, "COPY_BaseParcel", ["GPin"])
var fsIntersectParcel = Intersects($feature, fsParcel)
var GPin = First(fsIntersectParcel)
if(fsParcel == null) return null
else return GPin.GPin