<?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 to Create Unique ID Not Working in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-to-create-unique-id-not-working/m-p/1276823#M67759</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Thank you for your help. I tried the suggested syntax, but the save button&lt;BR /&gt;is still greyed out.&lt;BR /&gt;I really don't understand what I'm doing wrong.&lt;BR /&gt;&lt;BR /&gt;[image: image.png]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[image: image.png]&lt;BR /&gt;</description>
    <pubDate>Sun, 09 Apr 2023 19:31:20 GMT</pubDate>
    <dc:creator>MapMaven</dc:creator>
    <dc:date>2023-04-09T19:31:20Z</dc:date>
    <item>
      <title>Attribute Rule to Create Unique ID Not Working</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-to-create-unique-id-not-working/m-p/1275056#M67564</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AttributeRules.jpg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/67147i4CA5357F2314A122/image-size/large?v=v2&amp;amp;px=999" role="button" title="AttributeRules.jpg" alt="AttributeRules.jpg" /&gt;&lt;/span&gt;I am trying to create a feature class with attribute rules (ArcPro 2.9.2), where the next sequential number is added to the uniqueID field when a new feature is inserted. The Arcade expression appears to be correct, but the “Save” button is greyed out and I’m not able to test if the attribute rule works.&amp;nbsp; I first created a database sequence I named "MySeq" for the file geodatabase, with sequence start id = 1 and sequence increment value = 1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Arcade Expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;var id = NextSequenceValue ("MySeq");&lt;/P&gt;&lt;P&gt;return 'ID-${id}'&lt;/P&gt;&lt;P&gt;Any guidance would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 01:57:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-to-create-unique-id-not-working/m-p/1275056#M67564</guid>
      <dc:creator>MapMaven</dc:creator>
      <dc:date>2023-04-04T01:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rule to Create Unique ID Not Working</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-to-create-unique-id-not-working/m-p/1275107#M67571</link>
      <description>&lt;P&gt;You use the wrong symbol for the &lt;A href="https://developers.arcgis.com/arcade/guide/template-literals/" target="_blank" rel="noopener"&gt;template literal&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;You're using single quotes, but it has to be backticks.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var id = NextSequenceValue ("MySeq");
return `ID-${id}`

// or just use this
//return "ID-" + id&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 04 Apr 2023 07:30:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-to-create-unique-id-not-working/m-p/1275107#M67571</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-04-04T07:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rule to Create Unique ID Not Working</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-to-create-unique-id-not-working/m-p/1276823#M67759</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Thank you for your help. I tried the suggested syntax, but the save button&lt;BR /&gt;is still greyed out.&lt;BR /&gt;I really don't understand what I'm doing wrong.&lt;BR /&gt;&lt;BR /&gt;[image: image.png]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[image: image.png]&lt;BR /&gt;</description>
      <pubDate>Sun, 09 Apr 2023 19:31:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-to-create-unique-id-not-working/m-p/1276823#M67759</guid>
      <dc:creator>MapMaven</dc:creator>
      <dc:date>2023-04-09T19:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rule to Create Unique ID Not Working</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-to-create-unique-id-not-working/m-p/1276831#M67763</link>
      <description>&lt;P&gt;Hmm, your images seem to be lost...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you hover over the red square to the left of the attribute rule or over the greyed out save button, ArcGIS tells you what is wrong.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Apr 2023 21:11:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-to-create-unique-id-not-working/m-p/1276831#M67763</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-04-09T21:11:53Z</dc:date>
    </item>
  </channel>
</rss>

