AnsweredAssumed Answered

arcpy.Copy_management is throwing a runtime error

Question asked by may.kao on Jul 3, 2019
Latest reply on Jul 7, 2019 by LanceCole

I want to copy a table from SDE to a local file gdb.


  SDEworkspace is the full path to the SDE database

  outGDB is the full path to the local file gdb


Here is the code:

   arcpy.env.workspace = SEDworkspace

   tableName = "MasterStreetName"

   outTableName = "{}\{}".format(outGDB, tableName)

   arcpy.Copy_management(tableName, outTableName)


Runtime error  Traceback (most recent call last):   File "<string>", line 1, in <module>   File "c:\program files (x86)\arcgis\desktop10.6\arcpy\arcpy\", line 4314, in Copy     raise e ExecuteError: ERROR 000840: The value is not a Data Element. 



This script used to work and other features are copied correctly, just seem to have problem with tables.