Caused by: org.camunda.bpm.engine.ProcessEngineException: The deployment contains definitions with the same key 'instance-migration-with-event-process' (id attribute), this is not allowed

Hi Experts

I created a simple process to test out migration process. It’s an spring boot application. I was able to deploy it successfully but then I made few changes in the process and tried to deploy it again and it failed with the following error.

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘camundaIntegrationDeterminator’: Unsatisfied dependency expressed through field ‘processEngine’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘processEngineFactoryBean’: FactoryBean threw exception on object creation; nested exception is org.camunda.bpm.engine.ProcessEngineException: The deployment contains definitions with the same key ‘instance-migration-with-event-process’ (id attribute), this is not allowed

It used to work before, probably it’s a latest change. I was able to deploy multiple versions of the same process but now it’s not allowed. Please advise.

Thanks

Original Process :

process_0.bpmn (2.3 KB)

Updated Process :

process.bpmn (4.0 KB)

If you try to deploy both process_0.bpmn and process.bpmn in the same deployment they will collide because their internal ID is the same. The error message is telling you that.

I understand that, actually this was same process where I made the change. For showing the old process in this post, I had to copy the changed process and revert the changes.

But anyways, I created the project again and performed the same steps and I was able to deploy multiple versions so I am all set.

I might have missed something previously.

Thanks for looking into it.

1 Like