Oracle Message PLS-00650 - invalid type for PARTITION/CLUSTER/ORDER BY clause

ERRORinvalid type for PARTITION/CLUSTER/ORDER BY clause
CAUSEUer tried to use invalid type for PARTITION/CLUSTER?ORDER BY clause.
ACTIONUse legal allowed types.