ArcPy - Move feature class into feature dataset?

2228
2
Jump to solution
02-09-2018 07:00 AM
Highlighted
New Contributor II

How do I move a feature class into a feature dataset using ArcPy?

I've tried both arcpy.CopyFeatures_management() and arcpy.Copy_management, which both give me these errors:

ExecuteError: ERROR 000725: Output Feature Class: Dataset G:\GIS Data\xxxxxx\..._20180209 already exists.  ‍‍

In this case, an empty feature dataset is created to store these feature classes. I just want to be able to move them into the datasets.

I also just tried arcpy.FeatureClassToFeatureClass_conversion() with no success:

ExecuteError: ERROR 999999: Error executing function. Failed to execute (FeatureClassToFeatureClass). 
Reply
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Regular Contributor
2 Replies
Highlighted
Regular Contributor
Highlighted
New Contributor II

Thank you, that was it