how to update parent aspect for already created aspect

cancel
Showing results for 
Search instead for 
Did you mean: 
MohsenH
Member II

how to update parent aspect for already created aspect

I am trying to update a parent aspect for already created aspect but I can't do that 

and also I am trying to delete this aspect but it says you can't delete an aspect while the model is active is there any solution for that 

4 Replies
abhinavmishra14
Advanced

Re: how to update parent aspect for already created aspect

Looks like this thread is duplicate of https://hub.alfresco.com/t5/alfresco-content-services-forum/delete-an-aspect-from-active-model/m-p/3...

But, can you explain what exactly you are trying. Please share the model and required changes you want to do.

~Abhinav
(ACSCE, AWS SAA-C02, GAIQ)
abhinavmishra14
Advanced

Re: how to update parent aspect for already created aspect

@Dscexperts12 Posting spam is not allowed in the forum, your content will be marked spam and you will likely be banned. 

~Abhinav
(ACSCE, AWS SAA-C02, GAIQ)
MohsenH
Member II

Re: how to update parent aspect for already created aspect

Hi ,

Thank you so much for your reply. Actually, I am new to alfresco and my problem is:
I added an aspect to the model and I forgot to add the parent for this aspect.
so I want to update this aspect to add the parent aspect for it or delete this aspect and recreate it again

abhinavmishra14
Advanced

Re: how to update parent aspect for already created aspect

Ideally it should not be an issue if you added the aspect to model and want to add parent to the aspect unless that aspect is already applied to nodes. These are incremental changes and should work. Also checkout this thread: https://hub.alfresco.com/t5/alfresco-content-services-forum/non-incremental-model-changes/m-p/302455

Sometimes solr may report error when i tries to sync the model. In this case you need to delete indexes and models and restart

If you have not applied the aspect already, you should try adding the parent. If you have applied the aspect already checkout the options given here: https://hub.alfresco.com/t5/alfresco-content-services-forum/delete-an-aspect-from-active-model/m-p/3...

~Abhinav
(ACSCE, AWS SAA-C02, GAIQ)