# 30036: Validity Period Expired

Log Type: APPLICATION

Log Level: ERROR

## Description

This error occurs when your outbound message stays in Twilio's queue longer than the configured `ValidityPeriod`. When the time elapsed since the message was submitted exceeds `ValidityPeriod`, Twilio does not send the message.

### Possible causes

* You set `ValidityPeriod` too low for the message use case.
* The message waited in the queue longer than expected because you submitted a high volume of messages in a short period of time.
* Your sender throughput or messaging rate limits caused messages to queue longer than the configured `ValidityPeriod`.
* A `ValidityPeriod` configured on the message or on the Messaging Service was shorter than the time required for the message to leave Twilio's platform.

### Possible solutions

* Retry the message with a longer `ValidityPeriod`.
* Set `ValidityPeriod` to a value that matches how time-sensitive the message is and allows enough time for normal queueing.
* If you send with a Messaging Service, review the Messaging Service validity period setting in the Console and increase it if needed.
* If you set `ValidityPeriod` on individual API requests, confirm the value is appropriate for your traffic pattern and sender throughput.
* Reduce queue buildup by sending smaller batches or pacing traffic so your send rate is closer to your available throughput.

#### Additional resources

* [Messages resource](/docs/messaging/api/message-resource)
* [Messaging Services](/docs/messaging/services)
* [Understanding Twilio Rate Limits and Message Queues](https://help.twilio.com/articles/115002943027-Understanding-Twilio-Rate-Limits-and-Message-Queues)
