# Error handling

## Error types

If a formula evaluation cannot be performed, it returns an error. The following errors are defined in nedyx.

* **!CALCULATION** - an unexpected problem with a calculation occured.&#x20;
* **!CONNECTION** - content from a database cannot be retrieved, because the connection to the database is not established.
* **!DIV0** - a value has been divided by 0 during an operation
* **!RECURSION** - during the calculation of a widget a circular reference is detected, i.e. the widget uses its own content for the calculation, directly or during the calculation of other depending widgets.
* **!REFERENCE** -  a widget reference could not be resolved.&#x20;
* !**SYNTAX** - the formula contains a syntax error.
* **!VALUE** - it was not able to process the value for an operation or a function.
* **!VALUETYPE** - it was not possible to convert a value to the value type which was required for an operation or a function.\
  Example: "A" \* 2 returns !VALUETYPE

## Error handling rules

* If a calculation uses a value of type error, it returns the same error as well. This helps to find the origin of an error.&#x20;
* If more errors are encountered during an operation, the first evaluated error is returned.&#x20;
* Errors are displayed in the same way as texts in cells, messages etc.&#x20;


---

# 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.nedyx.com/version-1.52-preview/appendix/error-handling.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.
