Hub
Pricing About
WorkflowWorkflow

250425_Retry Database Connection

DB ConnectorRetryTry CatchWorkflow SnippetOnboarding
+1
actionandi profile image
Draft Latest edits on 
May 16, 2025 4:17 AM
Drag & drop
Like
Download workflow
Workflow preview
Retry Database Connection

Retry Database Connection

This Workflow Snippet shows how to try connecting to a database multiple times using a try catch block and a loop. The loop stops either:
 - when the retry count reaches the maximum defined at the Counting Loop Start node OR
 - when a successful DB connection is established

To simulate the behaviour of unsuccessful retries, configure the Counting Loop Start node with number of loops <= 3.

The Fail Workflow Component at the end is important ONLY for execution on a KNIME Server. It detects if a successful connection has been established during the retries and throws an error marking the overall workflow execution unsuccessful.
Loading deploymentsLoading ad hoc jobs

Used extensions & nodes

Created with KNIME Analytics Platform version 5.4.3
  • Go to item
    KNIME Base nodesTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.4.1

    knime
  • Go to item
    KNIME DatabaseTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.4.1

    knime
  • Go to item
    KNIME JavasnippetTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.4.3

    knime

Legal

By using or downloading the workflow, you agree to our terms and conditions.

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • Courses + Certification
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more about KNIME Business Hub
© 2025 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Data Processing Agreement
  • Credits