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

Last updated on JULY 07, 2017

Applies to:

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

Symptoms

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,

Changes

 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.

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