I have edited my application.properties file to configure history level to none but its showing the following error:
historyLevel mismatch: configuration says HistoryLevelNone(name=none, id=0) and database says HistoryLevelFull(name=full, id=3)
so inorder to set the history level to desired option we have to update in database ? Then what is the purpose of configuring the bpm-platform.xml file?
if you select the desired history level on the first startup, everything is smooth.
Only if you want to change the level afterwards, you have to adjust both settings, configuration file and database. But it is a rare operation.
This behavior is there from the very first version, it was already there in activiti, when the fork of the Camunda Platform happened. I can’t explain the reasoning of the decision.
Caused by: org.camunda.bpm.engine.ProcessEngineException: ENGINE-03003 Inserting an entity with Id ‘historyLevel’ and type ‘class org.camunda.bpm.engine.impl.persistence.entity.PropertyEntity’ which is already marked with state ‘PERSISTENT’
at org.camunda.bpm.engine.impl.db.EnginePersistenceLogger.alreadyMarkedEntityInEntityCacheException(EnginePersistenceLogger.java:113) ~[camunda-engine-7.18.3-ee.jar:7.18.3-ee]
at org.camunda.bpm.engine.impl.db.entitymanager.cache.DbEntityCache.putInternal(DbEntityCache.java:217) ~[camunda-engine-7.18.3-ee.jar:7.18.3-ee]
at org.camunda.bpm.engine.impl.db.entitymanager.cache.DbEntityCache.putTransient(DbEntityCache.java:157) ~[camunda-engine-7.18.3-ee.jar:7.18.3-ee]
at org.camunda.bpm.engine.impl.db.entitymanager.DbEntityManager.insert(DbEntityManager.java:530) ~[camunda-engine-7.18.3-ee.jar:7.18.3-ee]
at org.camunda.bpm.engine.impl.HistoryLevelSetupCommand.dbCreateHistoryLevel(HistoryLevelSetupCommand.java:72) ~[camunda-engine-7.18.3-ee.jar:7.18.3-ee]
at org.camunda.bpm.engine.impl.HistoryLevelSetupCommand.execute(HistoryLevelSetupCommand.java:56) ~[camunda-engine-7.18.3-ee.jar:7.18.3-ee]
at org.camunda.bpm.engine.impl.HistoryLevelSetupCommand.execute(HistoryLevelSetupCommand.java:34) ~[camunda-engine-7.18.3-ee.jar:7.18.3-ee]
at org.camunda.bpm.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:28) ~[camunda-engine-7.18.3-ee.jar:7.18.3-ee]
at org.camunda.bpm.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:110) ~[camunda-engine-7.18.3-ee.jar:7.18.3-ee]
at org.camunda.bpm.engine.spring.SpringTransactionInterceptor.lambda$execute$0(SpringTransactionInterceptor.java:71) ~[camunda-engine-spring-7.18.3-ee.jar:7.18.3-ee]
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140) ~[spring-tx-5.3.22.jar:5.3.22]
at org.camunda.bpm.engine.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:71) ~[camunda-engine-spring-7.18.3-ee.jar:7.18.3-ee]
at org.camunda.bpm.engine.impl.interceptor.ProcessApplicationContextInterceptor.execute(ProcessApplicationContextInterceptor.java:70) ~[camunda-engine-7.18.3-ee.jar:7.18.3-ee]
at org.camunda.bpm.engine.impl.interceptor.CommandCounterInterceptor.execute(CommandCounterInterceptor.java:35) ~[camunda-engine-7.18.3-ee.jar:7.18.3-ee]
at org.camunda.bpm.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33) ~[camunda-engine-7.18.3-ee.jar:7.18.3-ee]
at org.camunda.bpm.engine.impl.interceptor.ExceptionCodeInterceptor.execute(ExceptionCodeInterceptor.java:55) ~[camunda-engine-7.18.3-ee.jar:7.18.3-ee]
at org.camunda.bpm.engine.impl.ProcessEngineImpl.executeSchemaOperations(ProcessEngineImpl.java:148) ~[camunda-engine-7.18.3-ee.jar:7.18.3-ee]
at org.camunda.bpm.engine.impl.ProcessEngineImpl.(ProcessEngineImpl.java:110) ~[camunda-engine-7.18.3-ee.jar:7.18.3-ee]
at org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl.buildProcessEngine(ProcessEngineConfigurationImpl.java:1101) ~[camunda-engine-7.18.3-ee.jar:7.18.3-ee]
at org.camunda.bpm.engine.spring.SpringTransactionsProcessEngineConfiguration.buildProcessEngine(SpringTransactionsProcessEngineConfiguration.java:67) ~[camunda-engine-spring-7.18.3-ee.jar:7.18.3-ee]
at org.camunda.bpm.engine.spring.ProcessEngineFactoryBean.getObject(ProcessEngineFactoryBean.java:55) ~[camunda-engine-spring-7.18.3-ee.jar:7.18.3-ee]
at org.camunda.bpm.engine.spring.ProcessEngineFactoryBean.getObject(ProcessEngineFactoryBean.java:34) ~[camunda-engine-spring-7.18.3-ee.jar:7.18.3-ee]
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:169) ~[spring-beans-5.3.22.jar:5.3.22]
… 31 common frames omitted
Thankyou it is working now. Can you please tell me the difference between the audit level and activity level .what is the difference between full and activity level.