I am looking for a script example of running a nightly two-way replication synchronization.
Thank you very much. We are trying to start out simple.
# 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
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.