Select to view content in your preferred language

Copy feature classes preserving the globalid?

3729
3
01-15-2014 07:56 AM
AlanHamilton1
Occasional Contributor
Hi,

I was using the python and Arc 10.1 with

CreateDatabaseConnection_management and arcpy.FeatureClassToFeatureClass_conversion to make a gdb copy of our SDE schema, copying out specific feature classes to the file geodatabase...

I was happy with everything until late in the game, I noticed the globalid's didnt match up.

Is there any way to go about this with python, copying a feature class out so that the globalids are preserved? It seems like something obvious.. I've tried a few different ways, but not much joy.

Thanks!

Alto
Tags (2)
3 Replies
TimWitt
Deactivated User
Did you try the Copy tool?
0 Kudos
AlanHamilton1
Occasional Contributor
I had tried the copy tool .. and the copy_features tool and the featureclasstofeatureclass tools

With the Copy .. I get a
"The operation is not supported by this implementation" ERROR 000260 when trying to copy from a feature class from a dataset in an SDE schema to a feature class in dataset in a GDB (either when the feature classes exsists in the destination prior to the copy or not) .. the dataset in the file geodatabase was created using the SDE one as a reference by the way using CreateFeatureDataset_management
0 Kudos
AlanHamilton1
Occasional Contributor
The Copy_management function is being extremely inconsistent ..

I wasn't able to copy the feature I was initially trying above .. ( there is nothing unusual about it .. it had a point shape, was in a dataset) .. however, I was able to copy a similar featureclass ..

'm using CreateFileGDB_management to create a file geodatabase, then CreateFeatureDataset_management to create datasets (using the source dataset as a spatial reference) then using Copy_management to copy the features over preserving the GlobalIDs

So far, this is working for ... 12/22 feature classes .. 10 fail
The 10 that fail are all in the same source Dataset .. and fail to copy to the destination dataset (using the same process as the ones that succeed...)
The 12 that succeed: 8 are in 2 different datasets and 4 of the feature classes in no dataset (root)

Source is 10.1 SDE, destination is 9.3 gbd
0 Kudos