Select to view content in your preferred language

Get Archive class using arcpy

2038
3
Jump to solution
03-07-2021 11:47 PM
Labels (1)
kirken
by
Occasional Contributor

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
Occasional Contributor

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