Articles in this section

Use the "Error automation via integrator.io APIs" template

The "Error automation via integrator.io APIs" template, available in the Celigo Marketplace, gives you two ready-made flows for handling errors that don't require any manual data correction: one that auto-resolves matching errors, and one that auto-retries them. This article covers installing the template and configuring both flows for your own criteria. For an alternative that works from inside a custom flow's script hooks instead of an external API-driven flow, see Automate error handling with custom hooks.

Use this template when you can identify errors — by flow, step, message, or code — that are safe to resolve or retry without you reviewing each one individually. For example:

  • Auto resolve: a sync between two systems that fails due to a missing custom field, but where you've since added logic in the destination system to populate that field automatically going forward.
  • Auto retry: a sync where an order's status is briefly incorrect immediately after an event, then corrects itself within a few days — retrying later succeeds without any manual fix.

Install the template

  1. Go to Marketplace marketplace-icon.png. Under By type, select All or Templates.
  2. In the search box, enter "Error automation" to find the template.
  3. Select Preview to review its Readme and components.
  4. Select Install now.
  5. In step 1 (Integrator IO), select Configure, then either Set up new connection or Use existing connection and select an existing one, then select Done.
  6. In step 2 (Copy resources now from template zip), select Install.

    Template installation window

The template installs with two flows: Auto resolve, which retrieves open errors and marks matching ones resolved, and Auto retry, which retrieves open errors and retries matching ones.

Auto resolve and Auto retry flows

How the template flows work

Both flows share the same three-step structure:

Step Purpose
Export: Get flows Retrieves error records matching the criteria you configure. You can define multiple rules in a single export to route different errors differently.
Lookup: Get errors Retrieves additional details needed to resolve or retry the matched errors.
Import: Resolve errors (or Retry errors) Posts the resolution or retry back to integrator.io. The Auto resolve flow's import calls the /resolve API endpoint; the Auto retry flow's import calls the /retry endpoint.

Configure the Auto resolve flow

Step 1: Configure the export

  1. Open the Auto resolve flow and select the Get flows export step.

    Get flows export step

  2. Under General settings, use the defaults or adjust them as needed.
  3. Under Settings, configure the optional filter fields based on what you want to match:

    Fields provided What gets processed
    Flow ID only Every error from that flow, regardless of step or message
    Error message only Every error across all flows containing that message
    Flow step ID and error code Only errors from that specific step matching that code
    Nothing Every open error across all flows
    All fields Only errors matching every condition — the most targeted option
  4. Find the flow ID and step ID in their respective URLs — for example, in https://integrator.io/integrations/{integrationId}/flowBuilder/{flowId}, the flow ID is the segment after flowBuilder/; the step ID appears the same way further into the URL under /edit/exports/{stepId}.
  5. In Error Message or Error Code, preview the matching errors and adjust the value until the preview shows the errors you intend to automate. You can also leave both blank and filter using a hook script instead.
  6. Select Preview to confirm the matched records, then Save.

Optional operations on the export step: transform and map the error records before they move on; filter the export's output so only selected records proceed; or edit the preSavePage hook in the retryAndResolveScript to filter or reshape records before the lookup step.

Optional operations on the export step

Export transformation

Export output filter

preSavePage hook script in the retryAndResolveScript

Step 2: Configure the lookup

  1. Select the Get errors lookup step.

    Get errors lookup step

  2. Review the defaults — connection carried over from the export step, HTTP method GET, relative URI /v1/flows/{{{record._flowId}}}/{{{record._processorId}}}/errors, paging via next-page URL, records path errors, and a limit of 1,000.
  3. Select Preview to check the input, adjust if needed, then Save.

Optional operations on the lookup step: transform the retrieved data before the import step processes it; map lookup results back into the source error records; use the post response map hook to sort, group, or filter after mapping; or filter records before the import using the input filter editor.

Optional operations on the lookup step

Lookup transformation

Lookup results mapping

Post response map hook for the lookup step

Input filter for the lookup step

Step 3: Configure the import

  1. Select the import step.
  2. Leave the general and import settings at their defaults unless you have a reason to change them.
  3. Under Custom settings, set Flow ID and Step ID to the flow and step where you want the resolution posted.
  4. Select Save.

    When the flow runs, it posts to the endpoint built from the relative URI's Handlebars expression — for example, /v1/flows/{{{record._flowId}}}/{{{record._processorId}}}/resolve.

  5. Select Enable enable-flow.png, then run the flow. Check the flow step's error count in Flow Builder to confirm it's dropped. Adjust your filter criteria if it hasn't.

Configure the Auto retry flow

The steps are the same as for Auto resolve above, with one difference: the import step's relative URI calls the /retry endpoint instead of /resolve — for example, /v1/flows/{{{record._flowId}}}/{{{record._processorId}}}/retry.

Auto retry flow