Take the 2-minute tour ×

I'm trying to create a table in a feature dataset and get the error: Parameters are not valid. The code works when I write only to the gdb. Am I not allowed to write to a feature dataset or am I doing something wrong?

import arcpy
import datetime

now = datetime.date.today()
exoticPlant = "Kudzu"
outPath = r"V:\chat_gis\gis_projects\Vegetation_Managment\Data\Derived_Data\Derived_Data.gdb\Report_01_14_2013"
exoticReportTemplate = "\MASTER_Data\VegetationManagment_Chatt.gdb\Exotic_Report_Template"
exoticReportName = exoticPlant + "_UnitCoverage_5years_" + now.strftime("%m%d%Y")

arcpy.CreateTable_management(outPath, exoticReportName, exoticReportTemplate)
share|improve this question
add comment

2 Answers

up vote 7 down vote accepted

In geodatabases, tables cannot be stored in a feature dataset. They can only be stored at the geodatabase level. Feature datasets are limited to feature classes and other advanced dataset types like topology, etc.

Check out the ArcGIS help regarding Feature Datasets: http://resources.arcgis.com/en/help/main/10.1/index.html#//002300000001000000

share|improve this answer
add comment

I've had a lot of trouble getting arcpy to save tables due to character restrictions I can never seem to get my head around.

The validateTableName function has been very useful. Give it a look and try adding it into the code to verify that your table names are valid, that has helped me in the past.

share|improve this answer
add comment

Your Answer


