Overview
When performing a connection to an external database or a replication to another vault, you may run into the following error or similar.
MPropertyPage2.cpp, 102, External object types cannot contain objects that refer to another vault. (0x800408CC) MPropertySheet2.cpp, 143, External object types cannot contain objects that refer to another vault. (0x800408CC) PropertySheetObjectType.cpp, 249, External object types cannot contain objects that refer to another vault. (0x800408CC) Item_ObjectType.cpp, 766, External object types cannot contain objects that refer to another vault. (0x800408CC) RPCObjectTypesAdminHelper.cpp, 54, External object types cannot contain objects that refer to another vault. (0x800408CC) RPCMethodCallWithRetry.h, 149, External object types cannot contain objects that refer to another vault. (0x800408CC) RPCMethodCallWithRetry.h, 149, External object types cannot contain objects that refer to another vault. (0x800408CC) RPCObjectTypesAdmin.cpp, 2071, External object types cannot contain objects that refer to another vault. (0x800408CC) RPCObjectTypesAdmin.cpp, 725, External object types cannot contain objects that refer to another vault. (0x800408CC) RPCObjectTypesHelper.cpp, 9979, External object types cannot contain objects that refer to another vault. (0x800408CC) (M-Files <version> <timestamp>)
Solution
The error is generated because one, or both, of the vaults have what are called stub objects in the vault and an external database (SQL) is being used. If External Objects (objects coming from an external DB) are being used, they cannot point to another vault. The stub objects and external databases don't work well together. Normally, two or more vaults should be able to use an external connection pointing to the same space.
Stub objects can be found by searching the vault through Advanced Search -> Additional Conditions -> Object Flags = Shortcuts.
The resolution to this issue can be one of several options so please consider all options before moving forward.
- The stub objects could be imported to the vault with stub objects to turn them into full objects.
- Remove all the stub objects from the vault with stub objects. They will need to be destroyed, not just deleted.
- Update the metadata structure or the information being pulled from the external DB to not depend on or use the stub objects.
