Anchor
AccountDidNotDeserialize
“Failed to deserialize the account”
Anchor could not Borsh-deserialise the account data into the expected struct.
Common causes
- The account layout changed (fields added/removed) without migrating existing accounts.
- The account data is corrupted or shorter than the struct.
How to fix it
- Add a migration or create new accounts. Use
reallocand versioned structs when evolving layouts.