My Oracle Support Banner

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

Last updated on APRIL 03, 2020

Applies to:

Oracle Database - Enterprise Edition - Version 9.2.0.7 to 10.2.0.1 [Release 9.2 to 10.2]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
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

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.