ETLMCPData Conveyance Works
Log in Start free
Docs

Meta connector errors

What each Meta error code means for your sync, which ones etlmcp retries by itself, and which need you to reconnect Meta or fix access.

Coming This connector is coming.

When the Meta connector is available, every error Meta returns is sorted by its error code into one of four groups. A dead login (codes 190 and 102) stops the run and marks your Meta connection as needing a reconnect. Throttling (codes 4, 17, 613, 80000 and 80004) and a temporary block (code 368) are waited out and retried. A permission error on one ad account marks only that source as no longer accessible, and an app-level restriction or a day with too much data fails the run, because sending the same request again cannot help.

The label in parentheses in a message is the code Meta sent, written meta error <code>, with /<subcode> added when Meta sent a subcode. Look it up in Meta's own error tables. For the fields the connector reads, see the Meta connector.

Expired or revoked access: codes 190 and 102

Meta's Graph API error guide says code 190 means the access token has expired, and code 102 without a subcode means the login or token has expired, been revoked or is otherwise invalid; for both, the fix is a new token. The connector raises meta access has expired or was revoked ({…}); reconnect Meta for either code, whatever the subcode. The run is not retried. It fails with Meta needs reconnecting (the code writes it as {…} needs reconnecting), your Meta connection is marked "Needs reconnect" with the reason that access was revoked or has expired, and your organization's owners are told.

The same happens when a permissions error turns out to affect the whole login: the connector checks whether the login still grants ads_read, and if it no longer does, the grant is treated as dead rather than the one account.

What to do: reconnect Meta from the sources page. Meta's error guide lists an expired token and a changed password among the reasons a login stops working; see expiring connections.

Throttling: codes 4, 17, 613, 80000 and 80004

Meta's rate-limiting page lists these as its throttling codes: 4 is the app-level limit, 17 and 613 are ad account limits, and 80000 and 80004 are business use case limits on the ad account. The connector raises meta is rate limiting requests ({…}) and waits before trying again, inside the same run while the total wait stays within what a run may spend waiting. It takes the wait from Meta's answer when it can: first the estimated time to regain access in the business use case usage header, then the ad account usage header's reset time. When neither is given, it waits the block Meta documents for the access tier: 300 seconds on the Limited (development) tier and 60 seconds on the Standard (full) tier. When the tier is not given, it waits the longer of the two.

The connector also reads the usage header on every answer, errors included. If Meta reports the account as throttled, the next call waits until access is back. If that wait is longer than a run will sit in place, the run stops with meta is rate limiting this ad account and goes back to the queue.

A throttled run is retried like any other temporary failure. It gets 3 attempts in all, waiting at least 60 seconds before the second and 300 seconds before the third, or longer when Meta asked for a longer wait, up to 3 hours. While it waits, the run's error reads retrying: {…}, with the message in place of the placeholder. See retries.

What to do: usually nothing. If runs keep ending on throttling, spread your syncs out with the schedule.

Temporary block: code 368

Meta's Graph API error guide describes code 368 as a temporary block for policy violations. The connector treats it as a block that has no stated end. It raises meta has temporarily blocked requests ({…}) and asks for a wait longer than any run waits in place, so the run goes back to the queue and is tried again later, within the retry limits above. If the last attempt still meets the block, the run fails with that message.

What to do: check the ad account and the business in Meta's own tools for a policy notice before you start another sync.

Restricted app: code 200 with subcodes 5258001 to 5258007 and 5258009

Meta's Marketing API error codes table lists these subcodes as API access being disrupted, blocked or deactivated for the app as a whole, for example until a Data Use Checkup is done. Subcode 5258008 is not on that list, and the connector does not treat it as an app block. The connector raises meta has restricted this app ({…}) and does not retry. The block is on etlmcp's Meta app, not on your account, so reconnecting does not clear it.

No access to an ad account: codes 10 and 200 to 299

Meta uses code 10 and codes 200 to 299 for a permission that is missing or was removed. The connector also counts the insights permission error, code 100 with subcode 3191001. It raises meta refused access to this ad account ({…}), then checks the login and lists the ad accounts it can still see. If the login itself is fine, only this source is marked "Invalid" with the reason this ad account is no longer accessible, the run fails with that message, and your organization's owners are told. The run is not retried. Your Meta connection stays as it is.

What to do: in Meta Business Manager, give the person who connected Meta access to the ad account again, then check the source.

Too much data for one day

Meta's insights best-practices page says a request can be refused when it would return too many rows or need too many data points, and it suggests asking for a shorter date range. The connector does this by itself: it splits a window that is too large, or that keeps timing out, into halves, down to a single day. For one day that is refused, it asks again in smaller pages; for one day that times out, it asks for an asynchronous report of that day instead. When even one day is over Meta's limit, the run fails without a retry with this ad account has more ad data on {…} than Meta returns in one report, naming the date. If the asynchronous report never finishes, the run ends with meta could not finish the report for this ad account and is retried.

What to do: do not start the same sync again, because the identical request cannot succeed. The message names the day that is over the limit.

Related

Sources

  1. Marketing API Rate Limiting — developers.facebook.com, checked
  2. Handle Errors - Graph API — developers.facebook.com, checked
  3. Marketing API error codes — developers.facebook.com, checked
  4. Limits and Best Practices — developers.facebook.com, checked