Instruction errors (runtime)

ModifiedProgramId

Appears as instruction illegally modified the program id of an account

Instruction

ModifiedProgramId

“instruction illegally modified the program id of an account”

A program changed the owner of an account it is not allowed to.

Common causes

  • Only the current owner (or the System Program for system-owned accounts) may reassign an account.

How to fix it

  • Use the System Program assign for system-owned accounts; the owner program must assign otherwise.

Decode another error

Try: