My Oracle Support Banner

BI Publisher Excel Preview Throwing ArrayIndexOutOfBoundsException Errors When File Name Is 40 Characters or Longer (Doc ID 2793220.1)

Last updated on NOVEMBER 03, 2022

Applies to:

Oracle Fusion Financials Common Module Cloud Service - Version and later
Information in this document applies to any platform.


Create a BI Publisher Report template as an Excel file and then save the file.

Rename the file to a name that has 40 characters or more.

When Previewing the Excel template with file name longer 40 characters or longer, it errors with:


Preview Failed
Start Excel Preview
only open: false
mTemplate: C:\Users\scurry3\AppData\Local\Oracle\BIPublisher\TemplateBuilderforExcel\tmp\tmp\tmp.xls
mTmpTemplate: C:\Users\scurry3\AppData\Local\Oracle\BIPublisher\TemplateBuilderforExcel\tmp/tmp.xls
java.lang.ArrayIndexOutOfBoundsException: -1
at oracle.xdo.template.excel.object.SheetObject.addComponent(
at oracle.xdo.template.excel.object.BookManager.collectAllNameObjects(
at oracle.xdo.template.excel.object.BookManager.process(
at oracle.xdo.template.excel.ExcelController.parseExcelTemplate(
at oracle.xdo.template.excel.ExcelController.generateXSL(
at oracle.xdo.template.excel.ExcelController.process(
at oracle.xdo.template.ExcelProcessor.process(
at ExcelPreview.runXDO(
at ExcelPreview.main(

Tested the report name with 20, 25, 30, 35, and 39 characters and they all worked fine.
But when the file name is 40 or more characters it errors with the java.lang.ArrayIndexOutOfBoundsException error.

No issues when using RTF, it works fine.


Create a BI Publisher Report template as an Excel file.
Open this Excel file in your Excel 365 version:
Load sample data.
Then preview the report in Excel.
This should work ok.

Close the Excel Preview version
Then save "Save As" the original file with a name more than 40 characters, something like:
Copy of ORACLE_EXP_Outstanding_OneCard_Transactions_TMP

Now, preview the new file, with the name longer than 40 characters, in Excel and it errors when using Microsoft Excel for Microsoft 365 MSO.



 Customer is using Microsoft 365 Apps for enterprise > Microsoft Excel for Microsoft 365 MSO



To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.