Oracle Error Message
ORA-25007: functions or methods not allowed in WHEN clause
Reason for the Error
PLSQL function call or method invocation is not allowed in the WHEN clause when creating a trigger.
Solution
Remove the function call or method invocation from the WHEN clause.