<?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: Autonumber in Pro when feature is created in Arcade in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/autonumber-in-pro-when-feature-is-created-in/m-p/107059#M646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="warning" __jive_macro_name="alert" alert="warning" class="jive_text_macro jive_macro_alert"&gt;&lt;P&gt;Duplicate thread.&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;See discussion here&amp;nbsp;&lt;A href="https://community.esri.com/message/947695-autonumber-in-pro-when-feature-is-created-in-arcade"&gt;https://community.esri.com/message/947695-autonumber-in-pro-when-feature-is-created-in-arcade&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 16 Aug 2020 16:17:05 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2020-08-16T16:17:05Z</dc:date>
    <item>
      <title>Autonumber in Pro when feature is created in Arcade</title>
      <link>https://community.esri.com/t5/developers-questions/autonumber-in-pro-when-feature-is-created-in/m-p/107058#M645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;I am trying to create an attribute rule in ArcGIS Pro that creates an ID for the feature when it is created as well as choose features with '::' leading the ID and assign a new unique ID. There seems to be an issue with the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE style="background-color: var(--black-075); border: 0px; font-weight: inherit; padding: 1px 5px;"&gt;NextSequenceValue&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;function.&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;Any suggestions are appreciated. So far I am unsuccessful but here is my code:&lt;/P&gt;&lt;PRE style="background-color: var(--black-050); border: 0px; margin: 0px 0px 1em; padding: 12px 8px;"&gt;&lt;CODE style="background-color: transparent; border: 0px; font-weight: inherit; margin: 0px;"&gt;// This rule will create a new unique id when a road centerline is created // If the road was created from a split its original id will have a prefix of '::' // We will use this to find the original road and its related alias road names  if (Left($feature.CTRLINEID, 2) == "::" || IsEmpty($feature.CTRLINEID)) { var id = NextSequenceValue('CTRLINEID')      // If the centerlineid is not set return the new id if (IsEmpty($feature.CTRLINEID)) return id;   // Find the original ID of the road that was split     var original_id = Mid($feature.centerlineid, 2, Count($feature.centerlineid) - 2);     if (IsEmpty(original_id)) return id;      // Store an add for every road alias and related it to the new road that was added after the cut var newAttributes = {}; newAttributes['CTRLINEID'] = id }&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2020 19:27:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/autonumber-in-pro-when-feature-is-created-in/m-p/107058#M645</guid>
      <dc:creator>CourtneyDunn</dc:creator>
      <dc:date>2020-08-13T19:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Autonumber in Pro when feature is created in Arcade</title>
      <link>https://community.esri.com/t5/developers-questions/autonumber-in-pro-when-feature-is-created-in/m-p/107059#M646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="warning" __jive_macro_name="alert" alert="warning" class="jive_text_macro jive_macro_alert"&gt;&lt;P&gt;Duplicate thread.&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;See discussion here&amp;nbsp;&lt;A href="https://community.esri.com/message/947695-autonumber-in-pro-when-feature-is-created-in-arcade"&gt;https://community.esri.com/message/947695-autonumber-in-pro-when-feature-is-created-in-arcade&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Aug 2020 16:17:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/autonumber-in-pro-when-feature-is-created-in/m-p/107059#M646</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-08-16T16:17:05Z</dc:date>
    </item>
  </channel>
</rss>

