Oracle Message ORA-01721 - USERENV(COMMITSCN) invoked more than once in a transaction

ERRORUSERENV(COMMITSCN) invoked more than once in a transaction
CAUSEThe USERENV(COMMITSCN) function can only be used once in a transaction.
ACTIONRe-write the transactioin to use USERENV(COMMITSCN) only once