Select to view content in your preferred language

Using Attribute Rules to calculate fields from intersecting polygons

8893
14
Jump to solution
03-04-2021 09:05 AM
TINATHOMPSON
Emerging Contributor

We have recently made the move to ArcGIS Pro for everything except our 911 Addressing.  We are searching for an Attribute rule that would allow us to take attribute data from several polygon layers and put them into our address layer.  In other words, we want to enter a new address point and have the attribute rule to go out and find certain data (ESN, Community, Senate, House, JP District, etc.) and enter that into our Address layer.  We were able to do this in ArcGIS Desktop using a script but that script will not work in Attribute rules.  Unfortunately, I do not understand Arcade and I'm pretty limited with vbscript.  I'm hoping that there is someone out there that has built something like this that would share it with me.

 

Thank You all in advance.

0 Kudos
14 Replies
TroyGray
Emerging Contributor

I am trying to do the same thing by pulling an attribute from an intersecting layer but I am receiving an error that the $datastore identifier is not found.  Is there additional set up on the service that is required in order to use the $datastore identifier?

Thank you

0 Kudos
XanderBakker
Esri Esteemed Contributor

Hi @TroyGray , I have seen this type of error when the feature set does not have GlobalIDs. Can you validate that it does?

0 Kudos
TroyGray
Emerging Contributor

Thanks Xander for the reply.  It turns out it was my fault because I didn't have "Feature Access" enabled on the service.  Once I enabled "Feature Access" the $datastore, $map, etc. appeared in the Arcade window and is working great.  Thanks again

JonathanPollack
Frequent Contributor

So as far as you know there is no way to do this between datastores?  Our points are in one database but our polygons are in another?  Do you think it may be possible to do this if both feature layers are published to Enterprise?

0 Kudos
JoeBorgione
MVP Emeritus

Perhaps @HusseinNasser2 can weigh in on this....

That should just about do it....
0 Kudos