How To: Add a feature class to a one-way or two-way replica


Currently, there is no out-of-the-box tool to add a feature class to an existing replica. With ArcGIS Desktop, one must either recreate the replica or if the workflow allows, replicate the new feature class as a separate replica.

A feature class or table can only be added to an existing replica (without recreating the replica) using ArcObjects code.


Use the instructions in the following article to add the feature class to the replica by way of ArcObjects code:

How to add a feature class or table to an existing replica

The steps below outline how the recreate the replica using the Register Existing Data option in Desktop. These steps can be applied to both one-way and two-way replicas.

  1. Synchronize the changes between parent and child replica geodatabases using the existing replica so that the data is identical in each database, then Unregister the replica in both geodatabases. For two-way replicas, ensure that changes are synchronized in both directions and there are no outstanding edits before unregistering the replica.
  2. Create/import the new feature class into the parent geodatabase, and add the GlobalID.
  3. Register the newly added data as versioned.
  4. Copy and paste the new feature class to the child geodatabase using ArcCatalog.
    that the GlobalIDs must have already been added to the feature class.

  5. For two-way replica or one-way full model, register the newly added data in child geodatabase as versioned.
  6. Using the parent geodatabase, add all the data that is to be replicated to a map in ArcMap.
  7. Click the 'Create Replica' tool on the Distributed Geodatabase toolbar.
  8. Select 'One way replica' or 'Two way replica' and click Next.
  9. Select 'Register existing data only'.
  10. Select the child geodatabase and specify a replica name.
  11. Click Next and click Finish.
    A new replica is created that includes the new data.