Summary
Enables replica tracking on data, allowing you to work with offline maps. Replica tracking applies to services that are configured with the sync capability with the option of creating a version for each downloaded map.
To disable replica tracking on your data, you can use the Disable Replica Tracking tool.
Usage
The input dataset must be from an enterprise geodatabase and use one of the following registration types:
- Branch versioning
- Nonversioned archiving
This tool must be run as the data owner.
If new feature classes are added to a feature dataset that already has replica tracking enabled, you can run this tool on the feature dataset to enable replica tracking on the new feature classes.
In ArcGIS Pro 2.7, the following utility network system tables are included when you enable replica tracking:
- UN_<ID>_ASSOCIATIONS
- UN_<ID>_RULES
- UN_<ID>_SUBNETWORKS
- ArcGIS Pro 2.6 for branch versioned datasets
- ArcGIS Pro 2.7 for nonversioned archiving datasets
Note:
Once replica tracking has been enabled, the following minimum client versions can access the dataset:
Syntax
arcpy.management.EnableReplicaTracking(in_dataset)
Parameter | Explanation | Data Type |
in_dataset | The enterprise geodatabase table, feature class, feature dataset, attributed relationship class, or many-to-many relationship class on which to enable replica tracking. | Table; Feature Class; Feature Dataset |
Derived Output
Name | Explanation | Data Type |
updated_dataset | The updated input dataset with replica tracking enabled. | Table, Feature Class, Feature Dataset |
Code sample
Enable replica tracking on a feature class.
import arcpy
arcpy.EnableReplicaTracking_management("C:\\MyProject\\mySdeConn.sde\\database.user1.stores")
Environments
Licensing information
- Basic: No
- Standard: Yes
- Advanced: Yes