My Oracle Support Banner

ORA-02014: Cannot Select FOR UPDATE From View With DISTINCT, GROUP BY, in APEX (Doc ID 2201723.1)

Last updated on AUGUST 04, 2018

Applies to:

Oracle Application Express (formerly HTML DB) - Version 3.0.1 and later
Information in this document applies to any platform.


After migration from Apex 4 to Apex 5.  If using any Queries in a form that queries a View with a GROUP BY expression in it and makes an update.  In the view there is a trigger that creates a record in another table than the view. Then you may see the following errors during the update.


Error Codes
[Error] Execution (154: 70): ORA-02014: cannot select FOR UPDATE from view with DISTINCT, GROUP BY,


 This behavior was introduced in Oracle APEX 3.0, but with the side effect that complex update table views with an instead of trigger get the above error.


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.