cancel
Showing results for 
Search instead for 
Did you mean: 

Modify property of existing and used aspect

goebel
Champ on-the-rise
Champ on-the-rise
Hi

I have some aspects deployed in alfresco and it works fine. But now I have to modify an existing property of an aspect which is used by a lot of documents. I just want to add the option <tokenised>both</tokenised> to the property but at startup I see the following warning :


Jul 15, 2013 3:58:46 PM org.alfresco.solr.AlfrescoSolrDataModel putModel
WARNING: Model not updated: sigi:sigiModel   Failed to validate model update - found non-incrementally updated PROPERTY '{sigi.model}expediteur'


I changed the property from :

<property name="sigi:expediteur">
     <type>d:text</type>
</property>


to


<property name="sigi:expediteur">
     <type>d:text</type>
     <index enabled="true">
         <tokenised>both</tokenised>
     </index>
</property>



How can I modify existing aspects ? I have already added some properties to existing aspects which works fine. However removing or modifying properties did not work. Does anybody know how I can realize this ?

Regards

Georges Goebel
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
The message is telling you that updates to existing properties are not allowed.   You could already have nodes confirming to the the old property definition.

The restriction is perhaps too simplistic but prevents a whole load more complicated issues.

It looks like you can turn off validation if you want to.   by setting doValidate to false in the spring definition for the dictionaryModelType bean. 

vince20151
Champ in-the-making
Champ in-the-making
MRogers,
I have the same problem but since my code is in development, is there anyway to clean up all the affected data.
I added an aspect and now want to change that aspect. I have removed all the node that is attached to the old aspect but still get this error. It shows on the start of the server. I deployed the model bootstrap style (not via repository).
"Failed to validate model update - found non-incrementally updated PROPERTY"
Thanks a bunch!