My Oracle Support Banner

Running Interactive Grid page fails with apex_error_code: APEXDEV.IG.NO_PK error (Doc ID 2574510.1)

Last updated on DECEMBER 09, 2021

Applies to:

Oracle Application Express (APEX) - Version 19.1.0.00.15 and later
Information in this document applies to any platform.

Symptoms

Create an IG  (Interactive Grid) Page like below:
Create Page - Report - Interactive Grid - Page Attribute (leave as default) - Navigation Menu (as default) - Report Source (Editing Enabled : No)

Then run page as normal.

Modify Page Attributes - Edit Enabled  to Yes
Then Save and Run  page.

Following error Page displays


Error
-----------------------
Interactive Grid '<IG_NAME>' doesn't have a primary key column defined which is required for editing or in a master detail relationship.
Contact your application administrator.

Technical Info (only visible for developers)
is_internal_error: true
apex_error_code: APEXDEV.IG.NO_PK
component.type: APEX_APPLICATION_PAGE_REGIONS
component.id: <COMPONENT_ID>
component.name: <IG_NAME>
error_backtrace:
----- PL/SQL Call Stack -----
 object line object
 handle number name
0xf0c136940 971 package body APEX_190100.WWV_FLOW_ERROR.INTERNAL_GET_ERROR
0xf0c136940 1039 package body APEX_190100.WWV_FLOW_ERROR.INTERNAL_ADD_ERROR
0xf0c136940 1431 package body APEX_190100.WWV_FLOW_ERROR.RAISE_INTERNAL_ERROR
0xf0ae49860 5878 package body APEX_190100.WWV_FLOW_INTERACTIVE_GRID.RENDER
0xf38426a68 2391 package body APEX_190100.WWV_FLOW_REGION_NATIVE.RENDER_REGION
0xf56b274b8 2112 package body APEX_190100.WWV_FLOW_PLUGIN.RENDER_REGION
0xf390b1730 1408 package body APEX_190100.WWV_FLOW_DISP_PAGE_PLUGS.DISPLAY_PLUG_BODY
0xf390b1730 1892 package body APEX_190100.WWV_FLOW_DISP_PAGE_PLUGS.DISPLAY_PLUG
0xf390b1730 984 package body APEX_190100.WWV_FLOW_DISP_PAGE_PLUGS.DISPLAY_PAGE_PLUGS
0xf2932d578 2537 package body APEX_190100.WWV_FLOW_PAGE.EMIT_BODY
0xf2932d578 2774 package body APEX_190100.WWV_FLOW_PAGE.RENDER
0x104edbeb08 4835 package body APEX_190100.WWV_FLOW.SHOW
0x101cedaff0 173 procedure APEX_190100.F
0xf28d7c180 2 anonymous block



Changes

 

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
Changes
Cause
Solution


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