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 APRIL 17, 2023

Applies to:

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


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 :


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

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