Oracle Error ORA-02405: invalid sql plan object provided

Oracle Error Message

ORA-02405: invalid sql plan object provided

Reason for the Error

The user provided a NULL, empty, or malformed object of type SQL_PLAN_TABLE_TYPE

Solution

Provide a new, properly formed object to the function