# Dealing with Model Errors

{% embed url="<https://www.youtube.com/watch?v=I0-sVlKyXiI>" %}

WaterStrategy reports errors when there is either a technical fault, or the model has been incorrectly configured. Learning how to understand and use a model error report to find a problem in a model is an important and essential modelling skill.

This chapter gives an example of how to read an error report to find the part of a model that leads to the error.

## How to get the error report

When a run fails, you will see the run turn red in runs section.

<figure><img src="/files/bZllFXQOCizF9OZNIcIv" alt=""><figcaption><p>Click the red run bar to get the error report</p></figcaption></figure>

Click the red run bar and you will get an overview of the run, including the error report.

<figure><img src="/files/UPKMRpd7OJM1VO9GsH7C" alt=""><figcaption><p>The error report</p></figcaption></figure>

**Scroll to the end of the report.** This is where the run will reports its error.

<figure><img src="/files/9wwjyInN7kAxQG5IM382" alt=""><figcaption><p>Find the error type at the end of the report</p></figcaption></figure>

For this run, it can be found that a monthly profile has not been entered correctly.

In some cases, more detail will be given about an error within the run report. It is important to look back through the run logs to see if there are any clues as to the issue.

Upon scrolling up we see 'CRITICAL'. This is an indication that an error has been recognized. In the same line, it indicates where the error is.

<figure><img src="/files/uJmWDGaTWaubp1G3Mp9i" alt=""><figcaption><p>Find which monthly profile is incorrect</p></figcaption></figure>

The input 'evaporation' of the 'Example reservoir' node is incorrect.

We can edit the 'evaporation' parameter to solve this problem.

<figure><img src="/files/AOkK3eCqJOLtFZ226p8O" alt=""><figcaption><p>Click to edit the 'evaporation' parameter</p></figcaption></figure>

<figure><img src="/files/dmtMxgft6lDRNdYP47tC" alt=""><figcaption><p>The 'evaporation' parameter</p></figcaption></figure>

There are 13 values in the monthly profile, we need to remove the value that does not belong. In this case '3.14' was not meant to be in the monthly profile.

<figure><img src="/files/Jd75re84chhUyL6A2dQV" alt=""><figcaption><p>The 'evaporation' parameter after correction</p></figcaption></figure>

Save the parameter and run this model again.

Now the model has run successfully.

<figure><img src="/files/S7L3CXR1K6T4MuEEfnOG" alt=""><figcaption><p>Run successful</p></figcaption></figure>


---

# 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://water-strategy.gitbook.io/waterstrategy/getting-started/dealing-with-model-errors.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.
