<?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: How to automate an ID (Guid or sequence) without using the ArcMap Calculate Field in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/how-to-automate-an-id-guid-or-sequence-without/m-p/438134#M25012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it in Python with the UUID module. &amp;nbsp;See here:&amp;nbsp;&lt;A class="link-titled" href="https://docs.python.org/2/library/uuid.html" title="https://docs.python.org/2/library/uuid.html"&gt;UUID objects — Python 2.7.12 documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Oct 2016 15:21:06 GMT</pubDate>
    <dc:creator>MitchHolley1</dc:creator>
    <dc:date>2016-10-20T15:21:06Z</dc:date>
    <item>
      <title>How to automate an ID (Guid or sequence) without using the ArcMap Calculate Field</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-automate-an-id-guid-or-sequence-without/m-p/438128#M25006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found many exemples on how to calculate a field that contain an ID (sequence or GUID), but it was always with the field calculator, which means that it is calculed on time for all records.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I'd like to do is, that everytime we create a new record, the ID field is automatically calculated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any Idea on how to do it ? Do I need to do a class extension ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nathalie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 11:42:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-automate-an-id-guid-or-sequence-without/m-p/438128#M25006</guid>
      <dc:creator>NathalieLambert</dc:creator>
      <dc:date>2013-09-06T11:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate an ID (Guid or sequence) without using the ArcMap Calculate Field</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-automate-an-id-guid-or-sequence-without/m-p/438129#M25007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm guessing you need your developer to create an extension that listens out for "on create of Feature" events. Look at the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;IEditEvents&lt;/SPAN&gt;&lt;SPAN&gt; interface. This has an event handler that captures the on create of feature event which you could insert code to generate an ID in your field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 15:43:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-automate-an-id-guid-or-sequence-without/m-p/438129#M25007</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2013-09-06T15:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate an ID (Guid or sequence) without using the ArcMap Calculate Field</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-automate-an-id-guid-or-sequence-without/m-p/438130#M25008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could maybe use a globalid (a guid maintained by the geodatabase) or a trigger in the database if using sde...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some info from the help:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//003n0000001m000000"&gt;ArcGIS field data types&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/in_SQL_Server/006z0000001s000000/"&gt;Inserting a value into a global ID or GUID column in SQL Server using SQL&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 15:18:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-automate-an-id-guid-or-sequence-without/m-p/438130#M25008</guid>
      <dc:creator>ForrestJones</dc:creator>
      <dc:date>2013-09-09T15:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate an ID (Guid or sequence) without using the ArcMap Calculate Field</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-automate-an-id-guid-or-sequence-without/m-p/438131#M25009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you're using an enterprise geodatabase, e.g. MS SQL, you could set the field type to uniqueidentifier, and default it to newid() or newsequentialid(). THen write an instead of insert trigger, including ALL columns EXCEPT for the GUID column.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 11:43:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-automate-an-id-guid-or-sequence-without/m-p/438131#M25009</guid>
      <dc:creator>ThomasColson</dc:creator>
      <dc:date>2013-09-12T11:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate an ID (Guid or sequence) without using the ArcMap Calculate Field</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-automate-an-id-guid-or-sequence-without/m-p/438132#M25010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In fact, I'm using ArcSDE with an Oracle Database (ArcGIS 10.0).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I first used a GloablID, because it allows me to create a unique ID, but then&amp;nbsp; I read, that I cannot import a GlobalID in an other table; this is why a change my mind about GlobalID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I use a field of GUID Type, it is not automatically calculed. I can only calculated it with the field Calculator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd love to use a trigger to calculated my ID, but I don't know how I can create a trigger in an ArcSDE database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nathalie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 12:59:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-automate-an-id-guid-or-sequence-without/m-p/438132#M25010</guid>
      <dc:creator>NathalieLambert</dc:creator>
      <dc:date>2013-09-12T12:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate an ID (Guid or sequence) without using the ArcMap Calculate Field</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-automate-an-id-guid-or-sequence-without/m-p/438133#M25011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nathalie,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know this is an old posting but I want to help others that may come across this...&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are many ways to&amp;nbsp;copy and load records into a new table in a new geodatabase and preserve GlobalID Values. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. When copying data in ArcGIS, copy and paste, data extraction and XML workspace import preserves the GlobalID Values.&lt;/P&gt;&lt;P&gt;2. ArcObjects:&amp;nbsp;&amp;nbsp;on an unversioned SDE Geodatabase, you can convert the gloablID to a GUID field... then import the data... then convert the GUID back to the GloablID field.&lt;/P&gt;&lt;P&gt;3. ArcObjects: on an unversioned SDE Geodatabase...Using DataChangesImporter to monitor delta and preserve GlobalIDs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. In ArcGIS Pro: &amp;nbsp;Preserve GlobalIDs. - Python&lt;/P&gt;&lt;P&gt;&amp;nbsp;ref: &amp;nbsp;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/tool-reference/environment-settings/preserve-globalids.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/environment-settings/preserve-globalids.htm"&gt;Preserve Global IDs (Environment setting)—Geoprocessing | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 22:07:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-automate-an-id-guid-or-sequence-without/m-p/438133#M25011</guid>
      <dc:creator>MichaelRobb</dc:creator>
      <dc:date>2016-10-19T22:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate an ID (Guid or sequence) without using the ArcMap Calculate Field</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-automate-an-id-guid-or-sequence-without/m-p/438134#M25012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it in Python with the UUID module. &amp;nbsp;See here:&amp;nbsp;&lt;A class="link-titled" href="https://docs.python.org/2/library/uuid.html" title="https://docs.python.org/2/library/uuid.html"&gt;UUID objects — Python 2.7.12 documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 15:21:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-automate-an-id-guid-or-sequence-without/m-p/438134#M25012</guid>
      <dc:creator>MitchHolley1</dc:creator>
      <dc:date>2016-10-20T15:21:06Z</dc:date>
    </item>
  </channel>
</rss>

