Greetings, I'm new to the automation side of things in GIS. I'm trying to use python to automate the creation of Database Sequences in an EGDB. I get the following error:
ExecuteError: ERROR 001056: The input is not a valid Geodatabase.
However, the database connection file is valid. My code is below.
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)