This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Moving documents to another vault but IDs of the object value lists are different?

We need to move all documents from one vault to another. We have several objects where the IDs are not the same.

For example, say we have a Vendor named Ace Concrete. The Ace Concrete ID in Vault A is 10, but in Vault B it is 20 (while the ID of 10 belongs to FedEx). After moving the documents from Vault A to Vault B, all documents that use Vendor as metadata that had Ace Concrete as the Vendor will show FedEx as the Vendor.

How can I move documents from vault to vault despite the ID values in the value lists do not match? We do not want to move documents from one vault to the other if after moving the documents, the metadata won't make sense.

  • It is not possible to ensure that documents or other elements get the same ID in both vaults. IDs are generally handed out by the system on a first come first serve basis. A particular ID can therefor be taken before you transfer your document. New objects will simply get the next ID available within that object type no matter whether they get created inside the vault or transferred from another vault.

    If you use replication to move the documents and other objects you should be OK even when they get new IDs in the new vault. But it is important that the structural elements (object types, classes, properties, value lists, workflows etc.) are in sync before you move objects like documents. For that purpose you need to use the exact same Aliases on all structure elements in both vaults.

  • To add to this, M-Files makes use of multiple IDs behind the scenes:

    https://www.m-files.com/user-guide/latest/eng/faq_why_are_there_objects_with_the_same_id_in_the_vault.html

    When importing or replicating objects between vaults the object will likely end up with multiple IDs at once of which M-Files will just display a single ID. They do not have to match between vaults.