Overview
The following error may appear in the M-Files server computer's Windows event viewer log when trying to update an external object type that has owner-subtype hierarchy in use.
M-Files Online
<Vault name> {<Vault guid>}
Processing of the external object type or value list "<Object type or value list name>" failed.
Cannot undelete the object, because the owner object has been deleted. Undelete the owner object first.
BackgroundOperations.cpp, 2392, Processing of the external object type or value list "<Object type or value list name>" failed. (0x8004011F)
RefreshExternalObjects.cpp, 417, Processing of the external object type or value list "<Object type or value list name>" failed. (0x8004011F)
MCallInLoop.h, 712, Processing of the external object type or value list "<Object type or value list name>" failed. (0x8004011F)
RefreshExternalObjects_Private.cpp, 6048, Processing of the external object type or value list "<Object type or value list name>" failed. (0x8004011F)
RefreshExternalObjects_Private.cpp, 5968, Processing of the external object type or value list "<Object type or value list name>" failed. (0x8004011F)
RefreshExternalObjects_Private.cpp, 5968, Cannot undelete the object, because the owner object has been deleted. Undelete the owner object first. (Owner object: X-Y, Object: Z-W) (0x800408B8)
RefreshExternalObjects_Private.cpp, 4237, Cannot undelete the object, because the owner object has been deleted. Undelete the owner object first. (Owner object: X-Y, Object: Z-W) (0x800408B8)
RefreshExternalObjects_Private.cpp, 4067, Cannot undelete the object, because the owner object has been deleted. Undelete the owner object first. (Owner object: X-Y, Object: Z-W) (0x800408B8)
RefreshExternalObjects_Private.cpp, 3744, Cannot undelete the object, because the owner object has been deleted. Undelete the owner object first. (Owner object: X-Y, Object: Z-W) (0x800408B8)
RefreshExternalObjects_Private.cpp, 6463, Cannot undelete the object, because the owner object has been deleted. Undelete the owner object first. (Owner object: X-Y, Object: Z-W) (0x800408B8)
RefreshExternalObjects_Private.cpp, 6567, Cannot undelete the object, because the owner object has been deleted. Undelete the owner object first. (Owner object: X-Y, Object: Z-W) (0x800408B8)
RefreshExternalObjects_Private.cpp, 6617, Cannot undelete the object, because the owner object has been deleted. Undelete the owner object first. (Owner object: X-Y, Object: Z-W) (0x800408B8)
MCallInLoop.h, 712, Cannot undelete the object, because the owner object has been deleted. Undelete the owner object first. (Owner object: X-Y, Object: Z-W) (0x800408B8)
RefreshExternalObjects_Private.cpp, 6694, Cannot undelete the object, because the owner object has been deleted. Undelete the owner object first. (Owner object: X-Y, Object: Z-W) (0x800408B8)
RefreshExternalObjects_Private.cpp, 6776, Cannot undelete the object, because the owner object has been deleted. Undelete the owner object first. (Owner object: X-Y, Object: Z-W) (0x800408B8)
RPCObjectTypesHelper.cpp, 12741, Cannot undelete the object, because the owner object has been deleted. Undelete the owner object first. (Owner object: X-Y, Object: Z-W) (0x800408B8)
RPCObjectTypesHelper.cpp, 15676, Cannot undelete the object, because the owner object has been deleted. Undelete the owner object first. (Owner object: X-Y, Object: Z-W) (0x800408B8)
(M-Files <M-Files version and timestamp>)
X and Z are Object types' internal IDs; Y and W are objects' internal IDs in the above error message.
Details
When subtype-owner hierarchy is used with an external database connection, refreshing the subtype object will fail if it is linked to a non-valid owner object (for example, if the owner object has been deleted or a child Object is mapped to an invalid parent, …).
The issue with one subtype object can cause the whole refresh to fail.
The IDs reported in the error are internal IDs, so if it reports something like (Owner object: X-Y, Object: X-Y):
- X is Object Type internal ID
- Y is Object internal ID
Solution
The owner object in M-Files, and the external database should be evaluated if you notice an external object type refresh failing with this kind of error.
Even only with the internal ID, you can find the object in the vault to match it against the external database (e.g., by its name) to see how the data looks for it there. It's also possible to display the external ID following the steps mentioned in this article Displaying an external object's internal ID.
Alternatively, if this is an on-premises vault:
- Enable external object type logging in the vault to find the external ID of the subtype object.
- There should be these kinds of lines in the external object type log:
- Update real object ID: W (ExtID: '<external id>')
- Use this <external id> to find the object in M-Files and in external source and check its status and check that it has a valid owner object in M-Files.
We also have an improvement request with ID 157009 to add the object's external ID to the error message, you can monitor the release notes to know when it becomes available. With this, you would not need to review the logs from the refresh operation.
