Oracle Error PLS-00562: a function must return a type.

Oracle Error Message

PLS-00562: a function must return a type.

Reason for the Error

The current function was definied to return something other than a data type.

Solution

Make sure the function is returning a data type.