<?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 Arcade question for using filtered geometry when insert feature in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/arcade-question-for-using-filtered-geometry-when/m-p/1325730#M1098</link>
    <description>&lt;P&gt;Hi, I am preparing an immediate calculation rule that does both insert and update Polygon layer based on attributes from a table layer.&lt;/P&gt;&lt;P&gt;What I am trying to make happen is just when a new record is created in a table, a new polygon feature is also created based on filtered attributes from table. Here, a geometry for the new feature will also rely on the filtered result, i.e. use the polygon geometry. The code that I prepared for the purpose unfortunately ended up with an error, saying "Field not found Shape". There is a "Shape" field in the polygon layer certainly; thus, I am stuck with this at the moment.&lt;/P&gt;&lt;P&gt;Much appreciated if someone knows what the wrong with my code is.&lt;BR /&gt;Thanks in advance for any ideas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Sep 2023 07:20:28 GMT</pubDate>
    <dc:creator>HNTZK46</dc:creator>
    <dc:date>2023-09-12T07:20:28Z</dc:date>
    <item>
      <title>Arcade question for using filtered geometry when insert feature</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/arcade-question-for-using-filtered-geometry-when/m-p/1325730#M1098</link>
      <description>&lt;P&gt;Hi, I am preparing an immediate calculation rule that does both insert and update Polygon layer based on attributes from a table layer.&lt;/P&gt;&lt;P&gt;What I am trying to make happen is just when a new record is created in a table, a new polygon feature is also created based on filtered attributes from table. Here, a geometry for the new feature will also rely on the filtered result, i.e. use the polygon geometry. The code that I prepared for the purpose unfortunately ended up with an error, saying "Field not found Shape". There is a "Shape" field in the polygon layer certainly; thus, I am stuck with this at the moment.&lt;/P&gt;&lt;P&gt;Much appreciated if someone knows what the wrong with my code is.&lt;BR /&gt;Thanks in advance for any ideas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 07:20:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/arcade-question-for-using-filtered-geometry-when/m-p/1325730#M1098</guid>
      <dc:creator>HNTZK46</dc:creator>
      <dc:date>2023-09-12T07:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade question for using filtered geometry when insert feature</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/arcade-question-for-using-filtered-geometry-when/m-p/1325733#M1099</link>
      <description>&lt;P&gt;Arcade indeed doesn't recognize the Shape field. Geometry() uses the whole feature. For that to work, you need to load the park geometries.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// line 13
var polygFS = FeatureSetByName($datastore, "National_parks", ["*"], true)

// line 21
"geometry": Geometry(polygFilter),&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You don't need to supply the GlobalID for inserts (line 20).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 06:19:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/arcade-question-for-using-filtered-geometry-when/m-p/1325733#M1099</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-09-06T06:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade question for using filtered geometry when insert feature</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/arcade-question-for-using-filtered-geometry-when/m-p/1325952#M1101</link>
      <description>&lt;P&gt;Also, if you are updating the triggering feature, you should not include that in updates, that update should be in the results keyword.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/attribute-rule-dictionary-keywords.htm#ESRI_SECTION1_7FAB1948CDF14FBF9129F8E81463D71E" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/attribute-rule-dictionary-keywords.htm#ESRI_SECTION1_7FAB1948CDF14FBF9129F8E81463D71E&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 15:30:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/arcade-question-for-using-filtered-geometry-when/m-p/1325952#M1101</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2023-09-06T15:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade question for using filtered geometry when insert feature</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/arcade-question-for-using-filtered-geometry-when/m-p/1326012#M1102</link>
      <description>&lt;P&gt;As I understand it, they aren't updating the triggering feature. They are copying the new value of $feature.asst_info into the polygon fc. Name, Type, and Code in lines 48-50 are attributes of the polygon fc, not the triggering feature. They are superfluously set to the values that are already in there, probably a relic from copy/pasting that piece of code from the insert block.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 17:12:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/arcade-question-for-using-filtered-geometry-when/m-p/1326012#M1102</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-09-06T17:12:14Z</dc:date>
    </item>
  </channel>
</rss>

