<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using Attribute Rules With Joined Tables To Pass Attribute Based On Intersecting Feature in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/using-attribute-rules-with-joined-tables-to-pass/m-p/1033829#M104</link>
    <description>&lt;P&gt;What you are trying is not possible in this form.&lt;/P&gt;&lt;P&gt;Attribute Rules work on the database level, while joins only work in a map. The original tables don't have these joins, hence your rule can't find the specified field.&lt;/P&gt;&lt;P&gt;Assuming you have a relationship between Parcel_Copy_Test and Parcelview_Copy based on PIN:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var parcels = FeatureSetByName($datastore, "Parcel_Copy_Test", ["PIN"], true)
var first_intersected_parcel = First(Intersects(parcels, $feature))
var pin = first_intersected_parcel.PIN
var parcelviews = FeatureSetByName($datastore, "Parcelview_Copy", ["PIN", "ADCO_PIN"])
var adco_pin = First(Filter(parcelviews, "PIN = @pin")).ADCO_PIN
return adco_pin&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Mar 2021 06:48:20 GMT</pubDate>
    <dc:creator>JohannesLindner</dc:creator>
    <dc:date>2021-03-08T06:48:20Z</dc:date>
    <item>
      <title>Using Attribute Rules With Joined Tables To Pass Attribute Based On Intersecting Feature</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/using-attribute-rules-with-joined-tables-to-pass/m-p/1008954#M49</link>
      <description>&lt;P&gt;I have a question about using Attribute Rules (AR) to trigger an attribute calculation based on an intersecting polygon feature that has a joined table within ArcGIS Pro. Is there a way to use AR with joined tables? I know this can work with related records, however my question pertains specifically to joined tables in Pro. I must preface this post by saying I am very much a beginner with Arcade &amp;amp; AR.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Success Thus Far:&lt;/STRONG&gt;&amp;nbsp;I am working with a point layer and a parcel layer. When a point feature is created inside a polygon parcel, the parcel number is passed from the parcel polygon layer to a parcel number field in the point feature class. This works great and below is my successful Arcade expression for the AR.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Working Expression.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/1997i783CD5397877FBB4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Working Expression.PNG" alt="Working Expression.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Current Challenge:&amp;nbsp;&lt;/STRONG&gt;I have a standalone table residing in the same geodatabase that house the point and parcel feature classes. The table is called "parcelview_copy". This table contains additional information about parcels and I have joined this table to the parcel polygon feature class within Pro. I want to pass a different PIN field, "ADCO_PIN" to the point feature class when a point is created within a parcel. I get this error in the Arcade expression below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error Expression.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/1998iFAA17C43641C3698/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error Expression.PNG" alt="Error Expression.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm not really sure what I'm doing wrong or if joined tables are supported by AR?&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 18:06:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/using-attribute-rules-with-joined-tables-to-pass/m-p/1008954#M49</guid>
      <dc:creator>SterlingLoetz</dc:creator>
      <dc:date>2020-12-11T18:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using Attribute Rules With Joined Tables To Pass Attribute Based On Intersecting Feature</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/using-attribute-rules-with-joined-tables-to-pass/m-p/1033829#M104</link>
      <description>&lt;P&gt;What you are trying is not possible in this form.&lt;/P&gt;&lt;P&gt;Attribute Rules work on the database level, while joins only work in a map. The original tables don't have these joins, hence your rule can't find the specified field.&lt;/P&gt;&lt;P&gt;Assuming you have a relationship between Parcel_Copy_Test and Parcelview_Copy based on PIN:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var parcels = FeatureSetByName($datastore, "Parcel_Copy_Test", ["PIN"], true)
var first_intersected_parcel = First(Intersects(parcels, $feature))
var pin = first_intersected_parcel.PIN
var parcelviews = FeatureSetByName($datastore, "Parcelview_Copy", ["PIN", "ADCO_PIN"])
var adco_pin = First(Filter(parcelviews, "PIN = @pin")).ADCO_PIN
return adco_pin&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 06:48:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/using-attribute-rules-with-joined-tables-to-pass/m-p/1033829#M104</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-03-08T06:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using Attribute Rules With Joined Tables To Pass Attribute Based On Intersecting Feature</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/using-attribute-rules-with-joined-tables-to-pass/m-p/1034037#M105</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/294341"&gt;@JohannesLindner&lt;/a&gt;&amp;nbsp;. I was able to use this solution.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/attribute-rules-videos/using-attribute-rules-with-joined-tables-to-pass-attribute-based/m-p/1030257#M20" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/attribute-rules-videos/using-attribute-rules-with-joined-tables-to-pass-attribute-based/m-p/1030257#M20&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 17:44:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/using-attribute-rules-with-joined-tables-to-pass/m-p/1034037#M105</guid>
      <dc:creator>SterlingLoetz</dc:creator>
      <dc:date>2021-03-08T17:44:52Z</dc:date>
    </item>
  </channel>
</rss>

