<?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 Attribute Calculation Rule - Automate Sequence Value in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-calculation-rule-automate-sequence-value/m-p/1143861#M51455</link>
    <description>&lt;P&gt;I have a file geodatabase with a point feature class and a standalone table. The standalone table is linked to the point feature class via a relationship class. The relationship class is using GUIDs as a one to many relationship. I'm trying develop a Calculation Attribute rule where the next value in FIELD1 is increased by 1. Due to the relationship class, I'm unable to use the Sequential Numbers concept. Here's my example:&lt;/P&gt;&lt;P&gt;Point Feature Class: Measurement Location (Plot)&lt;/P&gt;&lt;P&gt;Standalone Table: Trees&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are potentially many Trees within a Plot.&lt;/P&gt;&lt;P&gt;The plot location is predetermined with a GUID as the unique ID.&lt;/P&gt;&lt;P&gt;I would like the user to click a plot and add a tree beginning with number 1. The next plot will also begin with number 1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to use the Calculation Rule to auto populate this attribute?&lt;/P&gt;&lt;P&gt;I am new to Arcade and here's my attempt.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;var filt_val = $feature.PlotsGUID
var fs = FeatureSetByName($datastore, "std_Trees", ["PlotsGUID", "intTreeNum"], false)
var list = Filter(fs, 'PlotsGUID = @filt_val)
var TreeCount = 0
var TreeCount = Count(list)

IIf(TreeCount == 0, 1, TreeCount + 1);
return TreeCount&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;The issue is that filt_val variable is not storing the PlotsGUID value when adding a new record in the standalone table.&lt;/P&gt;&lt;P&gt;Any help would be very much appreciated.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Feb 2022 22:26:07 GMT</pubDate>
    <dc:creator>Jcronce</dc:creator>
    <dc:date>2022-02-14T22:26:07Z</dc:date>
    <item>
      <title>Attribute Calculation Rule - Automate Sequence Value</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-calculation-rule-automate-sequence-value/m-p/1143861#M51455</link>
      <description>&lt;P&gt;I have a file geodatabase with a point feature class and a standalone table. The standalone table is linked to the point feature class via a relationship class. The relationship class is using GUIDs as a one to many relationship. I'm trying develop a Calculation Attribute rule where the next value in FIELD1 is increased by 1. Due to the relationship class, I'm unable to use the Sequential Numbers concept. Here's my example:&lt;/P&gt;&lt;P&gt;Point Feature Class: Measurement Location (Plot)&lt;/P&gt;&lt;P&gt;Standalone Table: Trees&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are potentially many Trees within a Plot.&lt;/P&gt;&lt;P&gt;The plot location is predetermined with a GUID as the unique ID.&lt;/P&gt;&lt;P&gt;I would like the user to click a plot and add a tree beginning with number 1. The next plot will also begin with number 1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to use the Calculation Rule to auto populate this attribute?&lt;/P&gt;&lt;P&gt;I am new to Arcade and here's my attempt.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;var filt_val = $feature.PlotsGUID
var fs = FeatureSetByName($datastore, "std_Trees", ["PlotsGUID", "intTreeNum"], false)
var list = Filter(fs, 'PlotsGUID = @filt_val)
var TreeCount = 0
var TreeCount = Count(list)

IIf(TreeCount == 0, 1, TreeCount + 1);
return TreeCount&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;The issue is that filt_val variable is not storing the PlotsGUID value when adding a new record in the standalone table.&lt;/P&gt;&lt;P&gt;Any help would be very much appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 22:26:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-calculation-rule-automate-sequence-value/m-p/1143861#M51455</guid>
      <dc:creator>Jcronce</dc:creator>
      <dc:date>2022-02-14T22:26:07Z</dc:date>
    </item>
  </channel>
</rss>

