Skip to main content
Question

Quick Report SQL Expression Length Limitation (Around 32 KB?)

  • Nov 3, 2026 6:02 AM UTC
  • 4 replies
  • 87 views

Forum|alt.badge.img+2

Hello,

I have a question regarding the maximum length of SQL expressions in Quick Reports on IFS Cloud.

I am creating a Quick Report using a SQL Statement and recently encountered an error when saving a large SQL query.

To investigate the issue, I performed several tests with SQL statements of different sizes. Based on these tests, I observed that saving the Quick Report starts to fail when the SQL size approaches approximately 32 KB.

Could you please clarify the following points?

  1. Is there an official maximum length for SQL expressions used in Quick Reports on IFS Cloud?
  2. Is there a documented limit around 32 KB (32767 bytes/characters)?
  3. If such a limitation exists, is there any supported way to increase, bypass, or disable it?

Any documentation, technical details, or references would be greatly appreciated.

Thank you in advance for your help.

Best regards,

4 replies

Forum|alt.badge.img+4
  • Do Gooder (Partner)
  • Nov 3, 2026 6:48 AM UTC

Hi,

As far as I know, IFS doesn’t document an official maximum SQL length for Quick Reports. The SQL is stored in a CLOB column (QUICK_REPORT_TAB.SQL_EXPRESSION), so storage isn’t the problem. The ~32 KB limit you’re seeing most likely comes from Oracle’s PL/SQL VARCHAR2 limit of 32,767 bytes, which applies somewhere in the save or validation logic. 


Forum|alt.badge.img+2
  • Author
  • Do Gooder
  • Nov 3, 2026 6:54 AM UTC

Thank you for your explanation.

I performed additional testing and found some results.

With SQL statements containing only ASCII characters, the maximum size that can be saved is exactly 32,767 bytes when line breaks are counted as 2 bytes.

I also tested Quick Reports containing Japanese comments. When counting Japanese characters as 3 bytes and line breaks as 2 bytes, the maximum saveable size again comes to 32,767 bytes.

Based on these tests, the limitation appears to be byte-based rather than character-based, and the boundary consistently matches 32,767 bytes.

Has this limitation been officially confirmed by IFS, or is there any documentation describing it?


Forum|alt.badge.img+4
  • Do Gooder (Partner)
  • Nov 3, 2026 7:25 AM UTC

Hi,

I found that Quick_Report_API.Substitute_Owner_Prefix___ returns a VARCHAR2, which is limited to 32,767 bytes. That matches your test results.

Could you share the exact error message you get when saving?

Best regards,


Forum|alt.badge.img+2
  • Author
  • Do Gooder
  • Nov 3, 2026 7:42 AM UTC

 Hi,

Thank you for your reply.

The error message is:

---------------------------------------------------------------------------
QuickReport/Form (multiple server errors)
Database error occurred. Contact administrator.
Error details: [{"code":6502,"message":"ORA-06502: PL/SQL: numeric or value error"}]
---------------------------------------------------------------------------

The error occurs during CheckSqlExpressionAction.

Given your finding regarding Quick_Report_API.Substitute_Owner_Prefix___, it seems very likely that the limitation is related to a VARCHAR2 buffer during validation or processing.

Best regards,