# Buckets\_path parameter percents throws error

**URL:** <https://discuss.elastic.co/t/buckets-path-parameter-percents-throws-error/125799>\
**Category:** Elasticsearch\
**Created:** [March 27, 2018, 6:23pm UTC](https://discuss.elastic.co/t/buckets-path-parameter-percents-throws-error/125799 "2018-03-27T18:23:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![saii](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@saii](https://discuss.elastic.co/u/saii)\
**Post date:** [March 27, 2018, 6:23pm UTC](https://discuss.elastic.co/t/buckets-path-parameter-percents-throws-error/125799/1 "2018-03-27T18:23:23Z")

</div>

I have written a watch program which uses percentile to calculate the 90th percentile of the aggregated data and when plotted against threshold,it should alert if its crossing the threshold. The percents parameter contains [90.0] in the array..But, am getting an error while executing the watch.

error: Failed to execute watch input

reason: "SearchPhaseExecutionExeception [all shards failed]; nested : [Parameter [percents] must be an array of doubles, type ArrayList provided instead]; nested : ParseException[Parameter[percents] must be an array of doubles, type ArrayList provided instead]

![image](https://us1.discourse-cdn.com/elastic/original/3X/6/1/61402d7583305b0216fd1cf62e5b8d7caddf078b.png)

I have written 90.0 but when I view the watch code after creating the watch,it shows 90 in the array. Is this what the error is specifying saying it must be double, but found ArrayList..How should I overcome this..Please help me out..

GET \_cat/shards

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/4/c4f5eb4b70bd7930106bd891b3413d3189cb94d8.png)

---

<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:** [April 24, 2018, 6:23pm UTC](https://discuss.elastic.co/t/buckets-path-parameter-percents-throws-error/125799/2 "2018-04-24T18:23:26Z")

</div>

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