Skip to content

method.name_conflict

A name is declared twice or collides with a reserved one

Type https://mthds.ai/errors/method.name_conflict
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

Two declarations share a name, or a name collides with a native concept, with another batch item or with a reserved domain.

What to do

Rename one of the colliding declarations. A domain may not be one of the reserved domains, and a concept may not take the name of a native one.

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}' so that it is unique and reserved by nothing, 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}' collides with another declaration (conflict: {conflict}).

Parameters

Every parameter is present on every occurrence of the code.

Name Type Description
name identifier The name declared twice, or colliding.
conflict one of duplicate_declaration, native_concept, batch_item, reserved_domain What the name collides with: another declaration, a native concept, another batch item, or a reserved domain.

See also