Get Archive class using arcpy

1509
3
Jump to solution
03-07-2021 11:47 PM
kirken
by
New Contributor III

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..

0 Kudos
1 Solution

Accepted Solutions
DanPatterson
MVP Esteemed Contributor
0 Kudos
3 Replies
DanPatterson
MVP Esteemed Contributor

a link with some hope

Solved: Access archived table via arcpy - Esri Community


... sort of retired...
0 Kudos
kirken
by
New Contributor III

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. 

0 Kudos
DanPatterson
MVP Esteemed Contributor

There is lots of "listing" options

ListDatasets—ArcGIS Pro | Documentation

which you can iterate through


... sort of retired...
0 Kudos