# Warnings & Errors

## Warnings

If the rule is not mapped in the Rule Flow, it will be demarcated by a **yellow border** with an icon![](https://content.gitbook.com/content/dv9UprVu3KjO5la255ws/blobs/Ytm04CZlHnCghbQm6ECj/warningError2.png). If you save a rule with warnings, the state automatically switches to **pending**.

![](https://content.gitbook.com/content/dv9UprVu3KjO5la255ws/blobs/IDDWrQbrlcvGflUyspCD/warningBox.PNG)

{% hint style="info" %}
When you point to the![](https://content.gitbook.com/content/dv9UprVu3KjO5la255ws/blobs/Ytm04CZlHnCghbQm6ECj/warningError2.png), warning information will be displayed.
{% endhint %}

### Types of warnings:

* The rule is missing mapping.

To fix this, map the data in a rule. At least one output must always be mapped for the mapping to be valid and no warnings to be displayed.

{% hint style="warning" %}
Rule Flow with warnings is automatically set to pending and cannot be called via Rule Flow Solver API
{% endhint %}

## Errors

Errors are serious mistakes that prevent Rule Flow from being saved. A **red border** and an icon![](https://content.gitbook.com/content/dv9UprVu3KjO5la255ws/blobs/g9CmHbEHqD0OzieBNVdV/errorIcon.png)appear next to a rule that contains errors.

![](https://content.gitbook.com/content/dv9UprVu3KjO5la255ws/blobs/F047PyNpQEozfxDrRiUU/ErrorBox.PNG)

{% hint style="info" %}
When you point to the![](https://content.gitbook.com/content/dv9UprVu3KjO5la255ws/blobs/g9CmHbEHqD0OzieBNVdV/errorIcon.png), errors information will be displayed.
{% endhint %}

### Types of errors:

* The rule is not connected with the input
* The rule is not connected with the output

To fix this connect all boxes to the Input box and Output box.

* The rule is not selected.

To fix this choose a rule into the empty box by clicking![](https://content.gitbook.com/content/dv9UprVu3KjO5la255ws/blobs/v4YE8TsqP8WGMKyWxgXT/selectRule.PNG)in the sidebar.

* Cannot find the rule.

The rule is probably deleted and can no longer be used in Rule Flow.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.decisionrules.io/doc/v1/rule-flow/warnings-and-errors-1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
