When the connector is available and a sync fails with snapchat cannot return one day of this account in a single response, a single day of your ad account's figures, broken down by ad, was more than Snapchat will send back in one answer, even after etlmcp had already cut the request down to that one day. The run fails and is not retried, because Snapchat would refuse the same request again. The sections below cover that message and the others: lost access, throttling and answers etlmcp could not read. For the fields the connector reads, see the Snapchat connector.
You read a failed run's message on the dashboard, with Get a run in the REST API, or with the get_run tool over MCP.
snapchat cannot return one day of this account in a single response
etlmcp asks Snapchat's stats endpoint for daily figures per ad, one date window at a time. Snapchat's Measurement page says a daily request's start and end must fall within 31 days, so etlmcp keeps each window shorter than that. The same page says a synchronous stats answer that would be too large is refused with HTTP status 400 and error code E9001, that its size grows with the number of entities, fields and time intervals, and that the same request cannot succeed when sent again.
etlmcp never retries an E9001. It splits the window in half and asks for each half, and keeps halving until a request covers one day. If Snapchat still refuses a single day, there is nothing smaller to ask for, and the run ends with this message. Each request is already as small as etlmcp can make it: it asks only for the fields it stores, leaves out ads with no figures, and pages through ads 200 at a time, the most the Measurement page allows per page.
What it means for your data: the whole run fails at the fetch stage, so no day of its range is stored or replaced, and the rows you stored before stay as they were. What you can do:
- Find the day. Start syncs by hand over shorter ranges; the ones that skip the day complete and store their days. See backfill.
- Expect routine syncs to fail while that day is inside the window they re-pull, the last 7 days. Once the day is older than that, routine syncs complete again.
- Snapchat recommends its asynchronous reports for large pulls, but etlmcp sends only synchronous stats requests, so that route is not open to you.
Snapchat needs reconnecting
The connection itself was refused. etlmcp refreshes the access token once when Snapchat answers HTTP status 401. If the fresh token is refused too (for a request about an ad account, only when the login is also refused for its own user), or Snapchat refuses the refresh itself, the run ends with Snapchat needs reconnecting (the code writes it {…} needs reconnecting). The connection and every source on it are marked as needing a reconnect, with the reason that access was revoked or has expired, and your organization's owners are emailed. It is not retried.
Snapchat's FAQ says access tokens last 3600 seconds and refresh tokens do not expire, but they stop working when the user's access is removed. This error usually follows a change to the Snapchat user who connected. Reconnect Snapchat with a user who can still read the ad accounts your pipelines use.
this ad account is no longer accessible
Snapchat answered error code E3002 or E3003 for the ad account itself, or HTTP status 403 on it, or refused it twice while the same login still worked for its user. Only this ad account is affected: the run ends with this ad account is no longer accessible, the source is marked invalid with that reason on your sources page, and the owners are emailed. Other accounts on the same connection keep syncing. See source states. Snapchat's FAQ says E3003 can mean a wrong ID, a user without access, or a deleted entity.
Snapchat's FAQ says that to read an account's reporting, the user must belong to the organization that owns it, have accepted the invitation, belong to the ad account and hold a reports role, which Business Manager calls Data Manager. Ad account members and roles are changed in Business Manager. Fix them there, then press Check again next to the source on your sources page: etlmcp lists the login's accounts again and marks the source OK if the account is listed and can be synced.
Errors etlmcp retries
These can pass, so etlmcp tries the run again: 3 attempts in all, at least 60 seconds before the second and 300 seconds before the third. While a run waits for its next attempt, the error that Get a run and get_run return reads retrying: {…}, with the platform's error in place of {…}. See retries.
snapchat is rate limiting requests: Snapchat answered HTTP status 429. Its Rate Limits page puts the limit at an average of 10 requests a second per access token and 20 per app, and does not mention a header that says how long to wait, so etlmcp uses its own waits unless an answer carries aRetry-Afterheader.snapchat API errorfollowed by a 5xx status: an error on Snapchat's side.snapchat returned an unreadable response: the answer was not readable JSON.
If one keeps coming back across days, wait for Snapchat to recover, then start a sync by hand for the missed days.
Errors that fail the run
These are not retried, because the same request would get the same answer:
snapchat API error {…}: {…}: Snapchat sent an error code etlmcp has no special handling for, or a 4xx status with no code. The HTTP status comes first, then Snapchat's code or its own text, so you can look it up in Snapchat's documentation.snapchat did not report a successful request: the answer did not say it succeeded and carried no error code.snapchat could not return every {…}: one item of an answer failed, such as one campaign. A short list is never stored as complete, so the run stops.snapchat did not report this account's time zone and currency: for the time zone or the currency, neither Snapchat nor the values saved when you added the source give one, and etlmcp needs both to set each day's boundaries and label the money.
A few other messages start snapchat returned and describe an answer in a shape etlmcp does not read, such as paging it cannot follow. etlmcp fails the run rather than store fewer rows than Snapchat holds.
Accounts you cannot pick
When you connect Snapchat, an account etlmcp cannot sync appears in the account picker with a box you cannot tick and the reason beside it. Snapchat did not report a usable time zone for this account and Snapchat did not report a currency for this account mean the account listing lacked one of them. The same reason marks an existing source invalid when Check again finds it. Check the account's settings in Snapchat, then connect again.