Label | Explanation | Data Type |
Export from Replica Geodatabase | Specifies the replica geodatabase from which to export the acknowledgement message. The geodatabase may be local or remote. | Workspace ; GeoDataServer |
Output Acknowledgement File | Specifies the delta file to export to. | File |
Replica | The replica from which the acknowledgement message will be exported. | String |
Summary
Creates an output acknowledgement file to acknowledge the reception of previously received data change messages.
Usage
Use this tool when synchronizing a replica while disconnected. First run the Export Data Change Message tool, which creates a delta file with changes to synchronize. Then copy and import the delta file to the relative replica using the Import Message tool. If the delta file gets lost and you want to resend, use the Re-Export Unacknowledged Messages tool to regenerate the delta file. After the changes are imported, you can export an acknowledgment file from the relative replica using the Export Acknowledgement Message tool. Copy and import the acknowledgment file using the Import Message tool. If the acknowledgment is not received, the next time changes are sent, they will include the new changes and the previously sent changes.
The geodatabase can be a local geodatabase or a geodata service.
The output acknowledgement file must be XML.
This tool is not applicable for check-out replicas.
To synchronize replicas in a connected mode, see the Synchronize Changes tool.
Parameters
arcpy.management.ExportAcknowledgementMessage(in_geodatabase, out_acknowledgement_file, in_replica)
Name | Explanation | Data Type |
in_geodatabase | Specifies the replica geodatabase from which to export the acknowledgement message. The geodatabase may be local or remote. | Workspace ; GeoDataServer |
out_acknowledgement_file | Specifies the delta file to export to. | File |
in_replica | The replica from which the acknowledgement message will be exported. | String |
Code sample
import arcpy
from arcpy import env
env.workspace = "C:/Data"
arcpy.ExportAcknowledgementMessage_management("MySDEdata.sde", "AcknowledgementMessage.xml" , "MyReplica1")
# Name: ExportAcknowledgement_Example2.py
# Description: Exports an acknowledgement message from a replica geodatabase (SDE).
# Author: ESRI
# Import system modules
import arcpy
from arcpy import env
# Set workspace
env.workspace = "C:/Data"
# Set local variables
in_geodatabase = "MySDEdata.sde"
output_file = "AcknowledgementMessage.xml"
replica_name = "MyReplica1"
arcpy.ExportAcknowledgementMessage_management(in_geodatabase, output_file , replica_name)