Oracle Message ORA-06519 - active autonomous transaction detected and rolled back

ERRORactive autonomous transaction detected and rolled back
CAUSEBefore returning from an autonomous PL/SQL block, all autonomous transactions started within the block must be completed (either committed or rolled back). If not, the active autonomous transaction is implicitly rolled back and this error is raised.
ACTIONEnsure that before returning from an autonomous PL/SQL block, any active autonomous transactions are explicitly committed or rolled back. ----------------------------------------------------------------------- 06520 through 06529 reserved for Foreign function errors