# Error: Scroll must be provided when scanning

**URL:** <https://discuss.elastic.co/t/error-scroll-must-be-provided-when-scanning/134644>\
**Category:** Elasticsearch\
**Created:** [June 5, 2018, 2:33pm UTC](https://discuss.elastic.co/t/error-scroll-must-be-provided-when-scanning/134644 "2018-06-05T14:33:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jensxy](https://avatars.discourse-cdn.com/v4/letter/j/ea666f/32.png) [@Jensxy](https://discuss.elastic.co/u/Jensxy)\
**Post date:** [June 5, 2018, 2:33pm UTC](https://discuss.elastic.co/t/error-scroll-must-be-provided-when-scanning/134644/1 "2018-06-05T14:33:41Z")

</div>

Hello guys,

I have ES v2.4.4 installed and try to execute the following statement in R

> elastic::Search(es\_idx, scroll = "3m", search\_type = "scan")

And i get the following error

> Error: 500 - all shards failed  
> ES stack trace:
> 
> type: exception  
> reason: Scroll must be provided when scanning...

I don't understand why!?

---

<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:** [July 3, 2018, 2:33pm UTC](https://discuss.elastic.co/t/error-scroll-must-be-provided-when-scanning/134644/2 "2018-07-03T14:33:47Z")

</div>

Closed on July 3, 2018, 2:33pm UTC

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