---
sourceDocument: Zurich Workflow Data Fabric
sourceDocumentLink: https://www.servicenow.com/docs/r/zurich/integrate-applications

 Release :

    - zurich

ft:locale :

    - en-US

ft:publication_title :

    - Zurich Workflow Data Fabric

ft:clusterId :

    - crint

bundleId :

    - crint

workflow :

    - Creator


---

# Use the Terminate component

# Use the Terminate component {#ariaid-title1}

* Release version: Zurich
* 
* Updated July 31, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read

Abort an automation by using the Terminate component in RPA Desktop Design Studio.

## Before you begin

Role required: none

## About this task

You can configure the properties for the Terminate component. For more information
about these properties, see [Properties of the General components](https://www.servicenow.com/docs/ksL6jqS2GCudrGlpMmWNug "Learn about the properties of the General components in RPA Desktop Design Studio.").

Use the Terminate component in attended automations to complete the automation execution. For more information about the embedded task automation, [Embedded Task Automation (ETA) in RPA Hub](https://www.servicenow.com/docs/Dkq_olS1wbRY1UG2iZUU9A "With the embedded task automation feature, trigger attended bot processes (attended automations) from the ServiceNow forms, apart from initiating them from the Attended Robot application.").

## Procedure

1. In the Toolbox pane, navigate to GeneralTerminate.
2. Drag the Terminate component to the Design surface.
3. To configure the input field, see [Configure port properties](https://www.servicenow.com/docs/kGXMTSCBH6H5nx8cA3ZpuA "Configure how data is passed to the input fields of a component or method in RPA Desktop Design Studio.").
4. **Optional:** Connect the data and control ports of the Terminate component to the corresponding ports of the other components as described in the following table.  
   {#use-general-terminate__table_jnw_jn1_krb__entry__6}

   | Port name | Purpose of connection | Port type | Data type | Mandatory? | Notes |
   |-|-|-|-|-|-|
   | Message | Takes the message when an automation is terminated. This message is also shown in the process job. | Data In | String | No. Connecting the port is optional. | If the Boolean input in the Mark As Error port is True, then you must provide a message. |
   | Mark As Error | Takes the Boolean value that indicates the status of the process job. If True, the state of the process job is Failed. If False, the status of the process job is a success. | Data In | Boolean | No. Connecting the port is optional. | You can view the status of the process job under the Process Jobs tab of the respective process in the instance. |
   | Capture Screen | Takes the Boolean value that indicates whether the component captures the screenshot when an automation fails to execute. If True, the screen is captured at that point in time. If False, the screen is not captured. Note: Ensure that the Track Execution Logs setting is enabled in your bot process record in RPA Hub. If Flat file is selected as an output type, then the screenshots are not captured. | Data In | Boolean | No. Connecting the port is optional. | To view the screenshot, do the following actions: 1. On the Design tab, click Attach \> Remote log. 2. Select the required process job and click Fetch Logs. 3. Click Play log. The Execution log window shows the screenshot. {#use-general-terminate__ol_off_css_f5b} |
   [ ]

   {#use-general-terminate__table_jnw_jn1_krb}
5. **Optional:** To test the component, right-click the component bar and then click Run From Here.

## Example

For example, in the automation workflow that requires to read data from an Excel, For Each loop and GetListItem components are used to extract data from the DataTable and display in a message box. If any
error occurs while reading the data from the Excel, you can use the Try Catch component to handle the exception and the Terminate component to end the automation. The error message is also shown in process job.

*[\>]: and then


