Select to view content in your preferred language

overwrite feature class

915
3
10-11-2017 03:18 PM
NareshAligeti2
Emerging Contributor

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
Emerging Contributor

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