Instruction errors (runtime)

AccountAlreadyInitialized

Appears as instruction requires an uninitialized account

Instruction

AccountAlreadyInitialized

“instruction requires an uninitialized account”

The instruction expected a fresh account but it already has data.

Common causes

  • Retrying an initialise instruction that already succeeded.

How to fix it

  • Check whether the account exists first, or use an idempotent create instruction.

Decode another error

Try: