<?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: Auto-Increment Field within SDE in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434842#M16801</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How would something like this work if a user is adding a feature from a mobile device?&amp;nbsp; Would the ID only be committed once the feature is posted back to the database or does it get generated on creation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there were multiple people editing the same feature class, since you have the trigger on the add table, does this 'support' versioning where duplicate numbers wouldn't get assigned?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points 2 and 3 are understood.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jul 2014 21:26:05 GMT</pubDate>
    <dc:creator>mpboyle</dc:creator>
    <dc:date>2014-07-08T21:26:05Z</dc:date>
    <item>
      <title>Auto-Increment Field within SDE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434835#M16794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone successfully implemented a way of auto-incrementing an integer field within a SDE (Sql Server) geodatabase?&amp;nbsp; If so, would you be willing to share your method with examples?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to have an integer field that increments anytime a feature is created (inserted) and not have to rely on scripts afterwards to populate the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our current system is:&lt;/P&gt;&lt;P&gt;ArcSDE: 10.1 sp1&lt;/P&gt;&lt;P&gt;RDBMS: Sql Server 2008 R2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 20:13:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434835#M16794</guid>
      <dc:creator>mpboyle</dc:creator>
      <dc:date>2014-07-08T20:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-Increment Field within SDE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434836#M16795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We use a custom trigger and sequence in oracle.&amp;nbsp; Would that work? If so maybe you can adapt it, happy to share.&amp;nbsp; We have been using it for years on SDE to autopopulate sequential fields in a versioned database&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 20:53:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434836#M16795</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2014-07-08T20:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-Increment Field within SDE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434837#M16796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've heard using a sequence and trigger has worked.&amp;nbsp; Unfortunately, I'm not a DBA and don't really understand creating a sequence or how the trigger would have to be written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Do you think if I explained this to our Sql DBA he'd understand what I'm after...?&lt;/P&gt;&lt;P&gt;2) Is the sequence stored as a table...?&lt;/P&gt;&lt;P&gt;3) Can the same sequence be used for multiple feature classes?...create one sequence that's used by multiple features to grab an ID?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 21:00:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434837#M16796</guid>
      <dc:creator>mpboyle</dc:creator>
      <dc:date>2014-07-08T21:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-Increment Field within SDE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434838#M16797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. I think so yes&lt;/P&gt;&lt;P&gt;2. Sequence is stored (at least in oracle) as a sequence, not a table.&lt;/P&gt;&lt;P&gt;3. Yes we share it across multiple FCs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 21:03:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434838#M16797</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2014-07-08T21:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-Increment Field within SDE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434839#M16798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you implemented this with versioned data or non-versioned data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 21:10:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434839#M16798</guid>
      <dc:creator>mpboyle</dc:creator>
      <dc:date>2014-07-08T21:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-Increment Field within SDE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434840#M16799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remember all oracle, adjust as necessary&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So we create a sequence as the data owner (MCGIS).&amp;nbsp; It will be shared (this is for fittings)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14048537422767602" jivemacro_uid="_14048537422767602" modifiedtitle="true"&gt;
&lt;P&gt;CREATE SEQUENCE MCGIS.FIT_SEQUENCE&lt;/P&gt;
&lt;P&gt;&amp;nbsp; START WITH 159082&lt;/P&gt;
&lt;P&gt;&amp;nbsp; MAXVALUE 999999999999999999999999999&lt;/P&gt;
&lt;P&gt;&amp;nbsp; MINVALUE 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; NOCYCLE&lt;/P&gt;
&lt;P&gt;&amp;nbsp; CACHE 20&lt;/P&gt;
&lt;P&gt;&amp;nbsp; NOORDER;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then we create triggers (in this case, for water, reclaimed, and sewer fittings). Showing one of them (reclaimed) below.&amp;nbsp; The MCGIS.A2436 is the add table of the Feature Class, determined from the SDE.Table_Registry Registration_ID column &lt;/P&gt;&lt;P&gt;TABLE_NAME of feature class = Reclaimed_Fittings, Registration_ID = 2436&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14048538310293611 jive_text_macro" jivemacro_uid="_14048538310293611"&gt;
&lt;P&gt;CREATE OR REPLACE TRIGGER MCGIS."UWOW_RFIT_TRIGGER" BEFORE INSERT ON MCGIS.A2436&amp;nbsp; FOR EACH ROW&lt;/P&gt;
&lt;P&gt;WHEN (&lt;/P&gt;
&lt;P&gt;NEW.UWOW_ID IS NULL&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;
&lt;P&gt;DECLARE V_UWOW_ID NUMBER(8);&amp;nbsp; BEGIN&lt;/P&gt;
&lt;P&gt;SELECT FIT_SEQUENCE.NEXTVAL INTO V_UWOW_ID FROM DUAL;&lt;/P&gt;
&lt;P&gt; :NEW.UWOW_ID := V_UWOW_ID;&amp;nbsp; END;&lt;/P&gt;
&lt;P&gt;/&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;and the next Feature class that shared it would just use the same sequence, for example our sewer one that shares it&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14048541615411897" jivemacro_uid="_14048541615411897" modifiedtitle="true"&gt;
&lt;P&gt;CREATE OR REPLACE TRIGGER MCGIS."UWOW_SFIT_TRIGGER" BEFORE INSERT ON MCGIS.A2532&amp;nbsp; FOR EACH ROW&lt;/P&gt;
&lt;P&gt;WHEN (&lt;/P&gt;
&lt;P&gt;NEW.UWOW_ID IS NULL&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;
&lt;P&gt;DECLARE V_UWOW_ID NUMBER(8);&amp;nbsp; BEGIN&lt;/P&gt;
&lt;P&gt;SELECT FIT_SEQUENCE.NEXTVAL INTO V_UWOW_ID FROM DUAL;&lt;/P&gt;
&lt;P&gt; :NEW.UWOW_ID := V_UWOW_ID;&amp;nbsp; END;&lt;/P&gt;
&lt;P&gt;/&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These triggers populate the UWOW_ID field of the feature class with the next available number if null (as to not overwrite if exists). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A few concerns to note that are solved with workflow issues&lt;/P&gt;&lt;P&gt;1. Since versioning is short transactions, this doesnt populate until save edits, when it hits the database&lt;/P&gt;&lt;P&gt;2. It does not prevent the user from manually hosing the ID (it remains editable)&lt;/P&gt;&lt;P&gt;3. If you reload the Feature Class, it breaks the trigger as it gets a new registration ID number.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 21:18:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434840#M16799</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2014-07-08T21:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-Increment Field within SDE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434841#M16800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its versioned&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 21:18:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434841#M16800</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2014-07-08T21:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-Increment Field within SDE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434842#M16801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How would something like this work if a user is adding a feature from a mobile device?&amp;nbsp; Would the ID only be committed once the feature is posted back to the database or does it get generated on creation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there were multiple people editing the same feature class, since you have the trigger on the add table, does this 'support' versioning where duplicate numbers wouldn't get assigned?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points 2 and 3 are understood.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 21:26:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434842#M16801</guid>
      <dc:creator>mpboyle</dc:creator>
      <dc:date>2014-07-08T21:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-Increment Field within SDE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434843#M16802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I Believe since feature layers auto save it is immediately committed To the database. I will try and double check this Friday, I'm out the rest of the week for a medical thing, if you could remind me that would be great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as for conflict resolution, we deal with the same issue. as long as your feature layer is published as a single version (and you are not changing it with setgdbversion) then as soon as it is set it will not be overwritten with a new number, as the next editor will see the previous editors "change" which includes the creation of the id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if everyone has their own version, since feature layers don't reconcile and post, it's last in wins And overwrites the others&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would be remiss without saying this, having field editors working on the same data, at the same time, is a workflow issue, not a technology issue. It should be handled as such&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 23:49:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434843#M16802</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2014-07-08T23:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-Increment Field within SDE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434844#M16803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Coming back to this topic...has anyone tried implementing a sequence to auto-increment a field within SQL Server...?&amp;nbsp; Are sequences only available at SQL Server 2012 and above?...are they available within 2008 R2?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 14:07:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434844#M16803</guid>
      <dc:creator>mpboyle</dc:creator>
      <dc:date>2014-09-18T14:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-Increment Field within SDE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434845#M16804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matthew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you had any luck doing this with SQL server?&amp;nbsp; My trigger works as expected in ArcGIS Desktop, but does not work in ArcGIS Online.&amp;nbsp; I've got SQL Server 2012 and AGS 10.3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm relying on the inserted table to count records.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 20:05:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434845#M16804</guid>
      <dc:creator>JarrettGreen</dc:creator>
      <dc:date>2016-01-18T20:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-Increment Field within SDE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434846#M16805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Coming back to this thread nearly 2 years after original posting... finally had some time dive into Sql&amp;nbsp;Server sequences, and they are surprisingly easy to understand, even for someone like me who is not a DBA, or Sql&amp;nbsp;Server expert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been testing out using a sequence within a Sql&amp;nbsp;Server trigger and have found some success. &amp;nbsp;Below are some template screenshots others may find useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some quick notes about our environment:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ArcGIS version: 10.4.1&lt;/LI&gt;&lt;LI&gt;DBMS: Sql Server 2014 Standard&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 1:&lt;/STRONG&gt; create your &lt;A href="https://msdn.microsoft.com/en-us/library/ff878091.aspx"&gt;sequence&lt;/A&gt;&amp;nbsp;--- some background reading on their arguments is probably useful...&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;t-sql&amp;nbsp;examples are provided in the above link&lt;/LI&gt;&lt;LI&gt;can also use SSMS --- expand database&amp;nbsp;| Programmability | Sequences |&amp;nbsp;New Sequence&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 2:&lt;/STRONG&gt; apply your sequence to a Sql&amp;nbsp;trigger&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Notes:&lt;UL&gt;&lt;LI&gt;The trigger template was provided to us by an Esri solution engineer; I'm not a DBA ... so the t-sql&amp;nbsp;written may be improved upon without my knowing&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Line 14: if using a versioned dataset, your table name will need to be the associated 'add' (a) delta table&lt;/LI&gt;&lt;LI&gt;Line 15: this trigger &lt;STRONG&gt;ONLY&lt;/STRONG&gt; runs after an insert (create)&lt;/LI&gt;&lt;LI&gt;Line 25: this trigger &lt;STRONG&gt;ONLY&lt;/STRONG&gt; runs on the inserted record, not all records&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG __jive_id="321054" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/321054_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 3:&lt;/STRONG&gt; test Sql&amp;nbsp;trigger&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The highlighted fields in the screenshot below were all generated from Sql&amp;nbsp;triggers&lt;UL&gt;&lt;LI&gt;Seq = next value within my sequence (sequence started at 1001)&lt;EM&gt;&lt;STRONG&gt; --- only on inserts&lt;/STRONG&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;Seq String = concatenation of 'WS-' and sequence value &lt;STRONG&gt;&lt;EM&gt;--- only on inserts&lt;/EM&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Random = random 10-character string&lt;STRONG&gt;&lt;EM&gt; --- only on inserts&lt;/EM&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Result Display = concatenation of Collection Date, Test, Result Value, and Result Unit &lt;STRONG&gt;&lt;EM&gt;--- on inserts and updates&lt;/EM&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG __jive_id="321075" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/321075_pastedImage_7.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 19:01:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434846#M16805</guid>
      <dc:creator>mpboyle</dc:creator>
      <dc:date>2017-02-13T19:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-Increment Field within SDE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434847#M16806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Way to stick with it Matthew-&amp;nbsp; this is really good stuff!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/people/boyle.matt"&gt;boyle.matt&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 19:27:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434847#M16806</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2017-02-13T19:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-Increment Field within SDE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434848#M16807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is great. We were looking for this solution for so long. &amp;nbsp;I was able to implement this trigger. And it works great.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do have one question, though: &amp;nbsp;if I edit an&amp;nbsp;existing record in my attribute table the trigger assigns a new sequential number to that record? I am probably missing something in the trigger?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nataliya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 19:03:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434848#M16807</guid>
      <dc:creator>NataliyaLys</dc:creator>
      <dc:date>2017-06-28T19:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-Increment Field within SDE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434849#M16808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I checked one of the triggers I'm using and noticed a slight variance than the above screenshot...which I probably noticed after trying to edit features! &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sample below should take care of handling features were a sequence has already been applied. &amp;nbsp;The add (a) delta table for this test feature class has the trigger below applied to it, which is set to update the ID field on an insert/create&amp;nbsp;&lt;EM&gt;IF&lt;/EM&gt; the ID field is NULL. &amp;nbsp;You can see on subsequent edits of the feature, the 'ID' field remains the same value because the field is not NULL, and thus the trigger is skipped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Modified trigger to account for already-populated sequence value. &amp;nbsp;The 'IF' statement on line 27 will check the inserted table to see if the sequence field (ID in this example) is already populated. &amp;nbsp;If it's not, the next value within the sequence will be grabbed and populated into the 'ID' field as shown on line 35.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I blocked out our database and schema name. &amp;nbsp;Simply replace with your values.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="359171" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/359171_pastedImage_11.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Add (a) delta&amp;nbsp;table showing edits. &amp;nbsp;ID field remains as-is on subsequent edits because it is already populated.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="359168" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/359168_pastedImage_5.png" style="width: 791px; height: 96px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 19:41:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434849#M16808</guid>
      <dc:creator>mpboyle</dc:creator>
      <dc:date>2017-06-28T19:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-Increment Field within SDE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434850#M16809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much. That is exactly what I needed. I am not DBA either, &amp;nbsp;I just know enough to be dangerous&amp;nbsp;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nataliya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 13:18:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434850#M16809</guid>
      <dc:creator>NataliyaLys</dc:creator>
      <dc:date>2017-06-29T13:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-Increment Field within SDE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434851#M16810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matthew,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for this solution. It works great, however, did you run into an error such as this when reconciling?&lt;IMG __jive_id="412436" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/412436_reconcileerror.PNG" /&gt;&lt;/P&gt;&lt;P&gt;ESRI has a &lt;A class="link-titled" href="https://support.esri.com/en/technical-article/000016148" title="https://support.esri.com/en/technical-article/000016148"&gt;Tech Article&lt;/A&gt;&amp;nbsp;on it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering how you got around it if you experienced this sort of error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 14:43:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434851#M16810</guid>
      <dc:creator>RuchiraWelikala2</dc:creator>
      <dc:date>2018-06-27T14:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-Increment Field within SDE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434852#M16811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/295340" target="_blank"&gt;Ruchira Welikala&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was reading through the SQL statement I posted above and noticed a couple things&amp;nbsp;that are omitted in the triggers we use for versioned datasets.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I added the SDE_STATE_ID field in the where clauses because this is a key field in the add delta table.&amp;nbsp; Simply using the OBJECTID field can return many records in the add delta table (because there could be multiple edits on a single feature), but using BOTH the OBJECTID field and the SDE_STATE_ID field should return a unique record in the add delta table.&lt;/LI&gt;&lt;LI&gt;I include TOP(1) in the SELECT statement to check whether or not the ID field is empty.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is an updated trigger t-SQL statement, as well as sample records in the add delta table.&amp;nbsp; I have gotten the error you mention before, and I believe making these adjustments cleared things up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this trigger I was able to insert 3 separate features and edit them several times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;CREATE&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;TRIGGER&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;dbo&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;TriggerName&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;ON&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;DatabaseName&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;SchemaName&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;AddDeltaTable&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;-- add delta table name&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;AFTER&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;INSERT&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;UPDATE&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;AS&lt;/SPAN&gt; 
&lt;SPAN class="keyword token"&gt;BEGIN&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;-- SET NOCOUNT ON added to prevent extra result sets from&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;-- interfering with SELECT statements.&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;SET&lt;/SPAN&gt; NOCOUNT &lt;SPAN class="keyword token"&gt;ON&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;-- Delcare variables&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;DECLARE&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="variable token"&gt;@seqId&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt;


&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;-- =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;-- UPDATE ID FIELD BASED ON SEQUENCE VALUE&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;-- =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;-- check if inserted record has a NULL ID value&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;IF&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;TOP&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; i&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ID 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;FROM&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;DatabaseName&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;SchemaName&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;AddDeltaTable&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;a&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; inserted i 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;WHERE&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;a&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;OBJECTID &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; i&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;OBJECTID &lt;SPAN class="operator token"&gt;AND&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;a&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SDE_STATE_ID &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; i&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SDE_STATE_ID&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;IS&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;NULL&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;BEGIN&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;-- get next sequence value&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;SET&lt;/SPAN&gt; &lt;SPAN class="variable token"&gt;@seqId&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;NEXT&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;VALUE&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;FOR&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;DatabaseName&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;SchemaName&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;SequenceName&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;-- update sequence field&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;UPDATE&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;a&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;SET&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;a&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ID &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="variable token"&gt;@seqId&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;FROM&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;DatabaseName&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;SchemaName&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;AddDeltaTable&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;a&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; inserted i
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;WHERE&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;a&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;OBJECTID &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; i&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;OBJECTID &lt;SPAN class="operator token"&gt;AND&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;a&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SDE_STATE_ID &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; i&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SDE_STATE_ID

&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;END&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;END&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="412453" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/412453_pastedImage_10.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:29:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434852#M16811</guid>
      <dc:creator>mpboyle</dc:creator>
      <dc:date>2021-12-11T19:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-Increment Field within SDE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434853#M16812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, that makes perfect sense. I had created a trigger like this on Oracle (and leveraging the SDE_STATE_ID) but I didn't use it on this, which is on MSSQL.&amp;nbsp;I updated the trigger and it seems to have resolved the issue. Thank you very much, Matthew.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 18:50:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434853#M16812</guid>
      <dc:creator>RuchiraWelikala2</dc:creator>
      <dc:date>2018-06-27T18:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-Increment Field within SDE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434854#M16813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mathew.&amp;nbsp; Does this take in to account the feature copy/paste in an versioned edit session? Cheers and great work!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2018 11:04:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/auto-increment-field-within-sde/m-p/434854#M16813</guid>
      <dc:creator>xander</dc:creator>
      <dc:date>2018-09-06T11:04:13Z</dc:date>
    </item>
  </channel>
</rss>

