Select to view content in your preferred language

arcpy.management.Copy to In Memory Error

90
2
Tuesday
Bryan_bsc
New Contributor

Does anyone know if  arcpy.management.Copy is meant to be the same as arcpy.CopyFeatures_management? It appears to be the same unless I use it to copy features to memory in which case it gives the following error. 

ERROR 000979: Cannot copy between different workspaces.

Example code is below:

fc = r"gisdata.sde\GIS.GISDATA.assets\GIS.GISDATA.plots"

arcpy.CopyFeatures_management( fc, r"memory/in_memory_temp_file") # This works with no errors

arcpy.management.Copy( fc, r"memory/in_memory_temp_file") # This gives the error above

Any help would be appreciated.

Thank-you!

0 Kudos
2 Replies
DanPatterson
MVP Esteemed Contributor

interesting, sounds like a variant of...

BUG-000167752 for ArcGIS Pro (esri.com)


... sort of retired...
MobiusSnake
MVP Regular Contributor

I believe the Copy tool is the geoprocessing version of a catalog copy/paste operation, and copy/paste doesn't support going from a geodatabase workspace to a non-geodatabase workspace.

0 Kudos