Oracle Error PLS-00308: this construct is not allowed as the origin of an assignment

Oracle Error Message

PLS-00308: this construct is not allowed as the origin of an assignment

Reason for the Error

The construct or expression does not designate a value that can be assigned to a variable. For example, the datatype name NUMBER cannot appear on the right hand side of an assignment statement as in X := NUMBER.

Solution

Correct the illegal assignment statement.