# Found two aggregation type definitions

**URL:** <https://discuss.elastic.co/t/found-two-aggregation-type-definitions/217598>\
**Category:** Elasticsearch\
**Created:** [February 3, 2020, 10:10am UTC](https://discuss.elastic.co/t/found-two-aggregation-type-definitions/217598 "2020-02-03T10:10:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![muhammadvinam1212](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@muhammadvinam1212](https://discuss.elastic.co/u/muhammadvinam1212)\
**Post date:** [February 3, 2020, 10:10am UTC](https://discuss.elastic.co/t/found-two-aggregation-type-definitions/217598/1 "2020-02-03T10:10:45Z")

</div>

showing **Found two aggregation type definitions in [viewBy]: [composite] and [terms]** error in api. but perfectly working on kibana developer console.

---

<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:** [March 2, 2020, 10:10am UTC](https://discuss.elastic.co/t/found-two-aggregation-type-definitions/217598/2 "2020-03-02T10:10:52Z")

</div>

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