Oracle Message ORA-14462 - cannot TRUNCATE temporary table in an autonomous transaction which is already in use by the parent transaction

ERRORcannot TRUNCATE temporary table in an autonomous transaction which is already in use by the parent transaction
CAUSEAn attempt was made to TRUNCATE a temporary table in an autonomous transaction which is already in use by the parent transaction.
ACTIONMake sure the temporary table is not being used by the parent transaction before trying to TRUNCATE in an autonomous transaction.