Duplicate process versions

Hi,
I met a very strange thing. When I deploy a process, occasionally, I got duplicate process versions. My understanding is for each process deployment, I should get a unique process version, say, 1, 2, 3, 4, etc. But in very few times, I got two version 1 deployments in the table of act_re_procdef for the same process definition. I use the following code to do the deployment. I’m using Camunda v7.2. any hints?

I assume you mean 7.12.

You might have the same process definition version for different tenants.

Hi Niall,

Thanks a lot for your quick and accurate reply. It is the different tenant Id issue that caused the duplicate process versions. And yes, my typo, I’m using the latest version, 7.12.

Thanks again!

Hi Niall,

I ran to the same issue when both of my Camunda instances have been restarted at exactly the same time. The tenant value is null for both.

Previoulsy I found that there is an improvement for this: https://jira.camunda.com/browse/CAM-12410

So I uplifted the Camunda version to 7.14, but I still got the same issue:

Process engine persistence exception
Caused by: org.camunda.bpm.engine.ProcessEngineException: Process engine persistence exception
Caused by: org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 2"}}

Thanks