NotRegistered

Error v136 → current 17.2

The account doesn't have a registered identity to clear or modify.

Encountered by: validatorsdeveloperswallets

Why This Error Exists

You can only clear or modify an identity that exists. This error tells you the account has no registered identity - either it was never registered or already cleared. It's often a harmless 'nothing to do' situation rather than a real problem.

Deep Dive

The clear_identity call first checks if IdentityOf(account) has a value. If it's empty (no identity registered), there's nothing to clear, so it errors. This protects against accidentally trying to clear the wrong account.

Debugging Example

You call clear_identity for account 5Xyz.... Error: NotRegistered. Query IdentityOf(5Xyz...) - returns None. The account has no identity. Maybe you already cleared it, or maybe you're using the wrong address. Check your records or try a different account.

Prevention Tips

  • Query Registry.IdentityOf before calling clear_identity
  • Track which accounts have identities in your application
  • Treat this error as 'already in desired state' when scripting bulk operations

From Chain Metadata

Account doesn't have a registered identity

What This Means

The account doesn't have a registered identity to clear or modify.

Common Causes

  • Calling clear_identity on an account that never registered
  • Identity was already cleared in a previous transaction
  • Using the wrong account address

How to Fix

  • Query Registry.IdentityOf(account) to check if identity exists
  • Verify you're using the correct account address
  • If identity doesn't exist, no action needed (already cleared)

Storage to Check

Runtime Info

Pallet Index
17
Error Index
2
Error Code
17.2
Runtime Version
v393