Oracle Error Message
ORA-25240: message ID and dequeue condition/correlation ID specified in dequeue options
Reason for the Error
An attempt was made to dequeue by including both a message ID and a dequeue condition/correlation ID in the dequeue options. In the dequeue options, you are permitted to specify either message ID or dequeue condition/correlation ID, or neither.
Solution
To dequeue a message, specify a message ID or a dequeue condition/correlation ID in the dequeue options, but do not specify both. If you want to dequeue in the queue’s sort order, then do not specify either the message ID or dequeue condition/correlation ID in the dequeue options.