jacobne

How to edit a feature class used in a Feature Service via Python?

Discussion created by jacobne on Aug 23, 2013
Latest reply on Nov 5, 2013 by pfoppe
Hello,

I'm experimenting around a bit with ArcGIS for Server and I have a feature class that I'd like to edit with a python script.  The catch is that this feature class is the basis for a Feature Service I have published.  Does anyone know what the best approach is for editing these features via arcpy?  I initially thought I could simpy overwrite the feature class, but I fear server will place a lock on it.  Is it possible to delete or add new features through a POST operation, or do I have the wrong idea?

I essentially have a feature class of polygons used in a feature service and I want to execute a python script every couple of minutes with Windows Task Scheduler that updates it.

Any advice is definitely welcome!

- Nick

Outcomes