Message Oracle PLS-00522 - MAP methods must return a scalar type.

ERRORMAP methods must return a scalar type.
CAUSEThe MAP member function was written such that it returns something other than a scalar type.
ACTIONRewrite the MAP function such that it returns a scalar type.