Oracle Solution for Error ora-32618

Solution for Oracle Error ORA-32618

ORA-32618: incorrect use of MODEL PREVIOUS function

What triggered the Error:

The MODEL PREVIOUS function was used outside of MODEL "ITERATE UNTIL" clause, or was nested.

What should we do to fix it:

Check the SQL statement and rewrite if necessary.