Error codes 4, 17, 613, 80000 and 80004 from Meta mean a tool asked for data faster than Meta allows. Code 4 is a limit on the app making the calls, 17 and 613 are mostly limits on the ad account, and 80000 and 80004 are business use case limits counted per ad account over a rolling hour. Nothing is wrong with your data or your login. The quota refills with time, and calling again while it is spent only pushes the end of the wait further out. When the Meta connector is available, etlmcp waits these errors out and retries the sync for you.
What each code means
Each code has its own scope, and the subcode next to it narrows it down.
| Code | What ran out | Counted per |
|---|---|---|
| 4 | The app's own call allowance, or with subcode 1504022 or 1504039 the Ads Insights platform limit | App |
| 17 | The user's call allowance, or with subcode 2446079 the ad account's API score | User or ad account |
| 613 | A custom limit: with subcode 1487742, too many calls from one ad account; other subcodes cover edits, budgets and ad creation | Ad account, app or object |
| 80000 | The Ads Insights business use case, which covers reporting calls | Ad account, rolling hour |
| 80004 | The Ads Management business use case | Ad account, rolling hour |
A reporting tool mostly meets 80000, because almost every call it makes reads insights, and 17 or 613 when it sends many calls to one account in a short burst. The 613 subcodes about ad set budget changes and ad creation, like the code 17 subcode about spend limit changes, come from editing tools, not from reading reports.
Why the hourly quota runs out
Business use case quotas are counted for each ad account across a rolling one-hour window, and every endpoint in the same use case draws from the same quota. According to Meta's Graph API page, the Ads Insights allowance is a base number of calls plus 400 for each active ad, minus a small charge for each user error. The base is 600 calls an hour for an app with standard access and 190,000 for an app with advanced access. Ads Management has its own base, 300 calls an hour with standard access and 100,000 with advanced access, plus 40 calls per active ad. Meta can also throttle on processing time, not only on the number of calls.
So an account with few active ads has a small hourly quota, and a long backfill or a reporting tool that asks for many breakdowns can use it up, whatever report each request serves.
Meta's Graph API page warns that calls made while you are throttled keep raising the count and lengthen the block.
How long the block lasts
Meta reports the wait in response headers. The business use case usage header carries an estimated time to regain access, counted in minutes. For the ad account score behind code 17, the Marketing API page gives a block of 300 seconds on the development tier and 60 seconds on the full access tier once the score reaches its maximum.
What etlmcp does with a throttling code
When the Meta connector is available, etlmcp treats all five codes as a temporary failure. It takes the wait from Meta's answer: the estimated time to regain access first, then the reset time in the ad account usage header, and when neither is given, the documented block for the app's access tier, choosing the longer one when the tier is unknown. Code 368 is retried too, but etlmcp does not wait for it inside the run: it hands the run straight back to the queue for a later attempt.
etlmcp also reads the usage header on every answer Meta sends, successful ones included. When the header says the account is throttled, the next call holds off until access is back instead of calling into the block.
Short waits happen inside the run. When the waits would add up to more than one attempt may spend waiting, the attempt ends with meta is rate limiting this ad account, or meta is rate limiting requests ({…}) with Meta's code and subcode in place of the placeholder, and the run goes back to the queue. A run gets 3 attempts in all. The second waits at least 60 seconds and the third at least 300 seconds, or longer when Meta asked for a longer wait, up to 3 hours. Only when the last attempt is still throttled does the run end as failed. The Meta connector errors page lists every message, and retries covers the attempts.
What to do when runs keep ending throttled
- Count the pipelines that read the same ad account. Their insights requests draw from the same hourly quota, so one heavy pipeline can starve the others.
- Move your Meta pipelines to an hour when other tools are quiet; see the schedule.
- Split a long backfill into shorter ranges run at different times, instead of one large request.
- You do not need to start another run while one waits to retry: the retry is already queued, and the account stays blocked until Meta's quota refills anyway.
A login problem is a different error. Code 190 means the connection needs reconnecting, and waiting does not fix it; see Meta error 190 subcodes.