# MentorRecipeRejectionReasons class

> The MentorRecipeRejectionReasons class of Novior.MentorAgent.Core: The reason codes of MentorRecipeRejection.ReasonCode, a closed list. They stay the same…

- URL: https://docs.mentoragent.net/api/novior-mentoragent-core/mentorreciperejectionreasons
- Verified with: MentorAgent 1.5.0
- Last updated: 2026-11-26
- Packages: Novior.MentorAgent

The reason codes of [`MentorRecipeRejection.ReasonCode`](https://docs.mentoragent.net/api/novior-mentoragent-core/mentorreciperejection#reasoncode), a closed list. They stay the same from one version to the next; a new one comes only in a minor version, and the CHANGELOG says so.

## Definition

Namespace: `Novior.MentorAgent.Core`. Package: `Novior.MentorAgent`.

`public static class MentorRecipeRejectionReasons`

```shell
dotnet add package Novior.MentorAgent
```

## Fields

### `Duplicate`

`public const string Duplicate = "duplicate"`

A recipe of the same route and name was given before, by this source or by another: the first stays.

### `InvalidDefinition`

`public const string InvalidDefinition = "invalid-definition"`

A field that is required is missing or empty: the description, a step's selector, a row step's cell or key, a parameter's description.

### `InvalidName`

`public const string InvalidName = "invalid-name"`

The name is not 1 to 64 letters, digits, '\_' and '-'.

### `InvalidParameters`

`public const string InvalidParameters = "invalid-parameters"`

More than [`MentorRecipeLimits.MaxParameters`](https://docs.mentoragent.net/api/novior-mentoragent-core/mentorrecipelimits#maxparameters) parameters, two of one name, or a parameter's name that is not valid.

### `InvalidRoute`

`public const string InvalidRoute = "invalid-route"`

The route is not the route of a page: it does not start with '/', or has a query or a fragment.

### `InvalidSteps`

`public const string InvalidSteps = "invalid-steps"`

No step, more than [`MentorRecipeLimits.MaxSteps`](https://docs.mentoragent.net/api/novior-mentoragent-core/mentorrecipelimits#maxsteps), or a step of a kind MentorAgent does not know.

### `InvalidValue`

`public const string InvalidValue = "invalid-value"`

A step's text has a single brace: a brace in a text is written `{{` or `}}`.

### `SourceFailed`

`public const string SourceFailed = "source-failed"`

The whole source threw. Added by MentorAgent, with the source's type as the name and the exception's type as the detail; the other sources are still asked.

### `TooLong`

`public const string TooLong = "too-long"`

A field is longer than its limit ([`MentorRecipeLimits`](https://docs.mentoragent.net/api/novior-mentoragent-core/mentorrecipelimits)), or there are too many roles.

### `UnknownParameter`

`public const string UnknownParameter = "unknown-parameter"`

A step's value names, between braces, something that is not one of the recipe's parameters.

---

- Previous: [MentorRecipeRejection record](https://docs.mentoragent.net/api/novior-mentoragent-core/mentorreciperejection.md)
- Next: [MentorRecipeSourceContext record](https://docs.mentoragent.net/api/novior-mentoragent-core/mentorrecipesourcecontext.md)
