<?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: Attribute Rules - Create Database Sequence in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-create-database-sequence/m-p/1373487#M77781</link>
    <description>&lt;P&gt;Thanks, I’m working on an expression rule to generate an ID if the field is null&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jan 2024 16:20:56 GMT</pubDate>
    <dc:creator>JHicklen</dc:creator>
    <dc:date>2024-01-23T16:20:56Z</dc:date>
    <item>
      <title>Attribute Rules - Create Database Sequence</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-create-database-sequence/m-p/1371296#M77540</link>
      <description>&lt;P&gt;Seeking a solution to update Database SequenceValue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Migrating from Attribute Assistant to Attribute Rules and I have several hundred legacy assets with AssetIDs&lt;/P&gt;&lt;P&gt;Ultimately,&amp;nbsp;I'd like to&amp;nbsp;Create a Database Sequence where the value will pick up from the last legacy asset AssetID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to modify&amp;nbsp;the&amp;nbsp;Database Sequence table?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 21:33:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-create-database-sequence/m-p/1371296#M77540</guid>
      <dc:creator>JHicklen</dc:creator>
      <dc:date>2024-01-17T21:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rules - Create Database Sequence</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-create-database-sequence/m-p/1371338#M77548</link>
      <description>&lt;P&gt;This is not a specialty area for me but I did find an example of generating an ID by incrementing a sequence.&amp;nbsp; You can learn more about it &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/attribute-rule-script-expression.htm#anchor1" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 22:31:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-create-database-sequence/m-p/1371338#M77548</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2024-01-17T22:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rules - Create Database Sequence</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-create-database-sequence/m-p/1371340#M77549</link>
      <description>&lt;P&gt;I'm not sure if that is supported in a versioned editing workflow&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 22:35:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-create-database-sequence/m-p/1371340#M77549</guid>
      <dc:creator>BillFox</dc:creator>
      <dc:date>2024-01-17T22:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rules - Create Database Sequence</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-create-database-sequence/m-p/1371550#M77572</link>
      <description>&lt;P&gt;When you create a database sequence, you can specify the starting value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/create-database-sequence.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/create-database-sequence.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You could write a script that looped over those assets and got the max value.&amp;nbsp; Store that into an csv or excel and then script creating the seq with that value.&lt;/P&gt;&lt;P&gt;The sequences and attribute rule to leverage it is supported in a version environment, but if you use a seq in a version and delete that version, you do not get that value back, it is burnt.&lt;/P&gt;&lt;P&gt;We are looking into tools to assist Attribute Assistant customers create Attribute Rules easier, like the Generate ID, we are still in early development, but if you are interested in testing out the code as we build it, let us know.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 11:31:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-create-database-sequence/m-p/1371550#M77572</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2024-01-18T11:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rules - Create Database Sequence</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-create-database-sequence/m-p/1371654#M77590</link>
      <description>&lt;P&gt;Thanks, MikeMillerGIS&lt;/P&gt;&lt;P&gt;Good help&lt;/P&gt;&lt;P&gt;I specified the starting value in a sequence and created an arcade expression to customize the ID&lt;/P&gt;&lt;P&gt;I used AcrMap Attribute Assistant for years and years and of course the configurations were stored in a dynamic value table&lt;/P&gt;&lt;P&gt;I was wondering if Attribute Rules has a similar table view of the sequence&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, ArcPro attribute rules has only two triggers: insert or update; how about on selection?&lt;/P&gt;&lt;P&gt;I’m seeking to update by selection; meaning: I have current data without Asset Ids, so I would like to select assets and generate unique IDs based on selection&lt;/P&gt;&lt;P&gt;Is my only option to copy the selected features into a data layer using update trigger to generate ID?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 15:36:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-create-database-sequence/m-p/1371654#M77590</guid>
      <dc:creator>JHicklen</dc:creator>
      <dc:date>2024-01-18T15:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rules - Create Database Sequence</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-create-database-sequence/m-p/1371712#M77594</link>
      <description>&lt;P&gt;Trigger an update on them.&amp;nbsp; Depending on how you do your rule, that will trigger the update event on the rule and generate an ID if the field is null.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 16:20:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-create-database-sequence/m-p/1371712#M77594</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2024-01-18T16:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rules - Create Database Sequence</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-create-database-sequence/m-p/1373487#M77781</link>
      <description>&lt;P&gt;Thanks, I’m working on an expression rule to generate an ID if the field is null&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 16:20:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-create-database-sequence/m-p/1373487#M77781</guid>
      <dc:creator>JHicklen</dc:creator>
      <dc:date>2024-01-23T16:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rules - Create Database Sequence</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-create-database-sequence/m-p/1374639#M77925</link>
      <description>&lt;P&gt;Generating Unique IDs with Attribute Rules in ArcGIS Pro 3.2&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;My task is to generate Unique IDs for existing data within a feature class. (A legacy feature class within database that did not asset_ids populated)&lt;/P&gt;&lt;P&gt;Currently ArcPro Attribute Rules has two triggers (Insert or Update)&lt;/P&gt;&lt;P&gt;I’m seeking to execute a rule based on selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Steps to create custom id's:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Create database sequence&lt;/P&gt;&lt;P&gt;Create immediate or batch Attribute Rule&lt;/P&gt;&lt;P&gt;Arcade expression:&lt;/P&gt;&lt;P&gt;var id = NextSequenceValue("new_ID_seq")&lt;/P&gt;&lt;P&gt;return Text(id, 'STR-Test-0000')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Steps to create the id's on selected features:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Select the features first&lt;/P&gt;&lt;P&gt;Open attribute table and use field calculator on ASSETID field&lt;/P&gt;&lt;P&gt;Attribute Rule expression:&lt;/P&gt;&lt;P&gt;var id = NextSequenceValue("&lt;STRONG&gt;SEQUENCE&lt;/STRONG&gt;")&lt;/P&gt;&lt;P&gt;return Text(id, 'STR-SIGN-0000')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Click ok to populate.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 20:22:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-create-database-sequence/m-p/1374639#M77925</guid>
      <dc:creator>JHicklen</dc:creator>
      <dc:date>2024-01-25T20:22:47Z</dc:date>
    </item>
  </channel>
</rss>

