<?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: List Database Sequences for Enterprise Geodatabase in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/list-database-sequences-for-enterprise-geodatabase/m-p/843990#M4865</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe.&amp;nbsp; I looked to see and I can't find any existing enhancement request or idea specifically about listing database sequences from enterprise gdbs using Python.&amp;nbsp; You mentioned it in your idea here&amp;nbsp;&lt;A href="https://community.esri.com/ideas/18428" target="_blank"&gt;https://community.esri.com/ideas/18428&lt;/A&gt;&amp;nbsp;, but that idea is different.&amp;nbsp; I can't speak to the underlying reasons that it is only supported for file gdb, but I'd say that if you post an idea that specifically asks for this, at least it gives us something solid to reference rather than chasing different GeoNet threads!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jun 2021 08:49:45 GMT</pubDate>
    <dc:creator>KoryKramer</dc:creator>
    <dc:date>2021-06-22T08:49:45Z</dc:date>
    <item>
      <title>List Database Sequences for Enterprise Geodatabase</title>
      <link>https://community.esri.com/t5/geodatabase-questions/list-database-sequences-for-enterprise-geodatabase/m-p/843989#M4864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like I had this same question back in January of 2020:&amp;nbsp;&amp;nbsp;&lt;A href="https://community.esri.com/thread/245985-listdatabasesequences-for-enterprise-gdb"&gt;https://community.esri.com/thread/245985-listdatabasesequences-for-enterprise-gdb&lt;/A&gt;&amp;nbsp;and didn't get any takers then, but I'll toss it up again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a sequence in an enterprise geodatabase; at least I&lt;EM&gt; think&lt;/EM&gt; I have.&amp;nbsp; The arcpy.da.ListDatabseSequences() function is limited to file geodatabases. See&amp;nbsp;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/data-access/listdatabasesequences.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/data-access/listdatabasesequences.htm"&gt;ListDatabaseSequences—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp; where it states :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; color: #4c4c4c; "&gt;This function is only supported for file geodatabases.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;How do I verify that I have the sequence created as well as monitor where in the sequence values is?&amp;nbsp; Is this functionality expected to be expanded to include egdbs anytime soon? (Or is it ideas time for me?)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&lt;A href="https://community.esri.com/migrated-users/45316"&gt;Kory Kramer&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&lt;A href="https://community.esri.com/migrated-users/52415"&gt;Chris Fox&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2020 15:10:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/list-database-sequences-for-enterprise-geodatabase/m-p/843989#M4864</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-07-28T15:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: List Database Sequences for Enterprise Geodatabase</title>
      <link>https://community.esri.com/t5/geodatabase-questions/list-database-sequences-for-enterprise-geodatabase/m-p/843990#M4865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe.&amp;nbsp; I looked to see and I can't find any existing enhancement request or idea specifically about listing database sequences from enterprise gdbs using Python.&amp;nbsp; You mentioned it in your idea here&amp;nbsp;&lt;A href="https://community.esri.com/ideas/18428" target="_blank"&gt;https://community.esri.com/ideas/18428&lt;/A&gt;&amp;nbsp;, but that idea is different.&amp;nbsp; I can't speak to the underlying reasons that it is only supported for file gdb, but I'd say that if you post an idea that specifically asks for this, at least it gives us something solid to reference rather than chasing different GeoNet threads!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2021 08:49:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/list-database-sequences-for-enterprise-geodatabase/m-p/843990#M4865</guid>
      <dc:creator>KoryKramer</dc:creator>
      <dc:date>2021-06-22T08:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: List Database Sequences for Enterprise Geodatabase</title>
      <link>https://community.esri.com/t5/geodatabase-questions/list-database-sequences-for-enterprise-geodatabase/m-p/843991#M4866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.esri.com/migrated-users/45316"&gt;Kory &lt;/A&gt;&amp;nbsp; &amp;nbsp;Forgot about that idea; so far I'm the only one that voted it up. I guess I can start another one and vote for it as well.&amp;nbsp; My guess is ten points is well below the threshold for consideration....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm kinda stuck now porting the Address Data Management Solution to the enterprise environment.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edited to add: Idea posted.&amp;nbsp; My lonely vote could use some help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2020 18:46:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/list-database-sequences-for-enterprise-geodatabase/m-p/843991#M4866</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-07-28T18:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: List Database Sequences for Enterprise Geodatabase</title>
      <link>https://community.esri.com/t5/geodatabase-questions/list-database-sequences-for-enterprise-geodatabase/m-p/843992#M4867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer to&amp;nbsp;&lt;A href="https://community.esri.com/ideas/18798" target="_blank"&gt;https://community.esri.com/ideas/18798&lt;/A&gt;&amp;nbsp;I've psoted a work around there from ESRI Tech Support.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2021 08:49:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/list-database-sequences-for-enterprise-geodatabase/m-p/843992#M4867</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-06-22T08:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: List Database Sequences for Enterprise Geodatabase</title>
      <link>https://community.esri.com/t5/geodatabase-questions/list-database-sequences-for-enterprise-geodatabase/m-p/1002560#M6859</link>
      <description>&lt;P&gt;Sorry for the potential misunderstanding.&amp;nbsp; Where is the link to the work around?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 15:38:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/list-database-sequences-for-enterprise-geodatabase/m-p/1002560#M6859</guid>
      <dc:creator>IanAlexander</dc:creator>
      <dc:date>2020-11-18T15:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: List Database Sequences for Enterprise Geodatabase</title>
      <link>https://community.esri.com/t5/geodatabase-questions/list-database-sequences-for-enterprise-geodatabase/m-p/1002585#M6860</link>
      <description>&lt;P&gt;You'd have to look for my idea for an arcpy tool.&amp;nbsp; I never got the ESRI tech support work around to work for me, but I was able to look at the various sequences and their states through SQL Server Manager Studio.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 16:49:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/list-database-sequences-for-enterprise-geodatabase/m-p/1002585#M6860</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-11-18T16:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: List Database Sequences for Enterprise Geodatabase</title>
      <link>https://community.esri.com/t5/geodatabase-questions/list-database-sequences-for-enterprise-geodatabase/m-p/1003072#M6864</link>
      <description>&lt;P&gt;Thank you for the advice.&lt;/P&gt;&lt;P&gt;I was able to create a workaround for my purposes.&lt;/P&gt;&lt;P&gt;1. Create database sequence (assume failure means it already exists):&lt;/P&gt;&lt;P&gt;&lt;FONT color="#333399"&gt;try:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#333399"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;arcpy.management.CreateDatabaseSequence(r"C:\Users\test\test.sde", "test", 1, 1)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#333399"&gt;except:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;e = sys.exc_info()[1]&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if "ERROR 002907: Sequence name is already in use by dataset in workspace." in e.args[0]:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;arcpy.AddMessage("Sequence exists")&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pass&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Use Arcade expression to access the sequence&lt;/P&gt;&lt;P&gt;&lt;FONT color="#333399"&gt;exp = "NextSequenceValue('test')"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#333399"&gt;arcpy.CalculateField_management(the_layer, the_id_field, exp, "Arcade")&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 21:54:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/list-database-sequences-for-enterprise-geodatabase/m-p/1003072#M6864</guid>
      <dc:creator>IanAlexander</dc:creator>
      <dc:date>2020-11-19T21:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: List Database Sequences for Enterprise Geodatabase</title>
      <link>https://community.esri.com/t5/geodatabase-questions/list-database-sequences-for-enterprise-geodatabase/m-p/1003076#M6865</link>
      <description>&lt;P&gt;If you want to have the sequence to provide the next value automagically you can write an attribute rule that looks something&amp;nbsp; like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;//Ensure the ID is not already set, if it is, //return the original id
if (IsEmpty($feature.AddressID)) {
   return NextSequenceValue("SiteAddressID")
}
else {
   return $feature.AddressID
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which for me fires upon creation of new address point, reads the sequence named SiteAddressID and updates the field of choice with the next value.&amp;nbsp; The cool thing about sequences is the numbers are unique, and are never repeated.&amp;nbsp; So if you assign a value to a feature and later delete that feature, the value is retired.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 18:49:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/list-database-sequences-for-enterprise-geodatabase/m-p/1003076#M6865</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-11-19T18:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: List Database Sequences for Enterprise Geodatabase</title>
      <link>https://community.esri.com/t5/geodatabase-questions/list-database-sequences-for-enterprise-geodatabase/m-p/1038929#M7061</link>
      <description>&lt;P&gt;If post the idea, please tag me. I will support it. It is somewhat counterproductive why I couldn't use any GP tool to look for existing sequences in an EGDB and use SSMS to do the same.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Mar 2021 04:15:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/list-database-sequences-for-enterprise-geodatabase/m-p/1038929#M7061</guid>
      <dc:creator>Raj-Chavada</dc:creator>
      <dc:date>2021-03-20T04:15:45Z</dc:date>
    </item>
  </channel>
</rss>

