# 83604: Query period exceeds the maximum allowed for the requested Granularity

Log Type: APPLICATION

Log Level: ERROR

## Description

This error occurs when your Usage Records request spans more time than the selected granularity supports. Requests with `all` can query up to 18 months of data, requests with `day` can query up to 3 months of data, and requests with `hour` can query up to 31 days of data.

### Possible causes

* Your request uses `startDate` and `endDate` values that define a date range longer than the allowed limit for the granularity you selected.
* Your request asks for `hour` data across more than 31 days.
* Your request asks for `day` data across more than 3 months, or `all` data across more than 18 months.

### Possible solutions

* Reduce the time span between `startDate` and `endDate` so the request stays within the supported limit for the granularity you need.
* Send `startDate` and `endDate` in `YYYY-MM-DD` format so Twilio can evaluate the requested period correctly.
* If you need a different reporting interval, use one of the supported Usage Records subresources such as `Daily`, `Monthly`, `Yearly`, `AllTime`, `ThisMonth`, or `LastMonth` instead of querying an unsupported range.

#### Additional resources

* [Usage Records API reference](/docs/usage/api/usage-record)
* [General Usage](/docs/usage)
* [UsageTrigger API reference](/docs/usage/api/usage-trigger)
