Re-Export Unacknowledged Messages (Data Management)

License Level:BasicStandardAdvanced

Summary

Creates an output delta file containing unacknowledged replica updates from a one-way or two-way replica geodatabase.

Usage

Syntax

ReExportUnacknowledgedMessages_management (in_geodatabase, output_delta_file, in_replica, in_export_option)
ParameterExplanationData Type
in_geodatabase

Specifies the replica geodatabase from which to reexport the unacknowledged messages. The geodatabase may be a local geodatabase or a geodata service.

Workspace; GeoDataServer
output_delta_file

Specifies the delta file in which to reexport data changes.

File
in_replica

The replica from which the unacknowledgment messages will be reexported.

String
in_export_option
  • ALL_UNACKNOWLEDGEDReexports all changes for which there has been no acknowledgment message received.
  • MOST_RECENTReexports only those changes since the last set of exported changes was sent.
String

Code Sample

ReExportUnacknowledgedMessages example 1 (Python window)

The following Python window example demonstrates how to use the ReExportUnacknowledgedMessages function in the Python window.

import arcpy
from arcpy import env
env.workspace = "C:/Data"
arcpy.ReExportUnacknowledgedMessages_management("MySDEdata.sde", "dataChanges2.gdb", "MyReplica1", "ALL_UNACKNOWLEDGED")
ReExportUnacknowledgedMessages example 2 (stand-alone Python script)

The following script demonstrates how to use the ReExportUnacknowledgedMessages function in a stand-alone Python script.

# Name: ReExportUnacknowledgedMessages_Example2.py
# Description: ReExports all unacknowledged messages from an SDE replica workspace.
# Changes are exported to a delta personal geodatabase


# Import system modules
import arcpy
from arcpy import env

# Set workspace
env.workspace = "C:/Data"

# Set local variables
replica_gdb = "MySDEdata.sde"
output_file = "dataChanges2.mdb"
replica_name = "MyReplica1"
export_option = "ALL_UNACKNOWLEDGED"

# Execute ReExportUnacknowledgedMessages
arcpy.ReExportUnacknowledgedMessages_management(replica_gdb, output_file, replica_name, export_option)

Environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
11/18/2013