ORA-02014: Cannot Select FOR UPDATE From View With DISTINCT, GROUP BY, in APEX
(Doc ID 2201723.1)
Last updated on FEBRUARY 18, 2021
Applies to:Oracle Application Express (APEX) - Version 3.0.1 and later
Oracle Database Cloud Exadata Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Cloud Service - Version N/A 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] 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