Runs
What each run of a stream did, what a pull landed and a push sent, why a record was refused or held, and what happens when runs fail.
Open a stream to see its runs. Runs lists the last thirty, newest first. Each says in a sentence what it did, such as "Landed 1,204 rows, and 31 more had not changed." for a pull or "Sent 31 records. Salesforce accepted every one." for a push, with how it started (on its schedule, after a sync or a landing, by a stream graph, by Run now, by Sam or by an agent), when, and how long it took. Open a run for the rest: a pull's requests, or a push's API calls and the records it couldn't deliver.
What a run's status means
| Status | What it means |
|---|---|
| succeeded | Everything that changed arrived. A push that found nothing changed succeeds without calling Salesforce. |
| partial | Most of it moved, but some records couldn't: a pull's records with no key, or records Salesforce refused, or rows a push couldn't send as they stood. A push is partial too when its destination's daily limit stopped it part way, and its sentence says so. |
| skipped | It moved nothing, for a reason that is nobody's fault: the workspace is paused for its budget, a credential, a database, a Bite store or an org needs connecting again, the stream was paused after the run was queued, the warehouse is at its storage ceiling, your Salesforce org's API allowance was too low, a push's destination or a pull's source asked Sanda to wait (its daily limit or allowance was spent, say), Sam or an agent started a pull sooner than its source allows, a pull's source or a push's destination isn't switched on for this deployment any more, or other streams' runs kept it waiting too long for its turn. It doesn't count as a failure, and isn't charged. |
| failed | It couldn't finish. The reason is one sentence, and it counts toward the stream pausing itself. It isn't charged. |
| cancelled | It was cut off before it finished. A pull carries on from the last page it landed; a push sends what Salesforce didn't confirm on the next run. |
| queued, running, waiting | Under way. queued is also a run waiting for its turn (see runs at once), and waiting is a bulk job Salesforce is still working through, or a destination that answers later still checking what a push sent it. The page updates itself until the run ends. |
Runs at once
For now, a workspace's streams run one at a time, in and out together. A run that starts while another stream's run is under way stays queued and waits for its turn, looking again every 30 seconds. When the other run ends, it goes ahead.
A run still waiting after 20 minutes is skipped, and its sentence says another stream's run took the whole wait. Nothing was read or sent, and the next run carries on from where the last one got to. Most runs take seconds, so a wait is usually short. If runs are often skipped this way, look for a long one (a first load, or Load everything again on a large table) and give the busiest streams slower schedules.
What a pull's run shows
While a pull runs, its sentence counts up as it reads, such as "Reading the database: 24,000 rows, 2.1 MB so far." for a Postgres stream, "Reading Bite" for a Bite stream and "Reading the API" for any other. The same rows and data show on the stream's row on Overview and on Pull, and stay there once the run ends.
- Its counts: rows read, data read, and pages or requests, written about once a second while it runs. When the run ends they are replaced by what the warehouse recorded, with rows landed (new or changed) and unchanged. Rows landed are the rows the run bills.
- Its requests, in a window that scrolls to each new line as it arrives while the run is going: the time, the method, the host and path, the answer's status, its size and how long it took. Scroll up to read an earlier line and the window stays where you are; Newest takes you back to the end. Never the address's query or any header, so nothing in the log is a credential. A Postgres stream's run lists each page of rows it read instead, as
SELECT sales.orders on db.example.com, marked read or failed. A run keeps its newest 200 lines. - Values that didn't fit the column their field became, and records with no key, which didn't land.
A run that hits the app's rate limit waits as the app asks, then carries on. When the wait is long, the run gives the rest to the next one.
How a push sends changes
Up to 2,000 changed records go in requests of up to 200, and each record's answer is recorded as it comes back. More than that go as one bulk job, which Salesforce works through in its own time while the run shows waiting. Either way, a value counts as sent only once Salesforce accepts it.
Salesforce takes every changed record in the run that finds it. Another destination may take fewer in one run: no more than its own limit for a run, or as many as it can take in 7 minutes of sending. What a run leaves is counted as left for a later run, not as failed, and the next run carries on with it, the oldest first where records carry a time. Xero manual journals go newest first, so a period your books have locked never keeps an open one waiting.
What a push's run counts
Under each run, a line counts what it did: rows read, records sent, accepted, created, refused by the destination, not sendable, unchanged and held, saying only the counts that aren't zero. A push to a destination with rules of its own (see what counts as a change) can also count:
- too old to send: records older than the destination takes. Not a refusal, and not sent.
- left for a later run: records too new for the destination, timed in the future, or past what one run sends. A later run sends them.
- withdrawn: records the destination held that have nothing left to send, such as a journal whose lines all came to zero, or one whose rows have left the push. Sanda withdraws them there rather than leaving them standing. A record the push couldn't send as it stood, such as a journal that doesn't balance, is never withdrawn: it is still one of the push's records, and it is sent again once it can be.
A run's note, under its counts, says anything else it needs you to know, such as how many details were left out of the records it sent because they couldn't be used.
Records a push couldn't deliver
There are two kinds, and an open run lists both with the record each was for.
- Rows Sanda couldn't send as they stand. A value that doesn't fit its field (text longer than the field holds, a word in a checkbox, a day that doesn't exist), a value that isn't an Id of the object, or several rows that match one record. These never reach Salesforce.
- Records Salesforce refused. Salesforce's own message comes first, because it names your validation rule or field. Sanda adds a hint for the common refusals, such as a field the Salesforce user can't edit or a record that has been deleted.
A run keeps up to 200 of them, which is enough to see the pattern. Its counts say how many there were in all.
The preview lists the first kind before anything is sent. See preview and run.
A destination that answers for a whole request at once, rather than record by record, may say only how many it refused and why. The run then lists one line for each reason, with how many records it covered beside it, whether the destination took the rest of the request or refused all of it. A warning a destination gave about records it accepted is listed too, marked warning, and doesn't count as refused.
A refusal about the push rather than one record, such as a setting the destination no longer has or a permission your account lost there, fails the run, in one sentence that says why. Nothing is held for it, because no record was at fault.
Held records
A record Salesforce refuses 3 runs in a row, for the same value, is held: Sanda stops sending it until its value changes. A validation rule that refuses a number refuses it on every run, and sending it again spends your API allowance to learn nothing new. A changed value is a new question, so it is sent.
A refusal about the moment rather than the value, such as Salesforce saving the same record for someone else at that instant, doesn't count toward holding a record. It is sent again on the next run.
For a destination other than Salesforce, saving a change to where the push writes or what it sends also releases every held record, so the next run tries them again. See change a push.
Send everything again
Send everything again, on a push, sends every record it reads, including the ones Salesforce already has, and releases held records. Use it when values in Salesforce were changed by hand and you want Sanda's back, or once you have fixed whatever made Salesforce refuse a record. It costs about one API call for every 200 records.
A destination that gets each record once is never sent a record it has accepted, so its push has a button that tries its held records again instead, named for what it receives (such as Try held conversions again), shown only while any are held. It sends the held records once more, as they stand now.
Load everything again, on a pull, makes the next run read every record from the start. See load everything again.
Your Salesforce API allowance
Your org's daily API allowance is shared with every other integration and with your own users, so a push is careful with it.
- A run with nothing to send makes no call at all. Not even to sign in.
- A run with something to send reads the allowance first. If sending would leave less than 10% of it, and never less than 500 calls, the run sends nothing, says how many calls were left, and is skipped. The next run carries on.
- Most runs are cheap. One call to read the allowance, then one for every 200 changed records. A bulk job costs a handful of calls whatever its size.
On Data · Streams · Push, the Connected orgs window shows how much of each org's allowance was used at the last reading.
When runs fail
A failed run emails owners and admins, at most once a day for each stream, when When a scheduled run fails, or pauses itself after failing repeatedly is ticked under Settings · Plan & budget · Budget & alerts. See budgets and alerts.
After as many failed runs in a row as its Pause itself after says, a stream pauses itself and is marked suspended. Fix the cause, then press Resume. A skipped run never counts, and neither does a failure caused by a credential or an org needing to be connected again.
When a pull's connector is the cause (the app changed its API, say), press Ask Sam to fix it. See when it stops working.
Pause, resume and delete
- Pause stops the stream's schedule and its runs after a landing. Run now still works.
- Resume turns it back on, starts its schedule from now rather than catching up on what it missed, and forgets the failures that paused it.
- Delete pull or Delete push, at the foot of the page, removes it. A push changes nothing in Salesforce: the values it wrote stay where they are. A pull's tables stay in your warehouse, with everything it landed. The stream graphs a pull starts go with it, and their task and pushes, which keep no schedule of their own, then run only by hand until you give them one.
If your edition changes
A workspace keeps every stream when it moves to an edition with fewer. The oldest in each direction keep running, up to the new edition's count. The others keep their definitions, show not running, and say why. On Basic, none runs and the page shows what the next edition adds. Moving back up is immediate. See editions.
Something unclear or out of date? Tell us, and we will fix the page.