Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/Support and troubleshooting/Troubleshooting/Error resolution

Failure to activate annotations, incorrect object type

Last updated on 22 June 2021 · 2 min read

Admin
M-Files Admin

Overview

In some cases, activating the annotations and redlining feature has failed with this error:
kuva.png

The error details are like below (numbers referring to code lines and M-Files version may vary):
MPropertyPage2.cpp, 102, The "Annotations and redlining" feature could not be enabled. (0x8004012B)
MPropertySheet2.cpp, 143, The "Annotations and redlining" feature could not be enabled. (0x8004012B)
PropertySheetDocumentVault.cpp, 1032, The "Annotations and redlining" feature could not be enabled. (0x8004012B)
RPCMethodCallWithRetry.h, 176, The "Annotations and redlining" feature could not be enabled. (0x8004012B)
RPCMethodCallWithRetry.h, 176, The "Annotations and redlining" feature could not be enabled. (0x8004012B)
RPCVaultAdmin.cpp, 1454, The "Annotations and redlining" feature could not be enabled. (0x8004012B)
RPCVaultAdmin.cpp, 613, The "Annotations and redlining" feature could not be enabled. (0x8004012B)
RPCVaultAdminHelper.cpp, 8252, The "Annotations and redlining" feature could not be enabled. (0x8004012B)
RPCVaultAdminHelper.cpp, 8252, Class M-Files.DMS.Annotation: incorrect ObjectType (0x80040120)
Annotations.cpp, 110, Class M-Files.DMS.Annotation: incorrect ObjectType (0x80040120)
Annotations.cpp, 346, Class M-Files.DMS.Annotation: incorrect ObjectType (0x80040120)
(M-Files 21.5.10227.5)

Products and versions

All supported M-Files versions.

Solution

This error occurs because there is already an existing class using the alias M-Files.DMS.Annotation (which might be a result of an earlier attempt to activate annotations or a manually created class).
To fix the situation, simply delete the class with the mentioned alias and this should solve the issue. Then try to activate annotations again.
 

Still need help?