Skip to main content
2 of 3
edited tags
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

Trying to copy features from an in_memory table to feature table

i just want to write the in_memory table to a table in a .gdb

import arcpy
from arcpy import env
import os
import sys
scriptPath = sys.path[0]
thisFolder = os.path.normpath(os.path.dirname(scriptPath))
env.workspace = os.path.join(thisFolder, "AdminReport", "Workspace")

#Create Table
outTable = arcpy.CreateTable_management("in_memory", "outTable")
arcpy.AddField_management(outTable, "Parcel_FID", "SHORT")
arcpy.AddField_management(outTable, "Plan_Acres", "DOUBLE")
arcpy.AddField_management(outTable, "Pres_Acres", "DOUBLE")
arcpy.AddField_management(outTable, "Conf_Region", "TEXT", field_length=25)
arcpy.AddField_management(outTable, "Conf_Date", "TEXT", field_length=25)
arcpy.AddField_management(outTable, "Center_Zone", "TEXT", field_length=25)
arcpy.AddField_management(outTable, "Center_Muni", "TEXT", field_length=25)
arcpy.CopyFeatures_management(outTable, "outTable")

getting this error:

arcpy.CopyFeatures_management(outTable, "outTable") ERROR 000732: Input Features: Dataset in_memory\outTable does not exist or is not supported

its30
  • 567
  • 4
  • 24