AnsweredAssumed Answered

Cannot deactivate/delete custom model

Question asked by sirchnait on Oct 9, 2017
Latest reply on Oct 9, 2017 by sirchnait

I've been approaching the topic custom models lately. I've created a rudimentary custom model with the model manager from the Admin Tools. Now I wanted to start over agein and delete the first model. However, Alfresco denies deactivating or deleting any component of the model, i.e. no custom type or aspect can't be deleted. On the attempt to remove a property, it says "We couldn't update the model right now. Try sharing the following details with your IT team. Failed to validate property delete, property {modelname}aspectname is in use" - the corresponding exception in the alfresco.log says 

ERROR [] [http-nio-8080-exec-7] c3dc2fef-2934-4566-a0ae-edab78ce6369 : [,,, sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method), sun.reflect.NativeMethodAccessorImpl.invoke(, sun.reflect.DelegatingMethodAccessorImpl.invoke(, java.lang.reflect.Method.invoke(, (...)

Trying to deactivate the model results in an error "We couldn't deactivate model ' Model 'xyz' is in use and cannot be deleted or deactivated." The exception in the logfile is very similar to the one above. However, Alfresco shows no results searching for any occurrences of my model and I'm pretty sure that's correct since I applied the type of only one document to my model and deleted this document later on.

Any ideas on how to solve this would be greatly appreciated...