> For the complete documentation index, see [llms.txt](https://docs.sannybuilder.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sannybuilder.com/troubleshooting/errors/0041.md).

# 0041: Invalid mission id

A mission number is negative, or is greater or equal to the total missions number.

**Possible solutions:** change the id number:

```
DEFINE MISSIONS 1
DEFINE MISSION -1 at @label // error, id can not be negative
DEFINE MISSION 1 at @label // error, id is greater or equal than the total number
DEFINE MISSION 0 // correct
```
