Oracle Solution for Error ora-16267

Solution for Oracle Error ORA-16267

ORA-16267: Cannot instantiate a Logical Standby during a switchover

What triggered the Error:

An instantiation of a Logical Standby has been attempted for a primary database that is in the middle of a switchover.

What should we do to fix it:

Execute ALTER DATABASE PREPARE TO SWITCHOVER CANCEL to cancel the switchover, and attempt the instantiation again.