# How can I ignore the Mismatching Message Correlation Exception in process

**URL:** <https://forum.camunda.io/t/how-can-i-ignore-the-mismatching-message-correlation-exception-in-process/12673>\
**Category:** Discussion & Questions\
**Tags:** process-engine\
**Created:** [May 4, 2019, 3:47pm UTC](https://forum.camunda.io/t/how-can-i-ignore-the-mismatching-message-correlation-exception-in-process/12673 "2019-05-04T15:47:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Philipp\_Ossler](https://forum.camunda.io/user_avatar/forum.camunda.io/philipp_ossler/32/25299_2.png) [@Philipp\_Ossler](https://forum.camunda.io/u/Philipp_Ossler)\
**Post date:** [May 6, 2019, 5:41am UTC](https://forum.camunda.io/t/how-can-i-ignore-the-mismatching-message-correlation-exception-in-process/12673/2 "2019-05-06T05:41:54Z")

</div>

Hi @Mohammad_Mahdavi,

you use the following expression to correlate the message:

`${execution.getProcessEngineServices().getRuntimeService().createMessageCorrelation(execution.getVariable("responseMessageName")) .setVariable("result", "12") .correlateWithResult()}`

If you use `correlateAll()` instead of `correlateWithResult()` then no exception is thrown.

Does this help you?

Best regards,  
Philipp

---

_[View the full topic](https://forum.camunda.io/t/how-can-i-ignore-the-mismatching-message-correlation-exception-in-process/12673)._
