cancel
Showing results for 
Search instead for 
Did you mean: 

Adding aspect throwing error

mangar
Star Contributor
Star Contributor
I have a workflow model (everything works fine), and I need to an aspect to it.  I add an aspect and redeploy, I get this error in the logs:

WARN  [alfresco.solr.AlfrescoSolrDataModel] [SolrTrackerScheduler_Worker-3] Model not updated
  Failed to validate model update - found non-incrementally updated TYPE

I do a google search and everything that comes up is saying that I am "dynamically" modifying the model, which I am NOT. It goes in alfresco/extensions just like my content model file.  (Alf Comm 4.2.d)

I have undeployed all my workflows and restarted, same error. 
I have removed all references to the workflow model and restarted, same error.
I rebuilt my SOLR indexes, same error.

I redeployed Alfresco and that worked, (of course)  But I will have this problem again.

How do I rebuild the AlfrescoSolrDataModel
How can I fix this?
1 REPLY 1

rjohnson
Star Contributor
Star Contributor
Whenever I have to rebuild solr indexes I do as follows:-

1. Stop Alfresco
2. Remove index directory of the archive core at alf_data/solr/archive/SpacesStore
3. Remove index directory of the workspace core at alf_data/solr/workspace/SpacesStore
4. Remove cached model info directory of the archive core at alf_data/solr/archive-SpacesStore/alfrescoModels
5. Remove cached model info directory of the workspace core at alf_data/solr/workspace-SpacesStore/alfrescoModels
6. Start Alfresco