<?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: Extract the value of a table from an intersect, and apply it to a new feature. in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/extract-the-value-of-a-table-from-an-intersect-and/m-p/1634705#M1825</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/895667"&gt;@rsnider43&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;So the issue with your code is that you are trying to access a featureset, not a feature. Just modify the code sto the following below.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var fibercable = FeaturesetbyName($datastore, 'attributeruletest.sde.fibercable');
var ints = Intersects(fibercable, Geometry($feature));
iif(Count(ints) &amp;gt; 0, First(ints)['placement'], false);

// Option 2
var fibercable = FeaturesetbyName($datastore, 'attributeruletest.sde.fibercable')
var ints = First(Intersects(fibercable, Geometry($feature)))
iif(TypeOf(ints) == 'Feature', ints['placement'], false)&lt;/LI-CODE&gt;&lt;P&gt;When you use intersect function it returns a 'FeatureSet' which is multiple records whereas the 'First' function returns a single record, or 'Feature'.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Jul 2025 18:48:13 GMT</pubDate>
    <dc:creator>RPGIS</dc:creator>
    <dc:date>2025-07-21T18:48:13Z</dc:date>
    <item>
      <title>Extract the value of a table from an intersect, and apply it to a new feature.</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/extract-the-value-of-a-table-from-an-intersect-and/m-p/1634693#M1823</link>
      <description>&lt;P&gt;Hello, I have 2 classes, one called fibercable, and another one called Splice points. I am trying to create a rule for when a splice point intersects a fibercable at any point, it will get the value in the 'placement' row of the fibercable's attribute table where it intersects the new splice point, then it will apply it to the 'placement' row of the new splice point that has just been created. My code is below and it keeps giving an 'Indexable type expected' error. How would this potentially work? Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;var fibercable = FeaturesetbyName($datastore, 'attributeruletest.sde.fibercable');
var ints = Intersects(fibercable, Geometry($feature));
iif(Count(ints) &amp;gt; 0, ints['placement'], false); &lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 21 Jul 2025 18:20:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/extract-the-value-of-a-table-from-an-intersect-and/m-p/1634693#M1823</guid>
      <dc:creator>rsnider43</dc:creator>
      <dc:date>2025-07-21T18:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Extract the value of a table from an intersect, and apply it to a new feature.</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/extract-the-value-of-a-table-from-an-intersect-and/m-p/1634704#M1824</link>
      <description>&lt;P&gt;The &lt;A href="https://developers.arcgis.com/arcade/function-reference/featureset_functions/#intersects" target="_self"&gt;Intersects&lt;/A&gt; function returns a FeatureSet, not a feature, so you'll have to extract a feature from "ints". If you know there will only be one feature in that FeatureSet, then you can use the &lt;A href="https://developers.arcgis.com/arcade/function-reference/featureset_functions/#first" target="_self"&gt;First&lt;/A&gt; function.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;iif(Count(ints) &amp;gt; 0, First(ints)['placement'], false); &lt;/LI-CODE&gt;&lt;P&gt;Otherwise, you'd have to &lt;A href="https://developers.arcgis.com/arcade/guide/loops/" target="_self"&gt;loop&lt;/A&gt; through the FeatureSet to get each feature..&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 18:44:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/extract-the-value-of-a-table-from-an-intersect-and/m-p/1634704#M1824</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2025-07-21T18:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Extract the value of a table from an intersect, and apply it to a new feature.</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/extract-the-value-of-a-table-from-an-intersect-and/m-p/1634705#M1825</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/895667"&gt;@rsnider43&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;So the issue with your code is that you are trying to access a featureset, not a feature. Just modify the code sto the following below.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var fibercable = FeaturesetbyName($datastore, 'attributeruletest.sde.fibercable');
var ints = Intersects(fibercable, Geometry($feature));
iif(Count(ints) &amp;gt; 0, First(ints)['placement'], false);

// Option 2
var fibercable = FeaturesetbyName($datastore, 'attributeruletest.sde.fibercable')
var ints = First(Intersects(fibercable, Geometry($feature)))
iif(TypeOf(ints) == 'Feature', ints['placement'], false)&lt;/LI-CODE&gt;&lt;P&gt;When you use intersect function it returns a 'FeatureSet' which is multiple records whereas the 'First' function returns a single record, or 'Feature'.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 18:48:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/extract-the-value-of-a-table-from-an-intersect-and/m-p/1634705#M1825</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2025-07-21T18:48:13Z</dc:date>
    </item>
  </channel>
</rss>

