# Errors

#### **Empty Container**

This error appears when an episode is missing content. It is displayed as "Episode '(X)': no segments".

The warning will disappear when a segment is inserted into the empty episode.

#### **Missing Reference**

The Missing Reference error occurs when an episode, button or condition is not linked to a consecutive segment. These errors are displayed as the following: "Episode '(X)': no start target", "Button '(X)': no connection", "Condition: no connection".

These errors can be fixed by connecting these episodes/buttons/conditions to a segment by dragging an arrow from the half circle of an episode or condition box or any button attached to a segment (see Linking Segments).

#### **Missing Resource**

The Missing Resource error appears when an episode is missing an episode end or when a condition is missing in a conditional branch point. The warnings may appear as such: "Episode '(X)': missing episode end" and "Conditional Branch Point: no conditions".

These issues will be fixed when an episode end is inserted into the mentioned episode (see Inserting Episode Ends or if the issue arises from the conditional branch point, it means that a condition must be placed in the CBP box.

#### **Missing Value**

This error can be seen when a certain text is missing from a number of elements of the script, such as an Episode, Segment, Button, Conditional Branch Point, or general information related to the document. The error signs that can be seen under Missing Value are the following: "Episode '(X)': no title", "Segment '(X)': no content", "Segment '(X)': button without title", "Conditional Branch Point: condition without title", "Document Title", "Document Content Info", "Document Authors" etc.

In order to rectify these errors, the text should be inserted to the corresponding elements missing values.

#### **Invalid Syntax**

This occurs if a Script or Condition has a Lua Syntax error. This error can be seen as "Lua error: \[string "function\_ctrlmovie\_target…] and can be fixed by correcting the string with the correct syntax. see the Lua Reference Manual.

#### **Duplicate Object**

This error occurs when two episodes have the same identifier and is stated as such: "Episode '(X)': duplicate identifier". In order to fix this error, the episode identifiers must be set differently for each episode (see Editing Episodes).

#### **Invalid Type**

This error is seen when the Variable type declared and the Variable type set do not match (ex. If `MaylikesMatt` is declared as a Text variable, and set as `MaylikesMatt = true`). This occurs mostly with the Script function. The warning states; "Expression changed variable '(X)' to an invalid type. 'String' expected."

In order to fix this issue, the string written into the Script must be corrected.


---

# 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://help.ctrlmovie.com/guide/validation/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.
