Oracle Error ORA-25243: CONSUMER_NAME cannot be specified when dequeuing from exception queue string.string

Oracle Error Message

ORA-25243: CONSUMER_NAME cannot be specified when dequeuing from exception queue string.string

Reason for the Error

An attempt was made to dequeue from an exception queue by specifying the CONSUMER_NAME in the dequeue options. CONSUMER_NAME can only be specified when dequeuing from a normal queue created for multiple consumers.

Solution

Specify only the message id in the dequeue options to dequeue a message from an exception queue.