<?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: How to Create an Attribute Rule to Auto-Populate POLEID and BLOCK Fields Based on Maximum Value and Location in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/how-to-create-an-attribute-rule-to-auto-populate/m-p/1638410#M1851</link>
    <description>&lt;P&gt;It should be, they where first included in 3.4.&lt;/P&gt;&lt;P&gt;Try here -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MikeMillerGIS_0-1754065022365.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/137706iFB92A29ED4F8AA4A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MikeMillerGIS_0-1754065022365.png" alt="MikeMillerGIS_0-1754065022365.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or here&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MikeMillerGIS_1-1754065056360.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/137707iFC28C41BD8E85DF5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MikeMillerGIS_1-1754065056360.png" alt="MikeMillerGIS_1-1754065056360.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Aug 2025 16:17:42 GMT</pubDate>
    <dc:creator>MikeMillerGIS</dc:creator>
    <dc:date>2025-08-01T16:17:42Z</dc:date>
    <item>
      <title>How to Create an Attribute Rule to Auto-Populate POLEID and BLOCK Fields Based on Maximum Value and Location</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/how-to-create-an-attribute-rule-to-auto-populate/m-p/1638253#M1848</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm working with a point feature class in a file geodatabase. I want to implement an attribute rule that triggers when a new point is added, with the following requirements:&lt;/P&gt;&lt;P&gt;1. Auto-populate the BLOCK field based on the location of the new pole. I have a polygon layer (BlockBoundary) that contains block boundaries with a BLOCK field.&lt;/P&gt;&lt;P&gt;2. Auto-generate a unique POLEID by identifying the highest existing POLEID value within the same block and incrementing it by 1 for the new feature.&lt;/P&gt;&lt;P&gt;Ideally, the POLEID should follow a padded text format (e.g., "0001", "0002", etc.), and should concatenate the block number with the sequence (e.g., "03-0001"). ( BLOCK and POLEID are in text format&lt;/P&gt;&lt;P&gt;Has anyone implemented a similar rule using Arcade in attribute rules? I'm looking for guidance or a sample script that handles:&lt;/P&gt;&lt;P&gt;Filtering existing features by blocking and calculating the max POLETAGID within that block&lt;/P&gt;&lt;P&gt;Returning a properly formatted new ID&lt;/P&gt;&lt;P&gt;Thanks in advance for your help,&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Kabir Ahmad&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 02:51:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/how-to-create-an-attribute-rule-to-auto-populate/m-p/1638253#M1848</guid>
      <dc:creator>YumkhaibamKabirAhmad</dc:creator>
      <dc:date>2025-08-01T02:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to Create an Attribute Rule to Auto-Populate POLEID and BLOCK Fields Based on Maximum Value and Location</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/how-to-create-an-attribute-rule-to-auto-populate/m-p/1638298#M1849</link>
      <description>&lt;P&gt;You can set up #1 using a templated AR -&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/template-attribute-rules.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/template-attribute-rules.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For number #2, I would suggest using a database sequence(also in the templated rule), and not rely on querying for a pole, that could lead to a racing condition and duplicate ids.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 11:58:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/how-to-create-an-attribute-rule-to-auto-populate/m-p/1638298#M1849</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2025-08-01T11:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to Create an Attribute Rule to Auto-Populate POLEID and BLOCK Fields Based on Maximum Value and Location</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/how-to-create-an-attribute-rule-to-auto-populate/m-p/1638402#M1850</link>
      <description>&lt;P&gt;Thank you the suggestion @ Mike&lt;SPAN class=""&gt;, but template option is not available in my ArcPRO(3.5).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 15:58:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/how-to-create-an-attribute-rule-to-auto-populate/m-p/1638402#M1850</guid>
      <dc:creator>YumkhaibamKabirAhmad</dc:creator>
      <dc:date>2025-08-01T15:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to Create an Attribute Rule to Auto-Populate POLEID and BLOCK Fields Based on Maximum Value and Location</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/how-to-create-an-attribute-rule-to-auto-populate/m-p/1638410#M1851</link>
      <description>&lt;P&gt;It should be, they where first included in 3.4.&lt;/P&gt;&lt;P&gt;Try here -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MikeMillerGIS_0-1754065022365.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/137706iFB92A29ED4F8AA4A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MikeMillerGIS_0-1754065022365.png" alt="MikeMillerGIS_0-1754065022365.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or here&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MikeMillerGIS_1-1754065056360.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/137707iFC28C41BD8E85DF5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MikeMillerGIS_1-1754065056360.png" alt="MikeMillerGIS_1-1754065056360.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 16:17:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/how-to-create-an-attribute-rule-to-auto-populate/m-p/1638410#M1851</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2025-08-01T16:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to Create an Attribute Rule to Auto-Populate POLEID and BLOCK Fields Based on Maximum Value and Location</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/how-to-create-an-attribute-rule-to-auto-populate/m-p/1639018#M1855</link>
      <description>&lt;P&gt;I have att rule that is very similar to that &lt;A href="https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-for-sequential-numbers-by-feature/m-p/1418823" target="_self"&gt;here&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't have text padding in that code, but it is an modified version of the code &lt;A href="https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-sequential-number-in-a-text-field/m-p/1364622/highlight/true#M76776" target="_self"&gt;here&lt;/A&gt; that does pad the return result.&lt;/P&gt;&lt;P&gt;Should get you on the right track.&amp;nbsp; At least one way to do it anyway.&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 21:58:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/how-to-create-an-attribute-rule-to-auto-populate/m-p/1639018#M1855</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2025-08-04T21:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to Create an Attribute Rule to Auto-Populate POLEID and BLOCK Fields Based on Maximum Value and Location</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/how-to-create-an-attribute-rule-to-auto-populate/m-p/1639336#M1857</link>
      <description>&lt;P&gt;The Templates option are not in 3.5 pro version, anyway thank you very much Mike, Im able to solve the problem. Thanks for your guidance.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 18:29:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/how-to-create-an-attribute-rule-to-auto-populate/m-p/1639336#M1857</guid>
      <dc:creator>YumkhaibamKabirAhmad</dc:creator>
      <dc:date>2025-08-05T18:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to Create an Attribute Rule to Auto-Populate POLEID and BLOCK Fields Based on Maximum Value and Location</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/how-to-create-an-attribute-rule-to-auto-populate/m-p/1639351#M1858</link>
      <description>&lt;P&gt;Thank you Rhett, I already solved the problem but still i will try your arcade expression. Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 18:46:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/how-to-create-an-attribute-rule-to-auto-populate/m-p/1639351#M1858</guid>
      <dc:creator>YumkhaibamKabirAhmad</dc:creator>
      <dc:date>2025-08-05T18:46:09Z</dc:date>
    </item>
  </channel>
</rss>

