# Error Code 5003 When Accessing Analytics Queries API

**URL:** <https://community.bitmovin.com/t/error-code-5003-when-accessing-analytics-queries-api/1140>\
**Category:** Support\
**Tags:** bitmovin-analytics, api\
**Created:** [August 23, 2022, 10:35am UTC](https://community.bitmovin.com/t/error-code-5003-when-accessing-analytics-queries-api/1140 "2022-08-23T10:35:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![albertobitmovin](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/albertobitmovin/32/256_2.png) [@albertobitmovin](https://community.bitmovin.com/u/albertobitmovin)\
**Post date:** [October 24, 2022, 7:01am UTC](https://community.bitmovin.com/t/error-code-5003-when-accessing-analytics-queries-api/1140/2 "2022-10-24T07:01:05Z")

</div>

Hi Phill, the error you’re getting indicates that the total count of all possible elements to be returned is so high that it cannot be handled in one single query. There are some limits put intentionally in place with the aim of protecting performance and database stability. For example, when custom data is involved, the cardinality limit is 15000 elements, as you can read here: [Configuration Guide](https://bitmovin.com/docs/analytics/articles/analytics-configuration-overview/)

> For `customData` field queries we allow a cardinality of maximum of 15,000 distinct values per `customData` field within the selected time-frame.

where limits apply to any field that is subject to have a high cardinality (number of elements) as well…so in order to reduce the cardinality (number of elements returned) of your query and have it work, it would be advisable to add as many filters as possible and to reduce the groupBy elements to the minimum possible. Regards

---

_[View the full topic](https://community.bitmovin.com/t/error-code-5003-when-accessing-analytics-queries-api/1140)._
