Oracle Error ORA-32639: Aggregate functions on reference MODELs are not allowed

Oracle Error Message

ORA-32639: Aggregate functions on reference MODELs are not allowed

Reason for the Error

An aggregate function was specified on the cells of a reference MODEL.

Solution

Check the SQL statement and rewrite if necessary.