Oracle Error ORA-25235: fetched all messages in current transaction from string.string

Oracle Error Message

ORA-25235: fetched all messages in current transaction from string.string

Reason for the Error

The NEXT_TRANSACTION navigation option was used in a dequeue when there were no more messages that belong to the same transaction.

Solution

Use the NEXT_TRANSACTION navigation option to move to the next also use the FIRST_MESSAGE option to start from the head of the queue again.