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 [org.alfresco.rest.framework.webscripts.ResourceWebScriptPut] [http-nio-8080-exec-7] c3dc2fef-2934-4566-a0ae-edab78ce6369 : [org.alfresco.rest.api.impl.CustomModelsImpl.updateModel(CustomModelsImpl.java:1304), org.alfresco.rest.api.impl.CustomModelsImpl.updateTypeAspect(CustomModelsImpl.java:504), org.alfresco.rest.api.impl.CustomModelsImpl.updateCustomType(CustomModelsImpl.java:460), sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method), sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62), sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43), java.lang.reflect.Method.invoke(Method.java:498), org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) (...)

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...

 

 

Outcomes