Cannot correlate a message with name to a single execution

we are migrating Mesos to Rancher Kubernetes. we deployed the services in Rancher Kubernetes. we get rid of consul for service discovery. we are using Kubernetes service discovery for Retrofit calls. Process is creating and externally terminating immediately.
Below is the error.

2024-06-29T10:48:26.469034219Z at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_272]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_272]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_272]
2024-06-29T10:48:26,479 ERROR [org.camunda.bpm.engine.context] [scheduling-1] ENGINE-16004 Exception while closing command context: ENGINE-13031 Cannot correlate a message with name ‘ProductPackageStatusUpdatedBySeo’ to a single execution. 2 executions match the correlation keys: CorrelationSet [businessKey=null, processInstanceId=2908968370, processDefinitionId=null, correlationKeys=null, localCorrelationKeys=null, tenantId=null, isTenantIdSet=false]
2024-06-29T10:48:26.481940973Z org.camunda.bpm.engine.MismatchingMessageCorrelationException: ENGINE-13031 Cannot correlate a message with name ‘ProductPackageStatusUpdatedBySeo’ to a single execution. 2 executions match the correlation keys: CorrelationSet [businessKey=null, processInstanceId=2908968370, processDefinitionId=null, correlationKeys=null, localCorrelationKeys=null, tenantId=null, isTenantIdSet=false]

Can you help me to resoleve the issue.

Can anyone help me to resolve this issue since this needs to be resolved immediately.

Much appreciated your help.

Regards,
Thanuja.

Hi,@ Thanuja_Vadlamudi can you provide bpmn example with script you are using?

Hello @Thanuja_Vadlamudi !

Probably at the moment you are calling your message event, you have more than one equal processInstanceId running, for example… you may have active parallel processing (parallel gateway for example), among others, and then the Camunda checks that there is more than one instance, and cannot actually understand which instance you want to activate with the correlate.

I suggest that when correlating messages, do not do it just using processInstanceId, but rather check more forms of validation so that Camunda does not get lost… such as:

I hope this helps.

William Robert Alves

The issue resolved after adding processDefinitionID. But I am running the Camunda process server in POD (Deployed in Rancher Kubernetes). POD is crashing every 10 minutes due to memory leakage. I see some IBatsis configuration object is taking more memory. Can you please help me where exactly it is taking more memory and how to resolve the issue.

I see the below one in the list which is taking more memory
Class Name | Ref. Objects | Shallow Heap | Ref. Shallow Heap | Retained Heap

value char[95] @ 0x6c6b28fb0 org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.selectTaskCountByQueryCriteria-Inline| 1 | 208 | 208 | 208

we are using below versions.
springBootVersion = ‘2.1.9.RELEASE’
camundaVersion = ‘7.12.0’
camundaStarterVersion = ‘3.3.5’

Can someone help me to resolve this issue please.

Do we have docker image for camunda 7.12 version?

Hi @Thanuja_Vadlamudi - I would recommend opening a new topic for this issue, since it’s not related to message correlation. You can find Camunda 7 Docker images in this repository: GitHub - camunda/docker-camunda-bpm-platform: Docker images for the camunda BPM platform

1 Like

Thank you, Nathan. I have created new topic on this. I need to run 7.12 process engine as a docker and see memory leakage on that instead of deploying our service which is created on top of 7.12 camunda engine.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.