Dear friends,
I am having a requirement that I need to find out deleted features from UN feature class in last 24 hours using Python script. For example, I am using Electric UN data and trying to find deleted records from ElectricDevice feature class in last 24 hours.
Either by using SDE connection or published UN Feature service URL. Anything is fine.
I am using ArcGIS Enterprise 11.5 , ArcGIS Pro 3.5.5, Database - SQL Server
My datasets, feature classes and sde are branch versioned and archiving is enabled.
I am able to find out the deleted records from SQL server management studio by using following query. But could not implement the same using Python. I need a python script.
select * from electric.ELECTRICDEVICE where GDB_DELETED_AT >= '2026-05-12 05:43:04.881248' AND GDB_DELETED_AT < '2026-05-13 05:43:04.881248'
Please provide any python script for achiving this. Thanks in advance.
Thanks,
Ashok