I am trying to import CSV data into an existing geodatabase in ArcMap. I want to import to the existing geodatabase fields to ensure my CSV data satisfies whatever rules are set up in the geodatabase.
This is my Python script:
import arcpy
from arcpy import env
env.workspace = "C:/GISJobs/workspace"
arcpy.TableToTable_conversion("Trapping.csv", "C:/GISJobs/workspace/GDB_BLANK.gdb", "Trapping")
But I get this error:
Runtime error Traceback (most recent call last): File "", line 5, in File "c:\program files (x86)\arcgis\desktop10.6\arcpy\arcpy\conversion.py", line 2276, in TableToTable raise e ExecuteError: ERROR 000258: Output C:/GISJobs/workspace/PWIS_GDB_BLANK_181106.gdb\Trapping already exists Failed to execute (TableToTable).
I don't have the geodatabase open anywhere. The script works perfectly to create a new table, but not to write into an existing table. Any ideas?