I'm trying to copy some feature layers from an SQL server to a file geodatabase on my C drive. The problem I'm running into is when there are some of the feature layers within a dataset on the server and I try to copy the file(s) to a dataset folder on the file geodatabase. I does working work when there are no dataset folders.
It seems like the "arcpy.management.CopyFeatures()" function doesn't like working with datasets. I keep getting the following error message:
ERROR 000354: The name contains invalid characters
Failed to execute (CopyFeatures).
Is there a different function for datasets?
Thanks,