Excel Documents Throw Unable to construct record instance on Full Reindex
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
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
Problem
When running a full reindex some Excel documents throw this error in the atlassian-confluence.log
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.
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.