My Oracle Support Banner

PLSQL :Cannot Insert NULL Into Table With Identity Column When Using ORDER BY In Procedure (Doc ID 2771610.1)

Last updated on MAY 03, 2021

Applies to:

PL/SQL - Version 19.5.0.0.0 and later
Information in this document applies to any platform.

Symptoms

On execution of plsql procedure cannot insert NULL into table with Identity column when using ORDER BY in INSERT statement. It fails with below error

ERROR at line 1:
ORA-01400: cannot insert NULL into ("<OWNER>"."T_TEST_IDENTITY_COL_BUG"."ID")
ORA-06512: at "<OWNER>.PROC_TEST_IDENTITY_COL", line 9
ORA-06512: at line 1

Test Case :




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
References


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