Oracle Solution for Error ora-32643

Solution for Oracle Error ORA-32643

ORA-32643: invalid use of window function in MODEL rule

What triggered the Error:

The window functions can not be used in SQL Model rules that have FOR-loops on the left side or aggregates on the right side.

What should we do to fix it:

Modify the MODEL rule.