I'm trying to export data from an SDE database to FGDB using arcpy, however the feature datasets and featureclasses have dots in the names such as 'CorporateGIS.AMFP.GeotechDraCRB2013_14' which is giving errors when I try to use them for the new feature data sets:
ERROR 999999: Error executing function. The table name is invalid
I need to be able to restore the data back to SDE so would like to use the names as is if possible - rather than replacing with something like underscores.
Here's a sample of what I'm doing in code
import arcpy, os, sys
arcpy.env.workspace = "D:\Conns\CorporateGIS.sde"
outFolderPath = r"H:\GIS_Export"
outName = "CorporateGIS_cpy.gdb"
GDB_path = os.path.join(outFolderPath, outName)
datasetList = arcpy.ListDatasets("*", "Feature")
for fd in datasetList:
arcpy.CreateFeatureDataset_management(GDB_path, fd)
How do I keep the names as ther are with the dots?