AnsweredAssumed Answered

ArcPy -Replica - How to get the list of feature classes from replica name

Question asked by anjithas on Jan 7, 2016
Latest reply on Jan 7, 2016 by jskinner-esristaff

I am trying to buld a replica log and trying to get the list of feature classes in a replica

 

can get the list of replica but I can't access it's properties and see the list of feature classes

 

Here is the code I am trying to execute

 

import arcpy

import os,sys

 

sdeConnection = r"Database Connections/abc@GISEDIT.sde"

 

# Print the name of the replicas

  

file1=open('C:\\TEMP\\log.txt', 'w+')

 

 

for replica in arcpy.da.ListReplicas(sdeConnection):

    file1.write(replica.name+"\n")

   

   

   

I can get the list of replicas but can't get the properties> feature classes in those replicas . Any help ?

 

Outcomes