CMDBuild Forum

Delete a class doesn't work

I have created a class and forgot to set the flag for superclass. Now a cannot remove this class.
The error message is

cannot delete class = “phones”: class oid is referenced from record[s] of class = “_AttributeGroup” attr = Owner

Please help

Hi,
This is a known bug, it has been corrected and the fix will be available in the next CMDBuild version.
For the moment if you remove in the database the attribute groups related to the class you want to delete from the table “_AttributeGroup”, you will then be able to delete the class.

1 Like

And I cann’t delete classes too, but error message different:

cannot delete class = “Elsys_ERS_CO2”: class has cards
But there is no one card

cannot delete class = “Mercury”: class oid is referenced from record[s] of class = “_Grant” attr = ObjectClass
Here i don’t know reason, but i think it’s similar bug

Perhaps there are cards with Status = Deleted.
Even those prevent the elimination of the class.

1 Like