# Failed to decode scrollId

**URL:** <https://discuss.elastic.co/t/failed-to-decode-scrollid/43663>\
**Category:** Elasticsearch\
**Created:** [March 7, 2016, 3:04pm UTC](https://discuss.elastic.co/t/failed-to-decode-scrollid/43663 "2016-03-07T15:04:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rraghuvittal](https://avatars.discourse-cdn.com/v4/letter/r/ea5d25/32.png) [@rraghuvittal](https://discuss.elastic.co/u/rraghuvittal)\
**Post date:** [March 7, 2016, 3:04pm UTC](https://discuss.elastic.co/t/failed-to-decode-scrollid/43663/1 "2016-03-07T15:04:30Z")

</div>

Hi All,

I have to retrieve all the id's using single query.

I am trying to use the scroll functionality it is giving me "Failed to decode Scroll Id".

Getting the scroll Id by using the below  
GET gfrc\_v0c\_001/\_search?scroll=2m&search\_type=scan  
{  
"query": {  
"match\_all" : {  
}  
}  
}

Passing the Scroll Id again by using below giving me exceptions.

GET gfrc\_v0c\_001/\_search/scroll=2m  
{  
"scroll" : "2m",  
"scroll\_id" : "c2Nhbjs1OzMyNzQ6RGQ1aW1HbWdSQ1dKckNkNU1ycUpGZzszMjc1OkRkNWltR21nUkNXSnJDZDVNcnFKRmc7MzI3NjpEZDVpbUdtZ1JDV0pyQ2Q1TXJxSkZnOzMyNzc6RGQ1aW1HbWdSQ1dKckNkNU1ycUpGZzszMjc4OkRkNWltR21nUkNXSnJDZDVNcnFKRmc7MTt0b3RhbF9oaXRzOjIxMjA7"  
}  
{  
"error": "InvalidTypeNameException[mapping type name [_search] can't start with '_']",  
"status": 400  
}

GET \_search/scroll  
{  
"scroll" : "2m",  
"scroll\_id" : "c2Nhbjs1OzMyNzQ6RGQ1aW1HbWdSQ1dKckNkNU1ycUpGZzszMjc1OkRkNWltR21nUkNXSnJDZDVNcnFKRmc7MzI3NjpEZDVpbUdtZ1JDV0pyQ2Q1TXJxSkZnOzMyNzc6RGQ1aW1HbWdSQ1dKckNkNU1ycUpGZzszMjc4OkRkNWltR21nUkNXSnJDZDVNcnFKRmc7MTt0b3RhbF9oaXRzOjIxMjA7"  
}

{  
"error": "ElasticsearchIllegalArgumentException[Failed to decode scrollId]; nested: IOException[Bad Base64 input character decimal 123 in array position 0]; ",  
"status": 400  
}

please help me.

---

<div class="post-metadata">

**Author:** ![rraghuvittal](https://avatars.discourse-cdn.com/v4/letter/r/ea5d25/32.png) [@rraghuvittal](https://discuss.elastic.co/u/rraghuvittal)\
**Post date:** [March 9, 2016, 9:14am UTC](https://discuss.elastic.co/t/failed-to-decode-scrollid/43663/2 "2016-03-09T09:14:24Z")

</div>

This issue is coming in Elastic Search 1.7 and it is working fine in Elastic 2.0. in our DEV environment we have Elastic 1.7.

any alternatives to solve this issue.

---

<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 5, 2017, 11:09pm UTC](https://discuss.elastic.co/t/failed-to-decode-scrollid/43663/3 "2017-07-05T23:09:59Z")

</div>


