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

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
-
Hi Frank,
Welcome to Oracle Analytics community.
Can you please check if below helps?
Thanks.
1
Answers
-
Hi @Frank.Steinjan,
Welcome to the Oracle Analytics Community.
Can you please take a look into the following Oracle Note in case if it is useful.
Hope this help.
Thank you.
0 -
Thanks @Bhaskar Konar ,
unfortunately the provided link does not work., but I got the article you were referring to and have read it already before I posted here.
The provided solution is what I tried to use and which is not working.
That's why I created a mockup template which should just use a local saved subtemplate. I imported it like it is described in several reference documents … but still getting the posted error message.
Cheers,
Frank
0 -
Hi @MandeepGupta , thanks for the link. This did solve the problem!
So just for reference purposes, this is what needs to be done:
- create or update xdo.cfg file which you can find e.g. C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config
There is also a sample config file which can be used to add 2 properties - add the following 2 properties (I added them to the System Level Properties):
<property name="xdk-secure-io-mode">false</property>
<property name="xslt-scalable">true</property> - You need Admin permissions to add the xdo.cfg file in the mentioned folder above!
After placing the xdo.cfg with the mentioned properties in the folder, I was able to import and use local subtemplates!
(Please see example in my initial post on how to use the correct reference to the subtemplates using c:///folder_of_sybtemplates/sub.rtf …. yes it is 3 /// after the drive letter :-) )
Cheers,
Frank
2 - create or update xdo.cfg file which you can find e.g. C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config
-
Very helpful.
Thanks for sharing @Frank.Steinjan!
0 -
Thank you, Frank for sharing it with the community. I believe this will help a lot of community members. Really appreciate it.
Regards.
0