Locoia
  • Overview
  • Account and User Settings
    • User types
    • Adding Users
    • Teams
    • Access Permissions
    • 2 Factor Authentication 2FA
    • Versioning and Snapshots
    • Activity Log
  • Reset your Password
  • Invoices and Payments
  • Automation
    • Flow Builder
      • Flow Building Best Practices
      • Jinja Template Language
        • Jinja: (Custom) variables, wildcards and functions
        • Magic Code Samples
      • Connectors & APIs
        • Titles and References
        • Referencing data of objects, lists, arrays - how to pass data dynamically
        • Accessing Objects with JSONPath
        • Merging nested JSON objects
        • Parsing JSONs from String
        • Response Headers & Status Codes
        • Custom Data Fields
        • Wildcard API calls and actions
        • Response cleaning
      • Text Strings, Date & Time, Numbers and Currencies
        • Text and Strings
        • Dates & Time
        • Numbers (Thousand Separators, Currencies)
      • Email-formatting
      • Code Fields
      • Running single Flow steps
      • Flow run data retention, logging, and error notifications
      • Advanced View
      • Dynamic Title
      • Custom Error Handling
      • Error Handling Flows
      • Automatic Pagination
    • Flow Debugger
      • Automatic Retrying
      • Run Flows again
      • Troubleshooting Flows
    • Community Library
  • Connectors & Helpers
    • Connectors
      • Monday.com
      • ActiveCampaign
      • Aircall
      • Allthings
      • Amplitude
      • Animus
      • Assetti
      • Awork
      • AWS RDS Database - How to connect
      • bubble.io
      • Casavi
      • Chargebee
      • CleverReach
      • comgy
      • commercetools
      • Everreal
      • Exact Online
      • Facebook Marketing
      • Fahrländer Partner
      • FastBill
      • FILESTAGE.io
      • Freshdesk
      • Freshsales
      • Google Ads
      • Google Ads Lead Form
      • Google Analytics
      • Google Chat
      • Google Drive
      • Google Sheets
      • Gmail
      • HubSpot
      • Heyflow
      • iDWELL
      • ImmobilienScout24
      • Instagram Ads
      • Intercom
      • klaviyo
      • Kiwi Opening Doors
      • Klenty
      • Klipfolio
      • Kolibri CRM
      • konfipay
      • KUGU
      • Shopify
      • S3 AWS
      • SQS AWS
      • Lambda AWS
      • Learnster
      • lexoffice
      • LineMetrics
      • Linkedin
      • Locoia
      • Notion
      • MailGun
      • Makula
      • Microsoft Dynamics 365
      • Microsoft OneDrive
      • MixPanel
      • MongoDB
      • Odoo
      • OnFleet
      • OnOffice
      • Oracle NetSuite
      • Outbrain
      • Quickbooks
      • Trello
      • PandaDoc
      • Personio
      • Pinterest Ads
      • Pipedrive
      • Plentific
      • PriceHubble
      • relay
      • REALCUBE
      • Sage ERP
      • Salesforce
      • SAP
      • Scoro
      • Seafile
      • sevDesk
      • SharePoint
      • SharpSpring
      • Slack
      • Snapchat Marketing
      • Snowflake
      • Teamleader Focus
      • Teamwork.com
      • Tableau
      • TikTok
      • TinQwise
      • The Trade Desk
      • Twitter
      • Typeform
      • WordPress
      • Xero
      • Youtube
      • Zendesk
      • Zoho CRM
      • Zoom
    • Helpers
      • Scheduler
      • Webhook
      • Dict Helper
      • Spreadsheet Helper
      • REST Helper
      • Boolean Helper
      • Multi Case Helper
      • Looper
      • FTP Helper
      • CSV Helper
      • XLSX Helper
      • Mail Sender
      • Flow Trigger
      • File Storage Helper
      • Terminate Helper
      • Delay Helper
      • SQL Connector
      • PDF Helper
      • Zip Helper
      • Data Warehouse Helper
      • XML Helper
      • Form Helper
      • Arrow
      • Error Arrow
    • Authentication Types Available
      • Setting up authentication
      • OAuth1
      • OAuth2
      • Refreshable token
      • AWS Signature
      • Basic Auth and Other Simple Authentication Methods
      • How are API versioning and API updates handeled?
      • Custom OAuth2 clients (apps)
    • Building Connectors
      • Base Connector Setup
        • Connector Auth Validation
        • GraphQL APIs
        • Rendering with User Input
      • Building Connector Actions
        • Actions Examples
      • Search Automation
      • Pagination Automation
      • Uploading Files in Actions
      • Working with SOAP APIs
    • Super Actions
    • Webhook Trigger for Connectors
    • Data Mapping and Env Variables
  • Embed - White Label Portal
    • Embed Overview
      • 1. Embed Flow
        • 1.1 Creating Embed Flows
        • 1.2 Updating Embed Flows
        • 1.3 Embed Error Handling
        • 1.4 Setting up Callbacks for Integration activation/deactivation
        • 1.5 Setting up Remote search
        • 1.6 Setting up End User logs
      • 2. Configure Embed
        • 2.1 Embed Integration via SSO
        • 2.2 Proprietary connector setup
        • 2.3 Sharing level
        • 2.4 Consent screen
        • 2.5 Account Secrets
        • 2.7 Further settings
      • 3. Integrate Embed
        • 3.1 iframe vs native embed
        • 3.2 Customizing CSS
        • 3.3 Events emitted from iframe to parent window
      • 4. Embed for End User
        • 4.1 Embed Remote Search
        • 4.2 Embed End User Logs
      • 5. Test Embed Configuration
        • Testing example
      • 6. Embed Integrations and Connector Auths
    • Embed FAQs
  • Data and Dashboards
    • Dashboards & Insights
      • Introduction to Dashboards
      • Introduction to Insights
      • Introduction to Data Sources
      • Dashboard Filters
      • Insight Marketplace - Using Pre-Built Insights
      • Writing SQL Queries
      • Useful SQL Examples
      • Charts
        • Line Chart
        • Bar and Horizontal Bar Chart
        • Stat Card
        • Pie Chart
        • Gauge Chart
        • Donut Chart
        • Stacked Bar, Horizontal Stacked Bar, and Normalized Horizontal Stacked Bar
        • Multiple Line Chart
        • Pivot Table
        • Map Chart
  • Best Practice Guides
    • Integration Best Practices
    • Integration Check List
    • CSV Files in Excel
    • Multi-Tenant Flows
    • On-Premise Integrations
    • Database Connection Setup
    • Data and General Security
    • Using Tags
    • FAQ
  • API
    • Locoia API Authentication - Personal Access Token
    • Create Connector Authentication
  • Contact us
  • Status of Service
  • Data Privacy
  • Imprint
Powered by GitBook
On this page
  • Step specific trigger setting
  • Available variables in the Error Handling Flow

Was this helpful?

  1. Automation
  2. Flow Builder

Error Handling Flows

A custom Flow to handle all errors or log errors and send error logs to a destination of your choosing, e.g. DataDog, Slack, etc.

PreviousCustom Error HandlingNextAutomatic Pagination

Last updated 8 months ago

Was this helpful?

This is the best way to log or send errors of all Flows to a destination of your choosing, e.g. DataDog or Splunk.

Error Handling Flows are triggered each time an error occurs in any Flow that contains the Error Handling Flow. It can use variables to reference to the error and the Flow itself. Thus error logging is defined once and then applied for all the Flows you chose.

An error handling Flow can be any Flow that handles dynamic data from an error. It could for example send the data to a monitoring service such as , so that you have all your errors accessible there.

In order to trigger it each time an error occurs, the Flow needs to be added in the Error Handling Flow field of the Flow which should trigger it - accessible via the EDIT button on the Flow builder:

Step specific trigger setting

Depending on the Flow and Error Handling Flow logic it might not make sense to trigger the Error Handling Flow for every Flow Step that might have an error.

For these Steps, triggering the Error Handling Flow can be turned off (default is on):

This setting is only displayed if an Error Handling Flow is selected for the Flow.

Available variables in the Error Handling Flow

You can use any of the following variables in the error handling Flow in order to access all details related to the error.

  • error_flow_id - ID of the Flow having the error

  • error_flow_url - URL of the Flow in the UI

  • error_flow_name - Name of the Flow

  • error_debugging_url - URL of the Flow debugging screen in the UI

  • error_flow_run_id - ID of the Flow Run

  • error_step_name - Name of the Flow Run Step

  • error_step_id - ID of the Flow Run Step

  • error_step_input - Input of the Flow Run Step (as shown in Flow Debugger)

  • error_step_output - Output of the Flow Run Step (as shown in Flow Debugger); this is basically the error message

  • error_step_request_url - The request URL, as shown in the Flow Debugger

  • error_step_response_code - The response code, as shown in the Flow Debugger

  • error_error_date - Time-stamp of the error (end date of step, as shown in the Flow Debugger)

  • error_connector_name - Name of the connector where the error happened

  • error_connector_id - ID of the connector where the error happened

{
  "error_flow_id": "{{ error_flow_id }}",
  "error_flow_url": "{{ error_flow_url }}",
  "error_flow_name": "{{ error_flow_name }}",
  "error_debugging_url": "{{ error_debugging_url }}",
  "error_flow_run_id": "{{ error_flow_run_id }}",
  "error_step_name": "{{ error_step_name }}",
  "error_step_id": "{{ error_step_id }}",
  "error_step_input": "{{ error_step_input }}",
  "error_step_output": "{{ error_step_output }}",
  "error_step_request_url": "{{ error_step_request_url }}",
  "error_step_response_code": "{{ error_step_response_code }}",
  "error_error_date": "{{ error_error_date }}",
  "error_connector_name": "{{ error_connector_name }}",
  "error_connector_id": "{{ error_connector_id }}"
}

Additionally, you can make the outputs of the Flow steps available in the Error Handling Flow.

If a Flow has an Error Handling Flow each step of the Flow has a setting Accessible in Error Handling Flow (OFF by default).

When the setting is ON the output of the Step will be available in the Error Handling Flow.

If the toggle is ON for the Looper Helper only the output of the whole Looper will be available in the Error Handling Flow (not the outputs of the single Looper Steps).

Error Handling Flows will be triggered each time a Flow Step (individual node) has the status error(expect for steps with ), even if the Flow Run status is success. on the other hand will only be sent when the Flow Run status for the whole run is error as well.

Datadog
this setting
Error notifications