Message Oracle PLS-00562 - a function must return a type.

ERRORa function must return a type.
CAUSEThe current function was definied to return something other than a data type.
ACTIONMake sure the function is returning a data type.