Overview
When you replicate the metadata structure from one vault to another does not necessarily lead to both vaults having the same IDs for all of the metadata structure elements. This will break any configurations (scripts, metadata card configurations, etc.) that refer to the metadata structure elements using IDs.
This article explains why this happens and what you can do about it.
Details
Each vault has its own, independent ID space for each metadata element type and object type. When you import elements or objects from another vault, the imported elements and objects are given the first available ID from the target ID space in the target vault.
For example, if you create a new, empty vault and import some value lists into the empty vault, the first value list that is imported gets ID 101, regardless of what its ID was in the source vault when the export package was made.
Another example is that some elements may have already been manually created in the target vault, using up some IDs. When elements with the same IDs are imported to the vault, the source vault's IDs cannot be assigned to the imported elements, as they are already reserved for other elements in the target vault.
Any of the ID spaces may contain "holes" or jumps in the running numbers for various reasons. For example, an existing element may be deleted and their ID will not get re-used. This will leave the deleted element's ID unused in that vault. As an example:
- Let's say we have a source vault that has IDs 101,102, and 104 for value lists (with ID 103 belonging to a deleted value list).
- The three value lists are replicated to an empty vault.
- In the target vault, the value lists will get IDs 101, 102, and 103 (as opposed to 104).
- The IDs will continue to run with at least this one number discrepancy from there onwards in subsequent replications, as new value lists are added to the setup.
Solution
To account for this behavior, use aliases when referring to any metadata elements in environments where replication is used.
For more details regarding replication, refer to Replication and Archiving - User's Guide.
