Copyright (c) 2026 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.

3.2.1. Pipeline Errors and the Fail Activity

đź’ˇ First Principle: The Fail activity provides controlled pipeline termination with custom error messages. It enables graceful failure handling instead of silent errors.

Scenario: A Lookup activity queries reference data that should always exist. If it returns empty, the pipeline should fail with a clear message indicating which reference data is missing.

Fail Activity Configuration

ParameterPurposeExample
Error MessageHuman-readable description"Customer reference data not found"
Error CodeMachine-readable identifier"ERR_MISSING_REF_DATA"
Visual: Fail Activity Pattern
Loading diagram...

Implementation Pattern

  1. Add Lookup activity to query required data
  2. Add If Condition to check for empty results
  3. Add Fail activity in the True branch
  4. Configure error message and code
  5. Continue processing in False branch

⚠️ Common Pitfall: Logging errors without failing the pipeline. If a condition should stop execution, use the Fail activity—logging alone allows downstream activities to continue with bad data.