Skip to content

method.identifier_invalid

A name is not a valid identifier

Type https://mthds.ai/errors/method.identifier_invalid
Family method: The method as written, the validation vocabulary included.
Domain method: the method's author acts, by changing the method
Retry no: repeating the operation fails the same way
HTTP status 422
Raised as a problem document, sent as the body of an HTTP response or kept in a run's record

What it means

A pipe code, a main pipe or an input name breaks the naming rules: each is a plain snake_case identifier matching [a-z][a-z0-9_]*. A stored name, such as a step's result or batch_as or a PipeBatch's input_item_name, takes the form of an input name, so one that breaks it is this code too, and so is a plain batch_over starting with the reserved prefix _bound_.

What to do

Rename it to a plain snake_case identifier, with no dot and no capital letter, and update every reference to it.

Next steps

A problem carries the step aimed at whoever reads it: the first when its reader is the domain's actor, the method's author, and the second for any other reader.

Reader Kind Detail
The domain's actor change_method Rename '{name}' to a plain snake_case identifier, then validate the method again.
Any other reader contact_owner Ask the method's owner to rename '{name}'.

Detail

The problem's detail is written from this template, filled with the occurrence's parameters:

The name '{name}' breaks the naming rules of a {identifier_kind}.

Parameters

Every parameter is present on every occurrence of the code.

Name Type Description
identifier_kind one of pipe_code, main_pipe, input_name What the name is: a pipe code, the main pipe, or an input name, which a stored name takes the form of.
name caller_text The name as the method writes it.

See also