Categories
- All Categories
- 162 Oracle Analytics News
- 29 Oracle Analytics Videos
- 14.8K Oracle Analytics Forums
- 5.7K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 56 Oracle Analytics Trainings
- 13 Oracle Analytics Data Visualizations Challenge
- 4 Oracle Analytics Career
- 2 Oracle Analytics Industry
- Find Partners
- For Partners
RTF Preview Failed: Why do I get "Preview Failed" when trying to preview an RTF?

I am unable to preview a RTF and receive the below error message when trying to do so. This problem has just occurred recently. I have attempted to reinstall BI Publisher as well as install different version of Java but that does not seem to fix the issue. I am unaware of any updates that would have caused this to break as my team most likely would have received the same update but the majority are still able to preview RTFs.
Error Message:
Preview Failed
ConfFile: C:\Users\user\AppData\Local\Oracle\BIPublisher\TemplateBuilderforWord\config\xdo.cfg
Font Dir: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts
Out File: C:\Users\user\AppData\Local\Oracle\BIPublisher\TemplateBuilderforWord\tmp\tmp\21733863589307out.xlsx
Run XDO Start
Template: C:\Users\user\AppData\Local\Oracle\BIPublisher\TemplateBuilderforWord\tmp\tmp\tmp.rtf
RTFProcessor setLocale: en-us
java.lang.StringIndexOutOfBoundsException: Range [0, -1) out of bounds for length 2
at java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:55)
at java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:52)
at java.base/jdk.internal.util.Preconditions$4.apply(Preconditions.java:213)
at java.base/jdk.internal.util.Preconditions$4.apply(Preconditions.java:210)
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:98)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckFromToIndex(Preconditions.java:112)
at java.base/jdk.internal.util.Preconditions.checkFromToIndex(Preconditions.java:349)
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:4963)
at java.base/java.lang.String.substring(String.java:2925)
at oracle.xdo.common.net.XDOStreamHandlerFactory.registerNewProtocols(XDOStreamHandlerFactory.java:155)
at oracle.xdo.template.FOProcessor.initParams(FOProcessor.java:485)
at oracle.xdo.template.FOProcessor.<init>(FOProcessor.java:445)
at RTF2PDF2.runRTFto(RTF2PDF2.java:395)
at RTF2PDF2.runXDO(RTF2PDF2.java:343)
at RTF2PDF2.main(RTF2PDF2.java:235)
Thank you in advance for any help on this!
Best Answer
-
Found the solution:
Run MS Word and change the java version used following the steps below:
a. Click on the BI Publisher tab.
b. Click on Options (at the right side of the menu)
c. In Option, click on Preview tab.
d. Set "Java Home" to your client directory (e.g.: C:\Program Files (x86)\Java\jre8).
e. May also set the "Java Option" to: -Xmx256M.
f. Click on "OK".2
Answers
-
Can you pls check if any of below help?
BI Publisher Desktop Unable to Find the File to Preview: oracle.xdo.XDORuntimeException: Failed in creating XLSX tmp file (Doc ID 2592686.1)
BIP RTF Preview Failed — Oracle Analytics
Thanks.
0 -
I checked the link to the article and it appears that person was encountering an error when trying to run the RTF rather than preview. I did try all the steps recommended and everything checked out.
Steps recommended:
Could you please confirm/provide the following:
1. Are you able to run a sample BI Publisher report? (Can run a report fine, just cannot preview)
Please test "Hello Word" report from C:\Program Files\Oracle\Oracle Analytics Publisher\Oracle Analytics Publisher Desktop\Template Builder for Word\samples\RTF templates\HelloWorld
2. Do you experience the error for all output formats (e.g. PDF, RTF etc)? (Yes)
3. Are you using any specific fonts in the affected BP report? If yes is the font mapping configured in the xdoconfig.xml file? (No)
C:\Program Files\Oracle\Oracle Analytics Publisher\Oracle Analytics Publisher Desktop\Template Builder for Word\config\xdoconfig.xml
4. Are the fonts in question installed under C:\Program Files\Oracle\Oracle Analytics Publisher\Oracle Analytics Publisher Desktop\Template Builder for Word\fonts folder? (N/A)
0 -
Thank you for sharing it with the community !!!
0