I want to copy a table from SDE to a local file gdb.
Assuming
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\management.py", 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.