[GIS] Resetting ObjectID after running Delete_Features on ArcSDE feature table

arcgis-10.1arcpyenterprise-geodatabasefeature-class

I have a python script that deletes all features on an ArcSDE feature table and then inserts new features to it.

I noted that the ObjectID keeps incrementing from where the last feature was with before deleted.

Just wondering if there is any reset function or tool to make ObjectID start with 1 every time the script runs?

Best Answer

If your ArcSDE is versioned, then I suspect your deletions are still being kept track of so the ObjectID would remain required.

If not versioned, or if versioning can be removed as part of your script, then perhaps consider using Truncate Table to get a performance gain on your deletions.

I suspect that this would reset your ObjectID counter.

Related Question