Page Summary
-
Error messages when querying Ads Data Hub data can be found in the UI validation box, in the job details for failed jobs, or retrieved using the Ads Data Hub API.
-
Common errors include exceeding memory resources, internal BigQuery errors, issues with dataset location or access, privacy check failures, system errors, exceeding user set limits, missing user consent for first-party data, and combining tables from separate Google services.
-
Troubleshooting steps vary depending on the specific error, and often involve adjusting query complexity, data range, data location, or ensuring proper permissions and consent.
-
If you encounter an error not listed or suggested steps don't resolve the issue, contact Ads Data Hub support for assistance.
This page describes error messages you might encounter when querying data with Ads Data Hub, and provides troubleshooting guidance.
Error messages can be found in the following locations:
- While editing a query in the Ads Data Hub UI, error messages will appear in the validation
box above the query text. You can expand the error text by clicking on Show
validation.
- After running a query that fails to complete, the Details field specific to the job will
contain an error message in the Error field. A list of your recent jobs can be found by
clicking on Jobsin the Ads Data Hub UI.
- You can retrieve error messages using the Ads Data Hub API, using the
operationsresource.
This table does not include all possible error messages. If you don't see the relevant error here, or the suggested steps don't resolve the issue, contact support .
- Avoid reaggregation .
- Use a smaller data date range.
- Break up your query into multiple, smaller queries. Then, combine the outputs in BigQuery. Alternatively, try using temporary tables to split the query up.
- Ensure that the larger table is on the left side of any
JOIN. - Review Ads Data Hub's best practices .
- Review additional troubleshooting in the BigQuery error messages article .
Error code: Internal
- A temporary issue or a timeout
- Try running your query again.
- When using
OFFSET()orORDINAL(), if the index is out of range
- Remove
OFFSET()orORDINAL(), or rewrite, usingSAFE_OFFSET()orSAFE_ORDINAL()instead. ( ref .)
- When there is a data overflow caused by re-aggregations.
- Avoid re-aggregation in query.
- Avoid joining unaggregated to aggregated and then aggregating once more.
- When the result has an array which contains a
NULLelement
- Review BigQuery rules
concerning
NULLelements in arrays.
<myproject:mydataset>
was not found in location <regioncode>
.
- Re-execute the job, pointing to a dataset that is in the same region as your Ads Data Hub instance.
- Copy or recreate the data in a dataset that is in the same region as your Ads Data Hub instance.
- For Ads Data Hub instances in the US or EU, specify the multi-region location
USorEU; specifying a specific region, such asus-east1oreurope-west1will cause jobs to fail.
- Have someone in your organization with the proper credentials in BigQuery grant you permission to view the table.
- Re-execute the query, specifying an output table for which you have permission to view in BigQuery.
Error code: 0400
query results are insufficiently aggregated or they are too similar to previous results.
- Ensure that each result row meets the minimum required user count (50 users in most cases; 10 users when only clicks and conversions are accessed).
- Use sandbox data when testing queries.
- Review Ads Data Hub's best practices .
Error code: Internal
- Querying a first-party table that is not in same region as your Ads Data Hub instance
- Copy first-party data to a dataset that is in the same region as your Ads Data Hub instance.
- Timestamp overflow
- Use
TIMESTAMP_MICROS()to convert time fields (e.g.,query_id.time_usec) from microseconds to a timestamp.
- Querying data hosted in Google Drive storage
- Host the data in Google Cloud storage.
- Billing has not been enabled for the project
- Add a billing account for the project in Google Cloud Console. ( Learn more .) Should you have any questions about that task contact the BigQuery support team or see this BigQuery Help Center article for more assistance with billing issues.
<number>
user sets, which exceeds the 100000 limit
- Reduce the complexity of the query.
- Reduce the number of
JOINs in the query, particularly for user-level Ads Data Hub tables. - Try querying over a shorter date range.
- Break up the query into multiple, smaller queries.
- Obtain and acknowledge user consent .
- Remove the references to the first-party data tables.
- Limitng each query to a single Google service
- Using
CREATE TABLEstatements withOPTIONS(privacy_checked_export=true).


