Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How increase the limitation of dynamic heading query variable in classic report?

Chandler BingMar 2 2026

Hi All,

I’m using a Classic Report with column headings generated through a PL/SQL Function Body (as per the sample code below),

DECLARE
v_headers VARCHAR2(4000);
BEGIN
SELECT LISTAGG(text, ':') WITHIN GROUP (ORDER BY text)
INTO v_headers
FROM sample_table;

RETURN v_headers;
END;

but I am getting the following error:

I checked that v_headers exceeds the 4000 but what should I do here to fix the issue, I tried clob but no luck. Any suggestion please

Comments
Post Details
Added on Mar 2 2026
7 comments
116 views