BI Pub Template Builder 12.2.1.2 0 (32-bit) fails with subtemplates — Oracle Analytics

Oracle Analytics Cloud and Server

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

BI Pub Template Builder 12.2.1.2 0 (32-bit) fails with subtemplates

Received Response
78
Views
2
Comments

Summary

When previewing after using the

Content

Using BI Publisher Template builder 12.2.1.2.0 on Windows Server 2012R2 with Word 2007 32-bit. The problem I will describe did not exist in earlier (11g) versions of the template builder on this system.

I have a subtemplate located at c:\users\administrator\desktop\BI Pub\Template_Store.rtf

That subtemplate contains this template:

<?template:Retro_Logo?>Hello<?end Retro_Logo?>  

Incidentally, I also tried <?template:Retro_Logo?>Hello<?end template?>

Now over to my report template RTF file.  Before calling the subtemplate, my report RTF file works file.  Then I add the call to the subtemplate, like this:

<?import:file:///C:\ Users\Administrator\Desktop\BI Pub\Template_Store.rtf?>

The preview returns one of those oh-so-unhelpful error dialogs that provides no helpful clues:

ConfFile: C:\Users\Administrator\AppData\Local\Oracle\BIPublisher\TemplateBuilderforWord\config\xdo.cfg
Font Dir: C:\Program Files (x86)\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts
Out File: C:\Users\Administrator\AppData\Local\Oracle\BIPublisher\TemplateBuilderforWord\tmp\tmp\341532988507959out.htm
Run XDO Start
Template: C:\Users\Administrator\AppData\Local\Oracle\BIPublisher\TemplateBuilderforWord\tmp\tmp\tmp.rtf
RTFProcessor setLocale: en-us
FOProcessor setData: C:\Users\Administrator\Desktop\BI Pub\Multiple Months.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:2094)
    at oracle.xdo.template.FOProcessor.generate(FOProcessor.java:1201)
    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)
    at oracle.xdo11g.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:391)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at oracle.xdo.common.xml.XSLT10gR1.invokeNewXSLStylesheet(XSLT10gR1.java:946)
    at oracle.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:683)
    at oracle.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:377)
    at oracle.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:238)
    at oracle.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1276)
    ... 6 more

A Google search reveals nothing more promising than "You are trying to edit a template that has been running on the server. The template calls external sub-templates."  Yes, I already know that.  I am directly referencing a subtemplate that is right here on my own local machine, running my own local copy of Word with the BI Pub add-in.  At this moment, the server isn't involved at all. 

As noted above, this has worked perfectly in the past, for many years, on 11g.

Thoughts?

 

 

 

Tagged:

Answers

  • Saresh-Oracle
    Saresh-Oracle Rank 5 - Community Champion

    Hi,

    Can you check the document:  Preview a PDF Report In Word BI Publisher Add-in Results In Error: java.util.EmptyStackException (Doc ID 2142450.1)

    Thanks,
    Sareesh

     

  • User_RARNY
    User_RARNY Rank 1 - Community Starter

    Hi ,

    Did you get solution to this problem .
    I am also facing the same issue while trying to call sub template from main template.

     

    Thanks,
    Arpita