AnsweredAssumed Answered

copy feature dataset to feature dataset

Question asked by jared_pilbeam on Dec 9, 2016
Latest reply on Dec 12, 2016 by asrujit_pb

Every script I've tried isn't able to copy the feature dataset in the top image to the bottom feature dataset (in an SDE).


It's probably something simple, but is there a known function for this? I can't change anything in the SDE as I don't have administrative rights to it. 


I've tried Copy_management. But, here the in_data and out_data variables must have the same file extension to work properly.


I've also tried CopyFeatures_management. Here's the syntax and error message for that:

# Import modules
import os
import arcpy

# set workspace
env.workspace = r"T:\Departments\E911\Transfer Files\E911WeeklyUpdate\E911WeeklyUpdate.gdb"

#create a list of feature classes in the current workspace
fclist = arcpy.ListFeatureClasses()

#copy each feature class to a fgdb
for fc in fclist:
    fcdesc = arcpy.Describe(fc)
    arcpy.CopyFeatures_management(fc, os.path.join("Database Connections\
    Jared to plainfield.sde\gisedit.DBO.MGU_Will", fcdesc.basename))