# Documents found in scroll, can't be updated?

**URL:** https://discuss.elastic.co/t/documents-found-in-scroll-cant-be-updated/254956
**Category:** Elasticsearch
**Created:** [November 10, 2020, 5:36pm UTC](https://discuss.elastic.co/t/documents-found-in-scroll-cant-be-updated/254956 "2020-11-10T17:36:08Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![coogle](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/coogle/32/15175_2.png) [@coogle](https://discuss.elastic.co/u/coogle)
#### Post date: [November 10, 2020, 5:36pm UTC](https://discuss.elastic.co/t/documents-found-in-scroll-cant-be-updated/254956/1 "2020-11-10T17:36:08Z")

</div>

Hello,

I am using the PHP bindings to do a simple update of an index of about 60k documents via scroll. Basically I am just splitting one field of comma-separated values into two separate lists.

I am encountering something strange: All of my data is coming from elastic search in the following manner:

- Create scroll
- Iterate hits
- Update document fields
- Get new results from scroll ID

But there are a _lot_ of documents that are returned by scroll that when I try to update them I get a "document\_missing\_exception"... how can this be true? What's going on?

---

<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: [December 8, 2020, 5:36pm UTC](https://discuss.elastic.co/t/documents-found-in-scroll-cant-be-updated/254956/2 "2020-12-08T17:36:12Z")

</div>

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