AsklingDocs

Retry a failed change

What it does

Sometimes an approved change fails to reach HubSpot. The logbook row then says HubSpot refused: CODE message, and the batch result shows the row as failed. The batch result opens when you click the batch's tile. See Tiles.

  • Retry puts the change back to approved and sends it as a new attempt.
  • Retry the rest sends every row of an Approve all click that a fresh attempt can fix, in one click. It shows in the batch result when two or more rows qualify.
  • Reject closes the row: "do not do this". When trying again cannot help, Retry is not offered and Reject is the button to use.

When Retry shows

A fresh attempt can fix these errors:

  • rate_limited or a 429: HubSpot asked Askling to slow down.
  • timeout: HubSpot did not answer in time.
  • server_error or another 5xx: HubSpot failed on its own side.
  • network_error or connection_error: the connection broke or needed a reconnect.
  • connection_on_hold: HubSpot refused Askling's own app. That is a problem on Askling's side that Askling's team fixes. Retry later. See more on this message.
  • worker_crashed: the background process stopped before it sent anything.

When HubSpot was only too busy, Askling first waits and sends the change again by itself for about 15 minutes. If HubSpot stays busy, the row says HubSpot was too busy to take this change, so nothing was written. Retry sends it again.

What the worker does on a retry

The worker is the background process that writes to HubSpot.

  • It checks the kill switch and the safety checks.
  • It reads the record fresh.
  • It writes only if HubSpot still holds the old value, then reads it back.

When trying again cannot help, the row says Trying again would fail the same way. Reject it, or change the record yourself in HubSpot.

How to use it

You need first

  • Profile: Admin or Non admin.
  • A failed row whose error a fresh attempt can fix.
  • Know this: a retry writes to HubSpot like any approval. You can undo it afterwards.

Retry one failed row

  1. Click the round Logbook button at the bottom right of any page. See The logbook.
  2. Find the failed row. For an older one click Previous day or Earlier.
  3. Click Retry, or Reject to close it.

Check it worked: the row shows Applying…, then the new result. A retry moves the row to today in the logbook.

  • Previous day goes back one day. Earlier lists the older days that have decisions.

Retry many rows of one click

  1. Click the tile of the batch to open its result.
  2. Click Retry the rest.

Check it worked: the retried rows show Applying…. Rows that would fail the same way stay, with Reject.

What it does not do

  • It does not retry a failed row by itself. A failed row waits for a click. A write HubSpot was too busy for is the exception: it goes again by itself for about 15 minutes, and only then fails.
  • It does not retry a refusal. These fail the same way every time:
    • a validation error, a 403 or missing_scope
    • a record that is gone
    • a value that did not stick (verify_mismatch)
    • a safety stop
  • It does not touch a row whose result is unknown. Use Check again. See Stale and unknown results.
  • It does not retry a merge. A failed merge has no Retry. Open the pair on the Duplicates page and merge it again.
  • It does not skip any safety check. A record that became Hands off (read only) since is still not written.
  • It does not write twice. A double click queues one attempt.

Why it works this way

Busy servers, slow answers and broken connections pass, so sending the same change again is safe. A refusal does not pass, so repeating it only adds noise.

The worker reads the record again before it writes. So a retry never overwrites a change someone made in HubSpot meanwhile.

Common questions

Who can click Retry? Admins and Non admins.

Why is there no Retry on my failed row? Its error would happen again, for example HubSpot refused the value. The row offers Reject and says why.

How long does a failed row stay? Until a person clicks Retry or Reject. The nightly job expires only undecided suggestions past 30 days and ends Ignore snoozes. A failed row on an old day keeps its buttons, and Retry moves it to today.

What if HubSpot changed the record since? The worker reads the record first. If it no longer holds the old value, nothing is written and the row says Changed in HubSpot since Askling looked.

What does Reject do on a failed row? It closes the row as rejected, like Reject on a new suggestion. You can still use Change answer on it until the suggestion expires, 30 days after the run. See Change an answer.

What if Askling is paused? The retried row waits as Will run when resumed and is written after an admin resumes. See The kill switch.

Is a retry logged? Yes. The audit log shows Retry clicked (writing again) with the attempt number, then the usual write lines.

When something goes wrong

SymptomCauseWhat to do
Only a change that failed to write can be retried.The row already moved onSee more on this message
Trying again would fail the same way. Reject it, or change the record yourself in HubSpot.The error cannot be fixed by trying againClick Reject, or change the record in HubSpot. See more on this message
This record became hands off since Askling looked, so it is now read only. Change it yourself in HubSpot.The record is Read only nowChange it in HubSpot yourself. See more on this message
HubSpot was too busy to take this change, so nothing was written. Retry sends it again.HubSpot is still busyWait a few minutes, then click Retry or Retry the rest. See more on this message
HubSpot is busy. Askling sends this again in a moment.Askling waits for HubSpotNothing to do. It goes again by itself, for about 15 minutes
The row fails with a connection error againHubSpot is still disconnectedAnyone can click Retry, but only an admin can reconnect HubSpot, so ask an admin to reconnect first. See more on this message
The row stays on Applying…The worker is not runningCheck that the worker runs, then look again