Export Data Change Message (Data Management)

License Level:BasicStandardAdvanced

Summary

Creates an output delta file containing updates from an input replica.

Usage

Syntax

ExportDataChangeMessage_management (in_geodatabase, out_data_changes_file, in_replica, switch_to_receiver, include_unacknowledged_changes, include_new_changes)
ParameterExplanationData Type
in_geodatabase

Specifies the replica geodatabase from which to export the data change message. The geodatabase may be local or remote.

Workspace ;GeoDataServer
out_data_changes_file

Specifies the delta file to export to.

File
in_replica

The replica containing updates to be exported.

String
switch_to_receiver

Indicates whether to change the role of the replica to that of a receiver. The receiver may not send replica updates until updates from the relative replica sender arrive.

  • DO_NOT_SWITCHDo not switch replica role. This is the default.
  • SWITCHSwitch replica role from sender to receiver.
Boolean
include_unacknowledged_changes

Indicates whether to include data changes that have been previously exported for which no acknowledgment message has been received.

  • NO_UNACKNOWLEDGEDDo not include data changes that have been previously sent.
  • UNACKNOWLEDGEDInclude all of the data changes that have been previously exported for which no acknowledgment message has been sent. This is the default.
Boolean
include_new_changes

Indicates whether to include all data changes created since the last exported data change message.

  • NO_NEW_CHANGESDo not include data changes created since the last exported data change message.
  • NEW_CHANGESInclude data changes created since the last exported data change message. This is the default.
Boolean

Code Sample

ExportDataChangeMessage example 1 (Python window)

The following Python window script demonstrates how to use the ExportDataChangeMessage function in the Python window.

import arcpy
from arcpy import env
env.workspace = "C:/Data"
arcpy.ExportDataChangeMessage_management("MySDEdata.sde", "Changes.gdb", "MyReplica1", "SWITCH", "TRUE", "TRUE")
ExportDataChangeMessage example 2 (stand-alone Python script)

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

# Name: ExportDataChangesMessage_Example2.py
# Description: Exports a data change message to a delta file geodatabase (.gdb)


# Import system modules
import arcpy
from arcpy import env

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

# Set local variables
in_geodatabase = "MySDEdata.sde"
out_dataChanges = "Changes.gdb"
replica_name = "MyReplica1"
switch_directions = "SWITCH"
acknowledge = "TRUE"
new_changes = "TRUE"

# Execute ExportDataChangeMessage
arcpy.ExportDataChangeMessage_management(in_geodatabase, out_dataChanges, replica_name, switch_directions, acknowledge, new_changes)

Environments

Related Topics

Licensing Information

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