4

I am getting a - Could not update Activiti database schema: unknown version from database: '5.20.0.1' ? Any idea why this error occurs ? I am using activiti-engine-5.18.0 jar

I am trying to deploy a process outside of Alfresco Activiti using eclipse.

Sunita Nayak
  • 117
  • 1
  • 8
  • 1
    Can you provide more details on how you are trying to deploy your workflow ? – Younes Regaieg Feb 15 '16 at 15:57
  • RepositoryService repositoryService = activitiRule.getRepositoryService(); repositoryService.createDeployment().addInputStream("myProcess.bpmn20.xml",new FileInputStream(filename)).deploy(); RuntimeService runtimeService = activitiRule.getRuntimeService(); Map variableMap = new HashMap(); variableMap.put("name", "abcdefgh"); ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("myProcess", variableMap); – Sunita Nayak Feb 15 '16 at 16:11
  • It looks like you're trying to use Activiti 5.18 jars on a 5.20 database - what happens if you upgrade to use the same version everywhere? – Gagravarr Feb 15 '16 at 18:06
  • How do I perform the upgrade ?? I am using maven to resolve my dependencies. How do I upgrade the jars ? I am using eclipse as my IDE. – Sunita Nayak Feb 16 '16 at 09:59
  • @SunitaNayak Tell Maven to fetch you a newer version? Without the pom file we can't tell you what you've done wrong though – Gagravarr Feb 16 '16 at 15:43
  • @Gagravarr...thank you so much. I have updated my pom.xml file. Thanks for the help !! – Sunita Nayak Feb 17 '16 at 10:11

1 Answers1

14

Check wich version of activiti engine do you use in maven dependencies. Activiti 5.18.0 needs db version 5.18.0.0. Database version 5.20.0.1 is for Activiti engine 5.19.0.2.

Check version in your db table ACT_GE_PROPERTY and org.activiti.engine.ProcessEngine.VERSION. They need match.

fersmi
  • 601
  • 3
  • 9
  • Thanks @fersmi !! There was a mismatch in the version of activiti angine and database. I have updated the pom.xml and everything works fine. Thank you so much for the help. – Sunita Nayak Feb 17 '16 at 10:10
  • For more details: http://codecramp.com/activiti-setup-eclipse/#Possible_Exception – EMM Aug 08 '17 at 02:14