Select to view content in your preferred language

Import XML Replica "Register existing data"

38
2
yesterday
SimonSchütte_ct
MVP Regular Contributor

How to import the Replica XML with "Register existing data"?
With Import XML schema I get a "Invalid data" error.
The two databases are set up identically and sync without Register existing data works.

0 Kudos
2 Replies
Robert_LeClair
Esri Esteemed Contributor

“Register existing data” is not done by importing the replica XML. It’s a Create Replica option.

Try these steps:

1.  Pre-stage the data on the child (your target geodatabase) using a copy/paste or similiar workflow GP tool. Key requirement: the datasets on the child must already exist and match the parent (same names and schema/properties). Pro doc also notes GlobalIDs must exist before copying.

2.  In ArcGIS Pro, run Create Replica (Distributed Geodatabase toolset) and check Register existing data only. You must be connected to the child geodatabase as the data owner, and the child must contain the replica datasets.

About your “Invalid data” when using Import XML schema:  The XML created/used for replica/disconnected workflows must be an ArcGIS-generated XML workspace document (created by Create Replica with Output Type = Xml file) and is imported with the replica/disconnected workflow (“Import data and schema”)

I'd recommend reading the Help documentation Create a replica in a disconnected environment | ArcGIS Pro documentation to fully understand the process.

0 Kudos
SimonSchütte_ct
MVP Regular Contributor

Thank you. Yes, that were the steps I did take. However my workflow was just starting all tools from the context menu instead directly from the toolbox search, that was my mistake.

For some reason there is a difference between using the "Import XML Workspace Document" toolbox (it works fine) and starting the process by right clicking on the "sde -> import -> XML Workspace Document" which starts the "Import XML Workspace Document Wizard" instead of the "Import XML Workspace Document" toolbox.

SimonSchtte_ct_0-1783061472350.png

 

SimonSchtte_ct_3-1783061648929.png

The Wizard fails to import XML files that have the option "register data only" selected, but passes with xml replica files where this option is not used.
This is confusing as selecting any other tool via "sde -> export/import" does start a toolbox and not a wizard.

What is the idea behind having "Import XML Workspace Document Wizard" and not just starting up the "Import XML Workspace Document" toolbox? I see that there is some field matching preview, but this can also be implemented in a toolbox.

0 Kudos