My Oracle Support Banner

APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT Fails for XLS, HTM and XML Formats in APEX 20.1 (Doc ID 2740020.1)

Last updated on FEBRUARY 16, 2021

Applies to:

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

Symptoms

When using BI Publisher as the Print Server some requests work (pdf / rtf):

 


So:
pdf - documented and works
rtf - documented and works
xlsx - not documented but seems to work
html - not documented but seems to work
xls - documented but does not work
htm - documented but does not work
xml - documented but does not work

The documentation referenced: https://docs.oracle.com/en/database/oracle/application-express/20.1/aeapi/DOWNLOAD_PRINT_DOCUMENT-Procedure-Signature-4.html#GUID-EF83167E-E860-4998-AD04-C1C9ABBB3218

When the failure occurs, it throws variations of the following error:
javax.servlet.ServletException: Document format not supported: htm
at oracle.xdo.servlet.Converter.doPost(Converter.java:80)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
at oracle.xdo.servlet.metadata.track.MostRecentFilter.doFilter(MostRecentFilter.java:64)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
at oracle.xdo.servlet.init.InitCheckingFilter.doFilter(InitCheckingFilter.java:63)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)

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


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