overwrite feature class

726
3
10-11-2017 03:18 PM
NareshAligeti2
New Contributor II

Using arc.write how to overwrite a feature class?

Tags (1)
0 Kudos
3 Replies
ShaunWalbridge
Esri Regular Contributor

Naresh,


To overwrite an existing data source, just pass the location that you'd like to write to during your `arc.write()` call. Provided that the data source isn't locked, it should overwrite the existing data at that location.

Cheers,

Shaun

NareshAligeti2
New Contributor II

Shaun,

I do not have any locks, I tried passing the location. getting this error message

Error in .call_proxy("arc_export2dataset", path, data, coords, shape_info) :
The table already exists.

0 Kudos
ShaunWalbridge
Esri Regular Contributor

Naresh,

Sorry in my delay responding -- I didn't see this pop up as a thread with recent discussion. Are you writing to a local File Geodatabase when you get this error? Do you have a table with the same name as the feature class in the geodatabase?

Thanks,

Shaun

0 Kudos