I am looking for a script example of running a nightly two-way replication synchronization.
# Import arcpy module import arcpy # Local variables: parent_gdb = "Database Connections\\Parent.sde" child_gdb = "Database Connections\\Child.sde" # Process: Synchronize Changes arcpy.SynchronizeChanges_management(parent_gdb, "DBO.rep_name", child_gdb, "BOTH_DIRECTIONS", "IN_FAVOR_OF_GDB1", "BY_OBJECT", "DO_NOT_RECONCILE")
This is a very basic sample. In case you are not sure, you can use the Model Builder to populate the tool and the parameters, and then export that as a Python script.
Managing Data Geodatabase Enterprise GIS python snippets
Thank you very much. We are trying to start out simple.
Los miembros que hayan iniciado sesión pueden publicar, seguir las novedades y mucho más. ¿Eres nuevo? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.