# MechanismDoesNotExist (/docs/errors/chain/MechanismDoesNotExist)

The target subnet or its sub-mechanism does not exist: the netuid is unknown, the mechanism index is at or above `MechanismCountCurrent`, or a non-dynamic `mechid` was requested. Check the netuid with `btcli subnets list` and the mechanism count for that subnet.

Declared by the `SubtensorModule`, `Swap` pallets; it classifies to the semantic code [`subnet_not_exists`](/docs/errors/subnet-not-exists).

Declared at [`pallets/subtensor/src/macros/errors.rs#L172`](/code/pallets/subtensor/src/macros/errors.rs#L172), [`pallets/swap/src/pallet/mod.rs#L169`](/code/pallets/swap/src/pallet/mod.rs#L169).

## Remediation [#remediation]

Use an existing netuid; `btcli subnets list` shows valid ones

The same explanation is available in the terminal: `btcli explain MechanismDoesNotExist`.
