# Receiving "Unable to save document" when submitting documents through API

**URL:** <https://discuss.elastic.co/t/receiving-unable-to-save-document-when-submitting-documents-through-api/211468>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [December 11, 2019, 1:19pm UTC](https://discuss.elastic.co/t/receiving-unable-to-save-document-when-submitting-documents-through-api/211468 "2019-12-11T13:19:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harry\_Knowles](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harry_knowles/32/48727_2.png) [@Harry\_Knowles](https://discuss.elastic.co/u/Harry_Knowles)\
**Post date:** [December 11, 2019, 1:19pm UTC](https://discuss.elastic.co/t/receiving-unable-to-save-document-when-submitting-documents-through-api/211468/1 "2019-12-11T13:19:25Z")

</div>

Hi, can't find this error anywhere in the docs. I'm wondering when this error is supposed to be thrown? I'm using a Shopify webhook to send product data to the search engine when product information updates and I seem to be getting this error a lot more than it being successful.

Is it possible that this is thrown when a documents contents hasn't changed?

Thanks, Harry.

---

<div class="post-metadata">

**Author:** ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)\
**Post date:** [December 12, 2019, 11:55am UTC](https://discuss.elastic.co/t/receiving-unable-to-save-document-when-submitting-documents-through-api/211468/2 "2019-12-12T11:55:23Z")

</div>

What API endpoint are you using? And can you share the exact response?

---

<div class="post-metadata">

**Author:** ![Harry\_Knowles](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harry_knowles/32/48727_2.png) [@Harry\_Knowles](https://discuss.elastic.co/u/Harry_Knowles)\
**Post date:** [December 12, 2019, 1:49pm UTC](https://discuss.elastic.co/t/receiving-unable-to-save-document-when-submitting-documents-through-api/211468/3 "2019-12-12T13:49:27Z")

</div>

Hi @JasonStoltz,

The API endpoint I am using is the documents one. /api/as/v1/engines/{engine}/documents  
Response:

> **Response**
>
> ```
> [{
> "id": "10150644687_15918223360071_red_damson_18_408424911",
> "errors": [
> "Unable to save document"
> ]
> }]
> 
> ```

For reference, the document sent was:

> **Document**
>
> ```
> [
> {
> "id": "10150644687_15918223360071_red_damson_18_408424911",
> "pid": 10150644687,
> "vid": 15918223360071,
> "product_group": "10150644687-Damson",
> "handle": "ladies-huggate-fleece-waistcoat",
> "title": "Ladies Huggate Fleece Waistcoat",
> "gender": "ladies",
> "fit": "N/A",
> "waist": "N/A",
> "length": "N/A",
> "size": "18",
> "color": "red",
> "color_title": "Damson",
> "product_type": "Gilet",
> "published_at": "2019-12-05T09:46:34+00:00",
> "product_tags": " farm, fleece, fleeces, full-zip, game-fair, gilets, ladies, ladies-wrap-up, light, mothers-day, pricedzero, shoot-in-style, spring-style, style:fleece light, test-sale-tag, Womens Shooting Gilets, xmas",
> "sku": "405311-18",
> "quantity": 8,
> "price": "35.00",
> "compare_at_price": "0.00",
> "image": "https://cdn.shopify.com/s/files/1/0740/6535/products/huggate-damson_2.jpg?v=1543238478",
> "hover": "https://cdn.shopify.com/s/files/1/0740/6535/products/huggate-damson_4.jpg?v=1543238478",
> "col_sort": "0000000012",
> "collection": 408424911,
> "col_image": ""
> },
> 
> ```

Thanks

---

<div class="post-metadata">

**Author:** ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)\
**Post date:** [December 13, 2019, 12:00pm UTC](https://discuss.elastic.co/t/receiving-unable-to-save-document-when-submitting-documents-through-api/211468/4 "2019-12-13T12:00:28Z")

</div>

I'm not sure what is going on there @Harry_Knowles. I think you should contact [support@elastic.co](mailto:support@elastic.co), they’ll be able to take a deeper look.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 10, 2020, 12:00pm UTC](https://discuss.elastic.co/t/receiving-unable-to-save-document-when-submitting-documents-through-api/211468/5 "2020-01-10T12:00:37Z")

</div>

Closed on January 10, 2020, 12:00pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
