Contents

Cancel

Recommended Articles

  1. unify-apps

    Indexing

    Unify AI

    Transform raw content into searchable knowledge through AI-powered indexing and vector embeddings

  2. unify-apps

    JobNimbus

    Unify Integrations

    Integrate your application with JobNimbus to manage leads, track jobs, and streamline your workflow processes efficiently

  3. unify-apps

    IMAP

    Unify Integrations

    Integrate your app with IMAP to enable seamless email synchronization, real-time access, and enhanced communication workflows.

  4. unify-apps

    Preview Your Work

    Unify Automations

    Effortlessly review & monitor your automation’s performance

  5. unify-apps

    QuickBooks

    Unify Integrations

    Integrate your app with QuickBooks to streamline accounting, automate invoicing, and manage finances effortlessly

  6. unify-apps

    FTP/FTPS

    Unify Integrations

    Connect your app with FTP/FTPS to automate secure file transfers and streamline data exchange across systems.

  7. unify-apps

    Filters

    Unify Applications

    Enable users to refine, search, and sort data effortlessly across dashboards and datasets

  8. unify-apps

    Insided

    Unify Integrations

    Integrate your app with Insided to enhance customer engagement, streamline community management, and drive self-service support.

  9. unify-apps

    Facebook Ads

    Unify Integrations

    Connect your app with Facebook Ads to automate campaign management, optimize ad performance, and track marketing success.

  10. unify-apps

    Gainsight

    Unify Integrations

    Integrate your app with Gainsight to enhance customer success, automate engagement workflows, and drive retention

  11. unify-apps

    Livestorm

    Unify Integrations

    Integrate your app with Livestorm to streamline webinar hosting, automate event management, and enhance audience engagement.

  12. unify-apps

    Snowflake

    Unify Automations

    Connect to Snowflake for fast, scalable cloud data warehousing and analytics

  13. unify-apps

    Cognito Forms

    Unify Integrations

    Integrate your app with Cognito Forms to create custom forms, automate data collection, and streamline workflows

  14. unify-apps

    Button

    Unify Applications

    Create interactive elements with ease using buttons

  15. unify-apps

    BambooHR

    Unify Automations

    Integrate your app with BambooHR to streamline HR management, automate employee data processing, and enhance onboarding workflows

  16. unify-apps

    Build your first automation

    Unify Automations

    Learn how to build your automation step by step

  17. unify-apps

    User Management

    Unify Applications

    Efficiently manage user roles and permissions

  18. unify-apps

    Microsoft Teams

    Unify Automations

    Connect your app with Microsoft Teams to enhance communication, automate workflows, and foster collaboration across your organization

#
Unify Automations
Logo
Retry on Error

Retry on Error

Logo

6 mins READ

Overview

The Retry on Error is an error-handling mechanism that allows nodes within your automation to automatically retry in case of node level failures.

This reduces the need for manual intervention and improving the overall success rate of your automations.

Image
Image

Use Cases

  1. API Rate Limit Handling

    • Scenario: An automation frequently hits API rate limits when fetching data.

    • Solution: Implement retry with exponential backoff to automatically handle rate limit errors and resume operation after appropriate delays.

  2. Network Instability Management

    • Scenario: Automations operating in environments with unreliable network connections often fail due to timeout errors.

    • Solution: Configure retries with appropriate initial and maximum delays to overcome temporary network issues.

Detailed Features Breakdown

  1. Retry Enable/Disable: Users can independently enable or disable the retry functionality for each node.

    "This granular control allows for optimised error-handling strategies across different parts of a automation."

  2. Number of Retry Attempts: Specify how often the system should attempt to retry the operation if an error occurs.

    "This helps prevent infinite loops while still providing ample opportunity for recovery."

  3. Initial Delay: Set the initial wait time before the first retry attempt, specified in milliseconds.

    "This delay can help in scenarios where errors might be caused by temporary network issues or resource unavailability."

  4. Maximum Delay: Define the maximum wait time between retries, specified in milliseconds.

    "This ensures the delay between retries is relatively short, even with exponential backoff."

  5. Backoff Factor: Implement an exponential backoff strategy by setting a backoff factor.

    "This progressively increases the delay between retry attempts, which can be crucial for avoiding overload on external systems or APIs."

  6. Error Handling Options: Choose how the automation should proceed if all retry attempts fail. Options include stopping the automation, continuing to the next step or following a dedicated error path.

How to configure?

  1. Access Node Settings : In your automation, select the node you want to configure for retry on error. In the node's settings panel, enable the Retry on Error checkbox.

  2. Set the Number of Retries : Enter the desired number of retry attempts (e.g., 3, 5, 10).

  3. Configure Initial Delay : Enter the wait time in milliseconds before the first retry (e.g., enter 1000 for 1 second).

  4. Set Maximum Delay: Enter the maximum allowable delay between retries in milliseconds.

  5. Define Backoff Factor: In the Backoff Factor field, enter a value to determine the exponential increase in delay times.
    For example, a factor of 2 with an initial delay of 1000ms would result in delays of 1000ms, 2000ms, 4000ms, etc.

    Image
    Image
  6. Configure Conditional Retries (Optional) : Use the condition builder to specify scenarios for retry attempts.
    Click Add Condition or Add Condition Group to create complex retry logic.

  7. Set Final Error Handling: In the 'In case step error occurs' dropdown, select the desired behaviour after all retries are exhausted.
    Common options include Stop automation, Continue automation or Follow an error path.

    • Stop Automation will automatically stop the automation and fail the execution in case of an error.

    • Continue automation will continue the execution even in case of any error.

    • Follow error path will allow defining a separate error branch to handle the flow execution.

      Image
      Image

FAQs

Will enabling retries significantly impact the performance of my automation?

While retries can increase the overall execution time of a automation in error scenarios, they generally improve reliability without significant performance overhead when errors don't occur.

How do I determine the optimal values for initial delay, maximum delay, and backoff factor?

These values depend on your specific use case. For API interactions, consult the API documentation for recommended retry strategies. For other scenarios, start with conservative values and adjust based on observed performance and error patterns.

What happens if an error occurs during a retry attempt?

Each retry attempt is treated as a new execution of the node. If an error occurs during a retry, the system will move on to the next retry attempt until the specified number of retries is exhausted.

Can retries be used in conjunction with other error-handling mechanisms in UnifyApps?

Yes, retries can be part of a broader error-handling strategy. For comprehensive automation resilience, you can combine them with error logging, notifications, or custom error handling flows.