---
schema_version: "1"
id: f58d557f20fe0883e9888cd697a996a66ab8e5b8528156fe3c5451b23b6781f0
title: Force Error State
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/rpa-builder/latest/toolbox-flow-control-force-error-state.md
canonical_url: https://docs.mulesoft.com/rpa-builder/latest/toolbox-flow-control-force-error-state
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 02aac2d8f147d9b238bb7958b9e1684e09ee1608d34160edb6de1f0fab13fdd3
description: MuleSoft Documentation Site
release: "6.7"
latest: true
---
---
product: RPA Builder
version: 6.7
is-latest-version: true
---

# Force Error State

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

Forces the _Workflow_ into an error state and writes the error message to the `Error Out` workflow
variable.

If you don’t handle this error within a _Managed Block_, the _Workflow_ aborts at this point and
returns with an error.

## Properties

- **Error Message**

  Custom error message to write into the `Error Out` workflow variable.

  If this field is not set, the action step outputs
  `Workflow error state manually forced by action step! [No custom message was set.]`

## Inbound Variables

- **Error Message**

## Outbound Variables

This action step has no outbound variables.
