# Mapper Attachment Plugin - error when uploading .xlsx attachments

**URL:** <https://discuss.elastic.co/t/mapper-attachment-plugin-error-when-uploading-xlsx-attachments/70213>\
**Category:** Elasticsearch\
**Created:** [December 29, 2016, 2:17pm UTC](https://discuss.elastic.co/t/mapper-attachment-plugin-error-when-uploading-xlsx-attachments/70213 "2016-12-29T14:17:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bdevaca](https://avatars.discourse-cdn.com/v4/letter/b/b9bd4f/32.png) [@bdevaca](https://discuss.elastic.co/u/bdevaca)\
**Post date:** [December 29, 2016, 2:17pm UTC](https://discuss.elastic.co/t/mapper-attachment-plugin-error-when-uploading-xlsx-attachments/70213/1 "2016-12-29T14:17:18Z")

</div>

I'm seeing this exception when trying to load .xlsx attachments.

I turned on ignore errors to false and I see this error now when loading .xlsx files.

{"error":  
{"root\_cause":[  
{"type":"mapper\_parsing\_exception","reason":"Failed to extract [-1] characters of text for [null] :  
Could not initialize class org.apache.poi.POIXMLProperties"}],  
"type":"mapper\_parsing\_exception","reason":"Failed to extract [-1] characters of text for [null] :  
Could not initialize class org.apache.poi.POIXMLProperties","caused\_by":{"type":"no\_class\_def\_found\_error","reason":"Could not initialize class org.apache.poi.POIXMLProperties"}},  
"status":400}

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 29, 2016, 2:34pm UTC](https://discuss.elastic.co/t/mapper-attachment-plugin-error-when-uploading-xlsx-attachments/70213/2 "2016-12-29T14:34:46Z")

</div>

Duplicate of

> [@Mapper Attachment Plugin](https://discuss.elastic.co/t/mapper-attachment-plugin/70160):
>
> I've installed the mapper attachment plugin and have been loading different types of attachments and have been doing searches on words that are in the attachment content. It seems to work fine for .txt, .doc, .rtf, .pdf However, I can't get it to find content in .xlsx or .ppt files. Using Sense, I can see that the .xlsx and .ppt files were loaded, but the query is not returning any results when I search for words that are in these attachments. Any ideas? This is an example of my query: GET /t…

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 29, 2016, 9:06pm UTC](https://discuss.elastic.co/t/mapper-attachment-plugin-error-when-uploading-xlsx-attachments/70213/3 "2016-12-29T21:06:28Z")

</div>


