Oracle Analytics Publisher

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Preview of BI Publisher RTF Template with local subtemplate not working and giving error

Accepted answer
55
Views
6
Comments
Frank.Steinjan
Frank.Steinjan Rank 3 - Community Apprentice
edited Mar 5, 2025 9:53AM in Oracle Analytics Publisher

Hello,

I'm wondering what I did wrong (or maybe there are restrictions in the Template Builder for Word).

I tried to test and preview a rtf template which imports a subtemplate ALL LOCAL on my PC:

For easyness I created a main template containing the following:

<?import:file:C:///WORK/bip_templates/test.rtf?>
<?call-template:test?>

The subtemplate contains just a text:

<?template:test?>

TEST

<?end template:?>

I got the following error which does not say very much to me. Just to mention that the issue is already with the import statement as removing the call-template statement gives the same result / error.

RTFProcessor setLocale: en-us
FOProcessor setData: C:\WORK\bip_templates\DefaultInvoice.xml
FOProcessor setLocale: en-us
oracle.xdo.XDOException: java.util.EmptyStackException
at oracle.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1300)
at oracle.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:308)
at oracle.xdo.template.FOProcessor.createFO(FOProcessor.java:2110)
at oracle.xdo.template.FOProcessor.generate(FOProcessor.java:1213)
at RTF2PDF2.runRTFto(RTF2PDF2.java:484)
at RTF2PDF2.runXDO(RTF2PDF2.java:343)
at RTF2PDF2.main(RTF2PDF2.java:235)
Caused by: java.util.EmptyStackException
at oracle.xdo11g.xslt.XSLProcessor.reportException(XSLProcessor.java:965)
at oracle.xdo11g.xslt.XSLProcessor.newXSLStylesheet(XSLProcessor.java:725)

I use Template Builder for Word from Oracle BI Publisher Desktop 12.2.1.4.0. which is working fine when I test templates in other scenarios.

So any idea why the described test is not working? The idea behind is to test templates in combination with subtemplates which we are heavily using and so to be able to test them in once and not all part separatly.

Thanks.

Best Answer

Answers