<?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 Batch creating Database Sequences Using Python in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/batch-creating-database-sequences-using-python/m-p/1386990#M8940</link>
    <description>&lt;P&gt;Greetings,&amp;nbsp; I'm new to the automation side of things in GIS.&amp;nbsp; I'm trying to use python to automate the creation of Database Sequences in an EGDB.&amp;nbsp; I get the following error:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;ExecuteError&lt;/SPAN&gt;: ERROR 001056: The input is not a valid Geodatabase.&lt;/PRE&gt;&lt;P&gt;However, the database connection file is valid.&amp;nbsp; My code is below.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
import csv

arcpy.env.workspace = r"C:/Users/gcromley/Documents/ArcGIS/Projects/EnterpriseGIS/Development.sde"

csv_file = r"C:\Users\gcromley\Desktop\Book1.csv"

sequence_names = []

with open(csv_file, 'r') as file:
    reader = csv.reader(file)
    for row in reader:
        sequence_names.extend(row)
        
for seq_name in sequence_names:
    
    arcpy.management.CreateDatabaseSequence(r"C:/Users/gcromley/Documents/ArcGIS/Projects/EnterpriseGIS/Development.sde", seq_name,1,1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Feb 2024 19:54:25 GMT</pubDate>
    <dc:creator>gcromley</dc:creator>
    <dc:date>2024-02-26T19:54:25Z</dc:date>
    <item>
      <title>Batch creating Database Sequences Using Python</title>
      <link>https://community.esri.com/t5/geodatabase-questions/batch-creating-database-sequences-using-python/m-p/1386990#M8940</link>
      <description>&lt;P&gt;Greetings,&amp;nbsp; I'm new to the automation side of things in GIS.&amp;nbsp; I'm trying to use python to automate the creation of Database Sequences in an EGDB.&amp;nbsp; I get the following error:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;ExecuteError&lt;/SPAN&gt;: ERROR 001056: The input is not a valid Geodatabase.&lt;/PRE&gt;&lt;P&gt;However, the database connection file is valid.&amp;nbsp; My code is below.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
import csv

arcpy.env.workspace = r"C:/Users/gcromley/Documents/ArcGIS/Projects/EnterpriseGIS/Development.sde"

csv_file = r"C:\Users\gcromley\Desktop\Book1.csv"

sequence_names = []

with open(csv_file, 'r') as file:
    reader = csv.reader(file)
    for row in reader:
        sequence_names.extend(row)
        
for seq_name in sequence_names:
    
    arcpy.management.CreateDatabaseSequence(r"C:/Users/gcromley/Documents/ArcGIS/Projects/EnterpriseGIS/Development.sde", seq_name,1,1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 19:54:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/batch-creating-database-sequences-using-python/m-p/1386990#M8940</guid>
      <dc:creator>gcromley</dc:creator>
      <dc:date>2024-02-26T19:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Batch creating Database Sequences Using Python</title>
      <link>https://community.esri.com/t5/geodatabase-questions/batch-creating-database-sequences-using-python/m-p/1387011#M8941</link>
      <description>&lt;P&gt;Are you trying to create the next sequence value when you create a feature?&lt;/P&gt;&lt;P&gt;Have you tried this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/attribute-rules-videos/generating-unique-ids-with-attribute-rules/m-p/976527" target="_blank"&gt;https://community.esri.com/t5/attribute-rules-videos/generating-unique-ids-with-attribute-rules/m-p/976527&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 20:25:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/batch-creating-database-sequences-using-python/m-p/1387011#M8941</guid>
      <dc:creator>elpsottile</dc:creator>
      <dc:date>2024-02-26T20:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Batch creating Database Sequences Using Python</title>
      <link>https://community.esri.com/t5/geodatabase-questions/batch-creating-database-sequences-using-python/m-p/1387275#M8942</link>
      <description>&lt;P&gt;Based on Esri Documentation&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/3.1/tool-reference/tool-errors-and-warnings/001001-010000/tool-errors-and-warnings-01051-01075-001056.htm" target="_blank"&gt;001056: The input is not a valid Geodatabase.—ArcGIS Pro | Documentation&lt;/A&gt;, you need to upgrade the database. However, could you recheck the geodatabase connection properties that you have already checklist the checkbox of saving username-password.&lt;/P&gt;&lt;P&gt;Hope it helps you,&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 09:32:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/batch-creating-database-sequences-using-python/m-p/1387275#M8942</guid>
      <dc:creator>AlexanderDanielPratama</dc:creator>
      <dc:date>2024-02-27T09:32:07Z</dc:date>
    </item>
  </channel>
</rss>

