Hi! I need to copy some datasets, feature classes and tables from SDE to GDB including archive tables and classes if they exist. I would like to use arcpy scripting for that but I haven't found the way how to get archive data in python. I know that I can check if feature class is archived like that:
describe = arcpy.Describe(featureClass)
isArch = describe.IsArchived
if isArch:
do something..
but how can I get the archive class itself???
In desktop it is possible to load and view this archive class, so I suppose it is possible somehow with arcpy as well..
Solved! Go to Solution.
a link with some hope
Solved: Access archived table via arcpy - Esri Community
a link with some hope
Solved: Access archived table via arcpy - Esri Community
yep, I found this as well and it kinda works for tables and feature classes but I have to figure out how to copy archive data from featureDatasets as well. Probably need to iterate through them somehow.
There is lots of "listing" options
ListDatasets—ArcGIS Pro | Documentation
which you can iterate through