MessageFailed events do not contain message body after updating Service Control

Description

Moving from Service Control 3.x to 5.x existing handler for MessageFailed event stopped receiving the message body.

We followed this recommendation:
https://docs.particular.net/servicecontrol/contracts#alerting-on-failedmessages-events
Our messages are non-binary, smaller than 85kb and full-text body indexing is enabled in both ServiceControl Instance and Audit Instance (see the image below if we’re setting the right option).

We found only the issue #2626 about this topic but it seems we’re still doing something wrong, maybe.

Do you have suggestions about how to solve this ?

Expected behavior

We used to read the message body json from the MessageFailed event using the following property:

message.MessageDetails.Body

We started getting this null with the newer Service Control version.

Versions

ServiceControl : 5.6.0
We’ve noticed the problem just after updating ServiceControl while the endpoint was still using:

  • .Net : 3.1
  • NServiceBus : 7.4.6

We tried also updating the endpoint with no success:

  • .Net : 8.0
  • NServiceBus : 9.1.1

Thanks
Stefano

Thanks for the detailed information. Could you please open a non-critical support case so we can better serve you?