My Oracle Support Banner

ORA-00972: Identifier Too Long Error When Downloading Apex Reports Into PDF with ORDS Print Server (Doc ID 2619822.1)

Last updated on MARCH 19, 2024

Applies to:

Oracle Application Express (APEX) - Version and later
Oracle REST Data Services - Version 3.0.11 and later
Information in this document applies to any platform.


We are getting errors while downloading the APEX reports into PDF format. After download we do see an error message while opening the pdf file, "Adobe Acrobat Reader could not open xyz.pdf because it is either not a supported file type or the file has been damaged".

When I check the debugger I see the following errors:
ORA-06502: PL/SQL: numeric or value error ORA-06512: at "APEX_050000.WWV_FLOW_RENDER_QUERY", line 818 ORA-00972: identifier is too long

From tomcat - Catalina.out I see below errors.
22-Oct-2019 15:49:00.658 SEVERE [http-nio-8080-exec-10] oracle.dbtools.apex.hooks.postProcess.FOP2PDF.postProcess String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  at java.lang.String.substring(
  at oracle.dbtools.apex.hooks.postProcess.FOP2PDF.requestTOPDF(
  at oracle.dbtools.apex.hooks.postProcess.FOP2PDF.postProcess(
  at oracle.dbtools.apex.hooks.ProcessorRegistry.postProcess(

This is happening for few reports, but not all.

Further analysis shows that the main difference between the reports which are working vs. not working is the number of columns.
If the number of columns is trimmed, then the report works as expected.


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

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