cancel
Showing results for 
Search instead for 
Did you mean: 

delete a model

carole
Champ in-the-making
Champ in-the-making

Hi i'm new in alfresco and i need help

i am trying to import a model but i can't it tells me that the name of model is already used. I tried to delete or undeploy the old model but it cannot be because i found nothing. I delete the folder where the model were applied (from the trashcan also) but nothing.

I also have this message but idk if it is related  image

This the message i have when i am trying to import

imageimage

3 REPLIES 3

abhinavmishra14
World-Class Innovator
World-Class Innovator

You seems to have two different errors. Try to resolve one by one.

First of all fix the error you see on the dashboard. alfresco-share-services.amp installation is mandatory otherwise several functionalities including share search may not work. And you will also see following warning when you login to share: Alfresco is running without Share Services. See your System Administrator for more details.

Try installing the alfresco-share-services.amp dependening on what alfresco version you are running. for example if you are using ACS7.0, the amp is available here: https://artifacts.alfresco.com/nexus/service/local/repositories/releases/content/org/alfresco/alfres...

All other versions can be located here: https://artifacts.alfresco.com/nexus/content/groups/public/org/alfresco/alfresco-share-services/

Coming to second issue, how did you deploy the models earlier? Please provide the steps.

You can refer this post for the recommended steps to deploy content models: https://hub.alfresco.com/t5/alfresco-content-services-forum/custom-content-model-does-not-show-up-in...

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

Thanks for your answer

For the first error someone else is going to fix it

For the model we add it by importing a zip file in admin tools / model manager

imageHere what's inside de ZIP file

image

abhinavmishra14
World-Class Innovator
World-Class Innovator

Hope you did not deleted the model  without deactivating it before. Also make sure, you don't have any nodes in repository that are using the model. 

https://docs.alfresco.com/content-services/6.2/config/models/#deactivate-a-content-model (Read the notes, if you deactivate and delete, you must remove any filters that use it from the Search Manager)

Deactivate the model from the model manager and then delete it. When you deactivate the model, it automatically gets deleted from solr tracking. Check here to confirm the same: $SOLR6_INSTALATION/data/alfrescoModels

E.G.: /opt/alfresco-search-services/data/alfrescoModels

~Abhinav
(ACSCE, AWS SAA, Azure Admin)