Skip to main content

Troubleshoot the TikTok Ads connector

Beta

This feature is in Beta. To use it, a workspace admin must turn on Lakeflow Connect for TikTok Ads from the Previews page. See Manage Databricks previews.

Learn how to troubleshoot common issues with the TikTok Ads connector.

For general troubleshooting guidance that applies to all managed ingestion pipelines, see Troubleshoot managed ingestion pipelines.

Permissions or scope error​

Error message:

Output
Permission denied or scope error

Cause: The required scopes weren't selected when creating the app in TikTok Ads or when creating the Unity Catalog connection.

Solution:

  1. Confirm that you selected all the required scopes when creating the app in TikTok Ads:

    • Ad Account Management
    • Ads Management
    • Reporting

    See Configure TikTok Ads for managed ingestion.

  2. When creating the connection in Databricks, make sure that you selected all the scopes during the OAuth authorization flow.

  3. If the scopes are missing, delete and recreate the connection, making sure to select all required scopes.

No authorized advertisers found​

Error condition: TIKTOK_ADS_NO_AUTHORIZED_ADVERTISERS

Cause: The authenticated TikTok user doesn't have access to any advertiser accounts, or the app wasn't authorized for the required accounts.

Solution: In TikTok Ads Manager, grant the user access to at least one advertiser account. Then reauthorize the TikTok Ads connection and retry discovery.

Invalid or unavailable advertiser ID​

Error conditions: TIKTOK_ADS_ADVERTISER_NOT_FOUND and TIKTOK_ADS_ADVERTISER_ERROR

Cause: The advertiser ID in source_schema is incorrect, was deleted or deactivated, or isn't accessible to the authenticated user.

Solution: Select an advertiser ID returned by the connection's table discovery. If access changed, restore access in TikTok Ads Manager or update the pipeline to use an authorized advertiser.

Invalid report configuration​

Error conditions: TIKTOK_ADS_INVALID_PARAMETER, TIKTOK_ADS_INVALID_SYNC_START_DATE, TIKTOK_ADS_INVALID_LOOKBACK_WINDOW_DAYS, TIKTOK_ADS_UNSUPPORTED_REPORT_TYPE, and TIKTOK_ADS_EMPTY_CUSTOM_REPORT_FIELD

Cause: A report option is malformed or unsupported. Common causes include an invalid dimension, metric, data level, report type, start date, or lookback window.

Solution: Correct the option named in the error. See Custom reports and Report date options.

TikTok API rate limit exceeded​

Error condition: TIKTOK_ADS_RATE_LIMIT_EXCEEDED

Cause: The connection exceeded a TikTok API request quota. The connector retries short-term rate limits, but the update fails if the retry budget or daily quota is exhausted.

Solution: Wait for the TikTok quota to reset, reduce overlapping pipeline updates for the same account, and rerun the pipeline.

Advertiser timezone unavailable​

Error condition: TIKTOK_ADS_ADVERTISER_TIME_ZONE_UNAVAILABLE

Cause: TikTok didn't return a valid fixed GMT offset for the advertiser. The connector doesn't fall back to UTC because that could assign report data to the wrong advertiser-local date.

Solution: Verify that the advertiser account is active and has a valid timezone in TikTok Ads Manager. If the account configuration is valid, contact support and include the advertiser ID and TikTok request ID from the error.

Report pagination is inconsistent​

Error condition: TIKTOK_ADS_REPORT_WINDOW_INCONSISTENT

Cause: TikTok returned malformed pagination metadata or changed the reported page count while the connector was reading the report.

Solution: Rerun the pipeline. If the error repeats, contact support and include the table name, advertiser ID, and TikTok request ID from the error.