Oracle Error ORA-25211: invalid DELAY specified when using sequence deviation

Oracle Error Message

ORA-25211: invalid DELAY specified when using sequence deviation

Reason for the Error

The DELAY specified in the enqueue is greater than the delay of the message with the given relative message id.

Solution

Set the DELAY to be less than or equal to the delay of the message with the given relative message id. If the TOP option is used the delay must be less than or equal to the delay of all the messages in the queue.