Select to view content in your preferred language

ArcPy - Move feature class into feature dataset?

7574
2
Jump to solution
02-09-2018 07:00 AM
MarcusSanders2
Occasional Contributor

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). 
0 Kudos
1 Solution

Accepted Solutions
Lake_Worth_BeachAdmin
Frequent Contributor
2 Replies
Lake_Worth_BeachAdmin
Frequent Contributor

use the feature class to geodatabase function

Feature Class To Geodatabase—Conversion toolbox | ArcGIS Desktop 

MarcusSanders2
Occasional Contributor

Thank you, that was it