Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am synchronizing a one-way replica in ArcEditor using Python. I tried adding RefreshActiveView and RefreshCatalog to the code, but I still need to refresh the synchronized database to see the results. Here is a code snippet:

Connection_to_geoDBReplicationTest = "C:\Connection to geoDBReplicationTest.sde"

Connection_to_geoDBRepTest_2 = "C:\Connection to geoDBRepTest_2.sde"

 "GISUSER.timedTestReplica2", Connection_to_geoDBRepTest_2, "FROM_GEODATABASE1_TO_2",



Any thoughts? the code does work, but I would prefer the user did not need to refresh the database in ArcCatalog each time...

share|improve this question
Is the child connected to the Default version on geoDBRepTest? – blord-castillo Jun 10 '12 at 17:41

Not sure if it will help in your case, but you might want to add a garbage collect prior to running both refreshes. This has worked for me in the past where an empty results database wouldn't allow itself to be deleted by a script.

import arcpy, gc

synchronize changes

refresh catalog
refresh active view
share|improve this answer
Thanks, I will try that. – Jason Jun 11 '12 at 20:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.