Skip to main content

Messages

The Messages tab shows the messages on a queue, oldest first. Choose the queue at the top left, then Queue for the messages waiting to be received or Dead letter queue for those that could not be delivered. The counts on the two buttons come from Service Bus.

The messages waiting on nge-etrm-prices

Reading the messages does not change them: they stay on the queue for your application, and their delivery count does not go up. The list shows 25, 50 or 100 messages at a time; Load more reads the next ones.

Queues in your own messaging

For a queue in your own messaging, the tab only offers what that service can do. Amazon SQS cannot show messages without receiving them, so the tab shows the counts and you can still send a test message, clear the queue and move all dead letters back. Kafka shows the newest records. Deleting chosen messages and moving chosen dead letters back are only for Service Bus.

ColumnWhat it shows
SeqThe sequence number Service Bus gave the message: it identifies the message on this queue
EnqueuedWhen the message arrived. A scheduled message also shows when it is due
SubjectThe message subject (for messages sent by the platform, usually the id of what was sent), with the message id below
Content typeFor example application/json or text/csv
SizeThe size of the body
DeliveriesHow many times a receiver has taken the message without completing it
State or Dead letter reasonActive, scheduled or deferred; for a dead letter, why it was dead lettered and the error
BodyThe start of the body

At Northgate, last night's 12 settlement prices are still waiting on nge-etrm-prices at 9 in the morning, which tells Priya the ETRM did not read its queue overnight, while the platform sent them as usual.


Opening a message​

Select a row to see the whole message: its details, its properties and its body. JSON is laid out to be readable; a body that is not text is shown as base64.

A settlement price message

Copy body copies the body, Download saves it as a file, and Delete deletes this message. On a dead letter, Move to the queue sends it back to the queue.


Dead letters​

The dead letter queue of nge-etrm-prices

The Dead letter reason tells you what happened:

ReasonWhat it meansWhat to do
MaxDeliveryCountExceededA receiver took the message 10 times without completing it: it probably failed to process itFix the receiver, then move the message back to the queue
A reason set by your receiverYour application dead lettered the message itself because it could not use it, with its own reason and error, such as UnknownProductFix the cause, then move the message back, or delete it if it is not needed
TTLExpiredExceptionThe message expired before anyone received it. Only for queues set to dead letter expired messages: on queues created on the platform, expired messages are deletedMove it back if the data is still needed, or delete it

Northgate's ETRM failed on two French power messages after a product mapping change, and dead lettered the German spark spread itself because it has no ETRM product for it. Once the mappings are fixed, Priya moves the three messages back so the ETRM can read them again.


Moving dead letters back to the queue​

Select messages and choose Move selected to the queue, or choose Move all to the queue to move every dead letter, oldest first.

Moving every dead letter back to the queue

Each message is sent to the queue again with the same body, subject, content type and properties, then removed from the dead letter queue. It gets a new sequence number, a delivery count of zero and two extra properties: resubmittedFrom (deadletter) and originalSequenceNumber. On a queue with a handler, the platform processes the moved messages again.


Deleting messages​

Select messages and choose Delete selected, or open a message and select Delete. Deleting cannot be undone.

note

Service Bus cannot pick out a message by its number, so to delete messages from the middle of a queue the platform takes the messages ahead of them and puts them back. That adds one to their delivery count. On a busy queue, a message close to 10 deliveries could be dead lettered by this. A scheduled message is cancelled instead.


Clearing a queue​

Clear the queue deletes every message waiting on the queue; on the dead letter queue the button is Clear the dead letter queue. Type the queue name to confirm.

Clearing the dead letter queue of nge-etrm-prices

Scheduled messages are kept when you clear a queue. Large queues are cleared in batches; the screen shows how many have been deleted so far.

caution

Clearing a queue deletes data your receivers have not read yet. Check with the people who own the receiving system first.


Sending a test message​

Send test message puts a message on the queue so you can check that a receiver picks it up, or that an automation on a queue with a handler runs.

Sending a test message

FieldNotes
SubjectOptional
Content typeFor example application/json, text/plain or text/csv
BodyAt most 64 KB. A JSON content type checks the body is valid JSON

The message is sent the way the platform sends every message, so it appears in the queue log with the trigger queue_manager. It has the properties origin (the queue name) and sentBy (your email).


Next​

Log and statistics: what the platform sent and how it went.