AnsweredAssumed Answered

Did arcpy.Copy_management change from 10.4 to 10.7?

Question asked by Daryl.Hochhalter on Nov 14, 2019

Running the following gives 2 different results if run from server Standard 10.7 machine or Desktop Advanced 10.4 machine.

Where CODGEO_Datasets and Offline_Datasets are lists of full path strings.

Where some feature class in the dataset has attachments

 

# Process: Copy CODGEO Datasets
for i, val in enumerate(CODGEO_Datasets):

   arcpy.Copy_management(CODGEO_Datasets[i], Offline_Datasets[i], "Feature Dataset")

 

Run from Desktop 10.4 I get this inside my Offline FGDB

Offline_Dataset (containing all the feature classes)

some_feature_class_ATTACH

some_feature_class_ATTACHREL

 

Run from Server 10.7 I get this inside my Offline FGDB

Offline_Dataset (containing all the feature classes)

Offline_Dataset_ATTACH

Offline_Dataset_ATTACHREL

 

So instead of the attachment table & relationship class having the name of the feature class that has attachments as when run from Desktop 10.4 machine, when the same script is run on the Server 10.7 machine, the attachment table and relationship class have the name of the Dataset.

 

So is this expected behavior? Do we now enable attachments on datasets not the feature class inside the dataset?

Outcomes