'The Template Preview has failed' Error When Previewing Contract Template

(Doc ID 1249945.1)

Last updated on JULY 12, 2016

Applies to:

Oracle Procurement Contracts - Version 12.1.2 to 12.1.3 [Release 12.1]
Information in this document applies to any platform.
***Checked for relevance 03-Feb-2014***


When attempting to preview SOME contract templates in Contract Terms Administrator responsibility, the following error occurs.

The Template Preview has failed. Please try again. If the problem persists, please contact the System Administrator.

Java detailed error is:
java.lang.ClassCastException: oracle.apps.xdo.template.fo.elements.FOInline cannot be cast to oracle.apps.xdo.template.fo.elements.FOBlock
at oracle.apps.xdo.template.fo.elements.list.FOListBlock.doLayout(FOListBlock.java:78)
at oracle.apps.xdo.template.fo.elements.FOBlock.doLayout(FOBlock.java:291)
at oracle.apps.xdo.template.fo.elements.FOBlock.doLayout(FOBlock.java:197)
at oracle.apps.xdo.template.fo.elements.FOBlock.doLayout(FOBlock.java:115)
at oracle.apps.xdo.template.fo.elements.FOFlow.doLayout(FOFlow.java:83)

Steps to reproduce:
The issue can be reproduced at will with the following steps:
1. Go to (R) Contract Terms Library
2. Create a contract template with multiple clauses
3. Use the standard template layout
4. Go to Actions > preview
- the error occurs


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms