ORA-32042: recursive WITH clause must reference itself directly in one of the UNION ALL branches Cause: A WITH clause query referred to itself (recursive) indirectly, such as through a subquery or view. Action: Rewrite the recursive WITH clause query to refer to itself directly in the FROM clause of one of the UNION ALL branches.