The cause of ORA-00984, column not allowed here, is the use a column name where it is not allowed, such as in the VALUES clause of an insert statement. So check the statements.