<?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 Rule Generate ID - Create Sequence Error in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-generate-id-create-sequence-error/m-p/1709677#M103742</link>
    <description>&lt;P&gt;I think one of my problems is that I cannot create a sequence. Is that something I need to enable on the SQL Server?&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jun 2026 20:09:13 GMT</pubDate>
    <dc:creator>doronwen</dc:creator>
    <dc:date>2026-06-24T20:09:13Z</dc:date>
    <item>
      <title>Attribute Rule Generate ID - Create Sequence Error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-generate-id-create-sequence-error/m-p/1709614#M103739</link>
      <description>&lt;P&gt;I'm trying to create an attribute rule that would generate the next ID in a sequence every time a user add a new record to a feature class. I keep getting an error and warning messaged related to "Sequence". I'm assuming it's related to the fact my data is housed in a&amp;nbsp;SQL DB.&lt;/P&gt;&lt;P&gt;The data is published to an ArcGIS Portal, so I stopped the service to remove any locks before attempting to add the attribute rule. I also tried using two different accounts- GISOWNER and GDO, but that did not make any difference.&lt;/P&gt;&lt;P&gt;Can someone explain to me what is the "Create Sequence" check box for and what settings/properties I need to change on the SQL Server side of things to enable me to create an attribute rule?&lt;/P&gt;&lt;P&gt;Side note - I do not have permissions to make changes to the database settings on the SQL Server, but I will be meeting with the IT person who does. So I need to explain to them what need to be changed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="doronwen_0-1782319856150.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/154150iB5CFCB1457662482/image-size/large?v=v2&amp;amp;px=999" role="button" title="doronwen_0-1782319856150.png" alt="doronwen_0-1782319856150.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="doronwen_1-1782319896751.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/154151i9096CB62F1930AC0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="doronwen_1-1782319896751.png" alt="doronwen_1-1782319896751.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>Wed, 24 Jun 2026 16:57:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-generate-id-create-sequence-error/m-p/1709614#M103739</guid>
      <dc:creator>doronwen</dc:creator>
      <dc:date>2026-06-24T16:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rule Generate ID - Create Sequence Error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-generate-id-create-sequence-error/m-p/1709650#M103741</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/672876"&gt;@doronwen&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;We are currently using a sequencer in all of our attribute rules for our records and typically you would want to follow the instructions below.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Open and Configure the &lt;A href="https://doc.esri.com/en/arcgis-pro/latest/tool-reference/data-management/create-database-sequence.html?tabs=dialog" target="_blank" rel="noopener"&gt;Generate Sequence Tool&lt;/A&gt;&lt;OL&gt;&lt;LI&gt;*Be sure to copy the name of the sequence since the attribute rule will look for that particular name.&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Once you have that sequence created then, in the attribute rules create an immediate calculation rule.&lt;/LI&gt;&lt;LI&gt;In the rule expression use:&lt;/LI&gt;&lt;/OL&gt;&lt;LI-CODE lang="javascript"&gt;var N = $feature.IncrementID
if( IsEmpty(N) ){ N = NextSequenceValue('&amp;lt;name of sequence&amp;gt;') }
return N

// Or Simply iif( IsEmpty(N), NextSequenceValue('&amp;lt;name of sequence&amp;gt;'), N )
// Note: You may need to specify the schema owner if in an sde database&lt;/LI-CODE&gt;&lt;UL&gt;&lt;LI&gt;Once established and conditions set then the rule will populate accordingly.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;You can also run the same rule as a standalone field calculation as well.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2026 19:07:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-generate-id-create-sequence-error/m-p/1709650#M103741</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2026-06-24T19:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rule Generate ID - Create Sequence Error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-generate-id-create-sequence-error/m-p/1709677#M103742</link>
      <description>&lt;P&gt;I think one of my problems is that I cannot create a sequence. Is that something I need to enable on the SQL Server?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2026 20:09:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-generate-id-create-sequence-error/m-p/1709677#M103742</guid>
      <dc:creator>doronwen</dc:creator>
      <dc:date>2026-06-24T20:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rule Generate ID - Create Sequence Error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-generate-id-create-sequence-error/m-p/1709722#M103744</link>
      <description>&lt;P&gt;For SQL Server you need to use a database account in the database connection that has the CREATE SEQUENCE and ALTER OR CONTROL permissions in the database you are trying to create the sequence in. The database owner should be able to grant those permissions, but they have to be granted through something like SQL Server Management Studio.&lt;/P&gt;&lt;P&gt;The "Create Sequence" checkbox you highlighted will create a new database sequence when the Generate ID attribute rule template is run. That sequence will have a random name, start at 1, and increment by 1. If you already have a database sequence you want to use, then you can uncheck that box. The Generate ID template is great for creating custom IDs. You can pick the prefix, suffix, padding, separators between those things, and vary things based on an attribute field.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2026 22:13:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-generate-id-create-sequence-error/m-p/1709722#M103744</guid>
      <dc:creator>Joshua-Young</dc:creator>
      <dc:date>2026-06-24T22:13:05Z</dc:date>
    </item>
  </channel>
</rss>

