ETLMCPData Conveyance Works
Log in Start free
Docs

Backfills and manual runs over a date range

The rules a backfill's dates must pass: range length, your plan's history, the platform's oldest day and the source's health, with the message each one returns.

A backfill is a run you start by hand with a first and a last day. etlmcp accepts it when both days are dates such as 2026-11-30, the first day is not after the last, the last day is not in the future, the range covers at most 366 days, and the first day falls inside your plan's history. A range the platform no longer serves at all is refused; one that only starts too early is shortened. The dashboard's Backfill button, the REST API's Start a run and the MCP tool run_pipeline all go through the same checks.

The date rules

etlmcp checks the dates in this order and stops at the first one that fails. On the dashboard and the REST API each failure is a 400; in MCP the same sentence comes back as the tool's error.

Rule Message
Both days are given (dashboard form) start and end are required
Each day is a real date start must be a date like 2026-11-30 (the dashboard's wording; the REST API and MCP refuse a malformed date before this check, in their own words)
The first day is not after the last start must not be after end
The last day is today (in UTC) or earlier end must not be in the future
The range, counting both ends, is no longer than the cap a sync can cover at most 366 days
The first day is inside the plan's history the {…} plan keeps {…} days of history

For more history than the cap, split it into several runs one after the other: the backfill-in-chunks recipe shows the loop.

Your plan's history window

The first day may go back no further than today minus the days of history your plan keeps. On Free that refusal reads the Free plan keeps 30 days of history. The other plans keep:

  • Starter: 365 days
  • Team: 365 days
  • Agency: 730 days
  • Scale: 3650 days

"Today" here is the pipeline's own date: where the pipeline's timezone is still on yesterday, the window is counted from yesterday. The window also limits what etlmcp keeps. Once a day it deletes stored rows older than each organization's window (after a plan is lowered, the older rows are kept for a grace period first), so rows from before the window would not stay anyway.

The Backfill a Range card on a pipeline's page opens with From set to the oldest day of your plan's history and To set to today, both counted in UTC. Where your plan keeps more days than one run may cover, or the pipeline's timezone is behind UTC, that opening range can be refused: move From later before you press Backfill.

The platform's oldest day

Many platforms serve data only back to a certain day, and etlmcp knows that day for each connector that has one; a connector with no such limit skips this rule. When the whole range ends before it, the run is refused with a 400 that names the platform and the day, {…} only provides data from {…}.

When only the start of the range is too early, the run is accepted and its first day is moved up to the oldest day the platform serves. The run records the new first day, so Get a run shows the range that was actually pulled. Stored rows from before that day are left as they are: the run neither asks for them nor deletes them.

What a backfill does to stored rows

For the days it pulls, a run replaces everything stored for that source in one step: the old rows for those days are deleted and the new ones written in the same transaction. A backfill over days you already have can be repeated, and it picks up any figures the platform has corrected since. The pipeline then delivers to its destination as any run does.

Source health and other refusals

A source whose access was revoked or expired, or whose ad account can no longer be reached, cannot run. This is checked before the dates, and the status depends on where you start the run:

  • Dashboard: a 409 with reconnect {platform} first: its access was revoked or has expired, with the platform's name in place of {platform}, or this ad account is no longer accessible; check it again on the sources page.
  • REST API: a 400 with this pipeline's source must be reconnected first or this pipeline's source is no longer accessible.
  • MCP: the same two sentences as the REST API, returned as the tool's error.

Reconnect the source on the sources page, then start the backfill again.

Only one run per pipeline can be queued or running. On the dashboard and the REST API a second one is refused with a 409, a sync is already running for this pipeline, until the first ends; in MCP the error reads a sync is already running for this pipeline; check it with get_run.

Runs started by hand also count toward your plan's cap on runs queued or running at once across the organization; scheduled runs do not count. On Free the cap is 10, and one more is refused with {…} syncs are already queued or running: wait for one. A pipeline the plan paused when it was lowered must be switched on first; the dashboard says this pipeline was paused when the plan was lowered: switch it on first. Both refusals are 409s.

Runs without dates

On the REST API and in MCP, the dates are optional. Leave out both and the run pulls the same recent window a scheduled run would, never further back than your plan's history. Give only one and the request is refused with give both start and end, or neither for the trailing window. Both need a key with the run scope.

Related