> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.utils.controls.OnError

- Component: `appmixer.utils.controls.OnError`
- Kind: Trigger
- Version: 1.1.0
- Visibility: Public
- Connector: [appmixer.utils.controls 1.14.7](https://connectors.appmixer.com/connector/appmixer.utils.controls/1.14.7.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.utils.controls/1.14.7/component/appmixer.utils.controls.OnError>

This trigger fires when there is an error in the flow.

## Properties

| Field | Type | Description |
| --- | --- | --- |
| Limit (`limit`) | number | Limit the number of errors to display. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Timestamp (`gridTimestamp`) | - | - |
| Message (`msg`) | - | - |
| Error Details (`err`) | - | - |
| Component ID (`componentId`) | - | - |
| Component Type (`componentType`) | - | - |
| Component Label (`componentLabel`) | - | - |
| Flow Name (`flowName`) | - | - |
| Input Message(s) (`inputMessages`) | - | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.utils.controls.OnError",
  "author": "Martin Krčmář <martin@client.io>",
  "description": "This trigger fires when there is an error in the flow.",
  "tick": true,
  "version": "1.1.0",
  "state": {
    "persistent": true
  },
  "properties": {
    "schema": {
      "type": "object",
      "properties": {
        "limit": {
          "type": "number"
        }
      }
    },
    "inspector": {
      "inputs": {
        "limit": {
          "type": "number",
          "label": "Limit",
          "index": 1,
          "defualtValue": 100,
          "tooltip": "Limit the number of errors to display."
        }
      }
    }
  },
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Timestamp",
          "value": "gridTimestamp"
        },
        {
          "label": "Message",
          "value": "msg"
        },
        {
          "label": "Error Details",
          "value": "err"
        },
        {
          "label": "Component ID",
          "value": "componentId"
        },
        {
          "label": "Component Type",
          "value": "componentType"
        },
        {
          "label": "Component Label",
          "value": "componentLabel"
        },
        {
          "label": "Flow Name",
          "value": "flowName"
        },
        {
          "label": "Input Message(s)",
          "value": "inputMessages"
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
