SQL*Loader Inserting Into Multiple Tables Results In "Discarded - failed all WHEN clauses" Error (Doc ID 364261.1)

Last updated on NOVEMBER 28, 2016

Applies to:

Oracle Server - Enterprise Edition - Version: 9.2.0.7 to 10.2.0.1 - Release: 9.2 to 10.2
Information in this document applies to any platform.

Symptoms

Using SQL*Loader to load a single flat file into two different tables. The records are inserting into first table only and not inserting into the 2 table. When the table order is switched within the control file, only the first table will get the data inserted.

The records associated with the second table listed are found within the LOG file.

No errors are printed to the screen but the log file shows the following:

Record 2: Discarded - failed all WHEN clauses.
Record 4: Discarded - failed all WHEN clauses.
Record 6: Discarded - failed all WHEN clauses.
Record 8: Discarded - failed all WHEN clauses.
Record 10: Discarded - failed all WHEN clauses.
Record 12: Discarded - failed all WHEN clauses.
Record 14: Discarded - failed all WHEN clauses.
Record 16: Discarded - failed all WHEN clauses.
Record 18: Discarded - failed all WHEN clauses.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms