cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to Update Dynamic Model

ukdavo
Champ in-the-making
Champ in-the-making
Hi there

I have a dynamic content model that defines a bunch of types and aspects. I got the following error when attempting to add a property to one of these custom aspects - let's call it AspectA:

org.alfresco.error.AlfrescoRuntimeException: 01170049 Failed to validate model update - found non-incrementally updated ASPECT '{http://www.alfresco.org/model/test}AspectC'
Please note that AspectC includes AspectB in the mandatory aspects block. Also AspectB includes AspectA in the mandatory aspects block.

I am aware that only incremental changes are allowed during updates to dynamic models but I'm not deleting or renaming properties. Is it because I'm making a change to an aspect that is mandatory to other aspects that I'm getting this issue? Is there any way around it (other than deleting all associated content or re-creating the model)? My concern is that I may not be able to update the content model on the production system.

Cheers
4 REPLIES 4

janv
Employee
Employee
Can you please post your model here for reference.

Thanks,
Jan

ukdavo
Champ in-the-making
Champ in-the-making
I've PM'd you the content model as I'm not sure whether the customer would be happy with me making it public.

Regards

Mark

gilmagno
Champ in-the-making
Champ in-the-making
Hi, there

Any solution on this?

I found this as a bug in Alfresco Enterprise 3.4.0 (https://issues.alfresco.com/jira/browse/ALF-7342), but I don't know if there's been a correction in the Community Edition. I'm using 3.4.d now, and I'm getting this same error, except that for me the aspect I'm trying to change in is a mandatory aspect to a type, and not to another aspect.

Thanks in advance,

gil

janv
Employee
Employee
As per the JIRA, it is fixed in Enterprise 3.4.2 and higher. It should also be resolved in Community 4.0 (at time of writing the latest release is 4.0.c).

Regards,
Jan