Excel Documents Throw Unable to construct record instance on Full Reindex
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
Problem
When running a full reindex some Excel documents throw this error in the atlassian-confluence.log
1
2
3
2016-09-26 14:41:59,203 WARN [Indexer: 4] [bonnie.search.extractor.BaseAttachmentContentExtractor] addFields Error indexing attachment (Attachment: document.xls v.1 (12345678) username)
-- url: /confluence/admin/reindex.action | traceId: b14e5a6e019c2cd5 | userName: admin | referer: https://confluence.mycompany.au/admin/search-indexes.action | action: reindex
org.apache.poi.hssf.record.RecordFormatException: Unable to construct record instance
Diagnosis
The Excel documents that throw this error are usually saved in an old format of Excel or with non-Office products such as Open Office.
Cause
The format of these documents is not hanadled by the Lucence indexing engine.
Solution
Resolution
To fix this issue please download the affected document and re-save it in a newer version of Excel and re-upload to Confluence.
Was this helpful?