Error on parallel index calls with the same id "Unable to save document"

URL - /api/as/v1/engines/{engine-name}/documents
Method - POST
Client - elastic-app-search==7.6.0 (Python)

I am making 4 index document calls with the same document body (with id). On these first 2-3 calls are failing and the final 1-2 succeeds.
In case of failure, the API returns 200 response, but the response body is

[
  {
    "id": "144",
    "errors": [
      "Unable to save document"
    ]
  }
]

Why could this be happening?

How often does this happen? Does this happen consistently?

Do all of these documents have the same id? Are you actually able to save multiple documents with the same id? Those should be unique.

It was failing consistently that day, but it stopped happening now. I had then created a support ticket too with more details like engine-name, url etc.

All documents had the same id and the documents to were the same (except for a time field which had the time of call).

I will reply on this thread if I see those error again.

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