SAP PI messages overview sometime shows messages stuck in delivering status but actual status might be wrong.
Messages on the Adapter Engine are stuck in a wrong status in the Message Overview or the counter shows a number that is different from the actual number of XI/PI messages on the database. E.g. the page shows some messages that are in a scheduled status.
But when navigating to the detailed message list in Message Monitoring by clicking on the counter, these messages are already in a final status. Or the number of messages shown in the Message Overview and in the Message Monitoring is different.
SAP has provided nice solutions to correct messages stuck in delivering the wrong status.
Use below URL replace J2EEHost &J2EEPort with your PI server and port.
Http ://<J2EEHost>:<J2EEPort> /mdt/monitor/message_statistics.jsp?syncData=true
After executing this URL, you will receive a list of message IDs in Advanced Adapter Engine, for which discrepancy between status in Message Monitor and status in Message Overview was identified.
Below is a screen if nothing was modified and everything was good.
For more information, please check the SAP Note 1296132.