> For the complete documentation index, see [llms.txt](https://water-strategy.gitbook.io/waterstrategy/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://water-strategy.gitbook.io/waterstrategy/portugues/comecando/dealing-with-model-errors.md).

# Lidando com erros de modelo

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

WaterStrategy relata erros quando há uma falha técnica ou quando o modelo foi configurado incorretamente. Aprender a entender e usar um relatório de erro de modelo para encontrar um problema em um modelo é uma habilidade de modelagem importante e essencial.

Este capítulo fornece um exemplo de como ler um relatório de erro para encontrar a parte de um modelo que leva ao erro.

## Como obter o relatório de erro

Quando uma execução falhar, você verá a execução ficar vermelha na seção de corridas.

<figure><img src="https://2780811623-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft4nCBOybr5foLIqkmwa6%2Fuploads%2Fgit-blob-fffd6f66034be8f1ba4ba0782ae7b3e20d0a8037%2Fimage%20(359).png?alt=media" alt=""><figcaption><p>Clique na barra de execução vermelha para obter o relatório de erros</p></figcaption></figure>

Clique na barra vermelha de execução e você terá uma visão geral da execução, incluindo o relatório de erros.

<figure><img src="https://2780811623-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft4nCBOybr5foLIqkmwa6%2Fuploads%2Fgit-blob-928faa28acb478686bbfb424b3a3a7ff667cae2c%2Fimage%20(360).png?alt=media" alt=""><figcaption><p>O relatório de erro</p></figcaption></figure>

**Role até o final do relatório.** É aqui que a execução relatará seu erro.

<figure><img src="https://2780811623-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft4nCBOybr5foLIqkmwa6%2Fuploads%2Fgit-blob-e172ec61d432dfc4758a3631b7010b627af57139%2Fimage%20(361).png?alt=media" alt=""><figcaption><p>Encontre o tipo de erro no final do relatório</p></figcaption></figure>

Para esta execução, pode-se verificar que um perfil mensal não foi inserido corretamente.

Em alguns casos, serão fornecidos mais detalhes sobre um erro no relatório de execução. É importante examinar os registros de execução para ver se há alguma pista sobre o problema.

Ao rolar para cima, vemos “CRÍTICO”. Isso é uma indicação de que um erro foi reconhecido. Na mesma linha, indica onde está o erro.

<figure><img src="https://2780811623-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft4nCBOybr5foLIqkmwa6%2Fuploads%2Fgit-blob-5442ef14ce7f6433a74458867240c68e651301ea%2Fimage%20(362).png?alt=media" alt=""><figcaption><p>Descubra qual perfil mensal está incorreto</p></figcaption></figure>

A entrada 'evaporação' do nó 'Exemplo de reservatório' está incorreta.

Podemos editar o parâmetro 'evaporação' para resolver esse problema.

<figure><img src="https://2780811623-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft4nCBOybr5foLIqkmwa6%2Fuploads%2Fgit-blob-8dbea165447729cadbce16f120a633571fd3de09%2Fimage%20(363).png?alt=media" alt=""><figcaption><p>Clique para editar o parâmetro 'evaporação'</p></figcaption></figure>

<figure><img src="https://2780811623-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft4nCBOybr5foLIqkmwa6%2Fuploads%2Fgit-blob-cce76d71a673d992815fdbfbaf79c914a746fc2f%2Fimage%20(364).png?alt=media" alt=""><figcaption><p>O parâmetro 'evaporação'</p></figcaption></figure>

Há valores 13 no perfil mensal. Precisamos remover o valor que não pertence. Nesse caso, '3.14' não deveria estar no perfil mensal.

<figure><img src="https://2780811623-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft4nCBOybr5foLIqkmwa6%2Fuploads%2Fgit-blob-b3cce3f779e179606795a87aa30ca7a837b3b2fd%2Fimage%20(365).png?alt=media" alt=""><figcaption><p>O parâmetro 'evaporação' após a correção</p></figcaption></figure>

Salve o parâmetro e execute esse modelo novamente.

Agora, o modelo foi executado com sucesso.

<figure><img src="https://2780811623-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft4nCBOybr5foLIqkmwa6%2Fuploads%2Fgit-blob-7524df7a78f9f8f190e58517ac14d64241c59067%2Fimage%20(366).png?alt=media" alt=""><figcaption><p>Execução bem-sucedida</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://water-strategy.gitbook.io/waterstrategy/portugues/comecando/dealing-with-model-errors.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
