BigQuery error · Quotas and rate limits
Custom quota exceeded: QueryUsagePerDay
An administrator capped how many bytes on-demand queries may process per day, and the project (QueryUsagePerDay) or your user (QueryUsagePerUserPerDay) hit that cap. New queries fail until the quota resets at midnight Pacific Time, the cap is raised, or the work runs in another project.
The error message
Custom quota exceeded: Your usage exceeded the custom quota for QueryUsagePerDay, which is set by your administrator.
Causes
The project-level daily cap is reached
QueryUsagePerDay limits the bytes processed by all users and service accounts in the project together. Its default is 200 TiB per day; administrators lower it as a spend control. Once the total is used, every on-demand query in the project fails, including scheduled ones.
Your user or service account hit its own cap
The message names QueryUsagePerUserPerDay when the per-user quota is the one exceeded. It applies separately to each user and service account in the project, so a single pipeline account can be blocked while colleagues still run queries.
The daily window is Pacific Time, not your time zone
Custom quotas reset at midnight Pacific Time. Queries you ran "yesterday" in Europe or Asia can still count toward today's Pacific window, so the cap seems to be reached earlier than expected.
BigQuery ML usage counts at a higher rate
Usage is normalized to the standard on-demand rate. Statements priced above it, such as some CREATE MODEL jobs, count as a multiple of their billed bytes, so the Quotas page can show far more usage than total_bytes_billed in INFORMATION_SCHEMA.JOBS.
One very large query is rejected up front
The check is proactive: a query whose estimated bytes exceed the remaining quota fails before it runs, even if the quota isn't fully used yet.
How to fix it
1. Find the jobs that used today's quota
Start the window at midnight Pacific Time to match the quota. Look for repeated scans of the same large table, SELECT *, and missing partition filters.
SELECT
user_email,
statement_type,
COUNT(*) AS jobs,
ROUND(SUM(total_bytes_billed) / POW(1024, 4), 2) AS tib_billed
FROM `region-us`.INFORMATION_SCHEMA.JOBS_BY_PROJECT
WHERE creation_time >= TIMESTAMP(CURRENT_DATE('America/Los_Angeles'), 'America/Los_Angeles')
AND job_type = 'QUERY'
GROUP BY user_email, statement_type
ORDER BY tib_billed DESC
LIMIT 20;2. Cut the bytes the heavy queries scan
Filter on the partitioning column, select only needed columns, and replace repeated full scans with a small summary table that dashboards read. This is the fix that also lowers the bill.
3. Raise the quota if the workload really grew
A Quota Administrator (roles/servicemanagement.quotaAdmin) can change Query usage per day or Query usage per day per user on the IAM & Admin > Quotas & System Limits page. Lowering takes effect within minutes; raising goes through an approval step. Remember the cap is your spend guardrail: at the US on-demand list price of $6.25 per TiB, a 10 TiB daily cap allows roughly $62.50 of query spend per day.
4. Wait for the reset, or run urgent work elsewhere
The quota resets at midnight Pacific Time. For an urgent job you can submit it from another project that can read the same tables, but its bytes are then billed to that project, which defeats the control if done routinely.
How to prevent it
- Set both a project cap and a per-user cap so one service account can't block the whole team.
- Alert on daily bytes billed per user from INFORMATION_SCHEMA.JOBS well before the cap is reached.
- Use
maximum_bytes_billedper query as a second guard: it fails a single runaway query instead of the whole project's day. - Custom quotas apply only to on-demand pricing. If the project moves to a reservation, control spend with reservation size and autoscaling limits instead.
FAQ
Am I charged for queries rejected by a custom quota?
No. The query is rejected before it processes data, and failed queries are not billed on-demand. Custom quotas exist to stop spend, so the rejection is the intended outcome.
Is the custom quota an exact spending limit?
No. Google describes custom quotas as approximate: BigQuery can occasionally run a query that exceeds the quota. Treat it as a guardrail and pair it with budget alerts.
What is the difference between QueryUsagePerDay and QueryUsagePerUserPerDay?
QueryUsagePerDay caps the whole project's combined on-demand usage; its default is 200 TiB per day. QueryUsagePerUserPerDay caps each user or service account separately and is unlimited by default. The project total can never exceed the project cap, whatever the per-user value.
Does a custom quota apply to queries that use reservations?
No. Query usage quotas apply only to the on-demand pricing model. Queries that run in an editions reservation are limited by slots, not by these quotas.
Related
SQL reference
More quotas and rate limits
All BigQuery error messages · What 50M daily events say about BigQuery failures
