Oracle Analytics Cloud and Server

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

BI Publisher import sub template

Received Response
91
Views
4
Comments

Summary

BI Publisher import sub template

Content

Hi All

I am testing a subtemplate functionality in BI Pub Desktop using MS WORD 2016

I have 1 main rtf and 1 subtemplate rtf

main.rtf contains:

<?import:file:C:///subtemplate/Subtemplate1.rtf?>

<?call-template:subtemplate1?>

and Subtemplate1.rtf contains: - this resides in my local desktop C:\subtemplate\Subtemplate1.rtf

<?template:subtemplate1?>

Subtemplate testing 1

<?end template?>

Whenever i preview the main.rtf i get this error below and not sure what is the cause: can anyone tell what is missing in this approach?

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:2105)

at oracle.xdo.template.FOProcessor.generate(FOProcessor.java:1208)

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

Answers

  • Youssef_B_82
    Youssef_B_82 Rank 5 - Community Champion

    Hi,

    Try these instead:

    <?import:xdoxsl:///subtemplate/Subtemplate1.xsb?>

    <?call:subtemplate1?>

    Let me know if that works

    Regards,

    Youssef

  • timdexter
    timdexter Rank 6 - Analytics Lead

    Hi

    I think your import statement is not quite correct. It should be:

    <?import:file:///C:/subtemplate/Subtemplate1.rtf?>

    Note the different placement of the slashes.

    Youssef's suggestion will be correct once you deploy the template to the server,

    Tim

  • Youssef_B_82
    Youssef_B_82 Rank 5 - Community Champion

    What's the error?

    Also, can you share your template and XML file?

    Regards,

    Youssef

  • JSalarza
    JSalarza Rank 2 - Community Beginner

    Thanks for the suggestion Tim,

    After applying the import statement above, i still get the error when previewing it in PDF. any other suggestions would be helpful. Thanks

    Kent