# Duplicate entry error. Can't access stats tab

**URL:** <https://community.beestat.io/t/duplicate-entry-error-cant-access-stats-tab/1085>\
**Category:** Bug Reports\
**Created:** [January 28, 2024, 1:42am UTC](https://community.beestat.io/t/duplicate-entry-error-cant-access-stats-tab/1085 "2024-01-28T01:42:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Goose01](https://community.beestat.io/letter_avatar_proxy/v4/letter/g/73ab20/32.png) [@Goose01](https://community.beestat.io/u/Goose01)\
**Post date:** [January 28, 2024, 1:42am UTC](https://community.beestat.io/t/duplicate-entry-error-cant-access-stats-tab/1085/1 "2024-01-28T01:42:46Z")

</div>

Started getting this error when trying to view that thermostat runtime details. It happened after I tried to input a custom date in the settings. Now all of the time to heat and statistics are unknown and not accessible

Any idea how to fix this error?

 ![1000117676](https://community.beestat.io/uploads/default/original/1X/0c295f45800c0c9f48f26117165eb78db38690b5.jpeg)

---

<div class="post-metadata">

**Author:** ![ziebelje](https://community.beestat.io/user_avatar/community.beestat.io/ziebelje/32/633_2.png) [@ziebelje](https://community.beestat.io/u/ziebelje)\
**Post date:** [January 28, 2024, 4:24am UTC](https://community.beestat.io/t/duplicate-entry-error-cant-access-stats-tab/1085/2 "2024-01-28T04:24:06Z")

</div>

I believe this bug should now be fixed. Oversight on my part with some time zone/UTC stuff.

> <https://github.com/beestat/app/issues/403>
>
> beestat Analyze and compare tabs fail with following error code. May need some a…dditional sanity checking around line 653 in api/runtime.php
> 
> API call failed: Duplicate entry 'xxxxx-xxxxx-2023-12-16' for key 'profile.user\_id\_thermostat\_id\_date'
> 
> Sorry about that! This error has been logged and will be investigated and appropriately punished. Please reach out to contact@beestat.io if it persists.
> 
> {
> "success": false,
> "data": {
> "error\_message": "Duplicate entry 'xxxxx-xxxxx-2023-12-16' for key 'profile.user\_id\_thermostat\_id\_date'",
> "error\_code": 1062
> }
> }

---

<div class="post-metadata">

**Author:** ![Goose01](https://community.beestat.io/letter_avatar_proxy/v4/letter/g/73ab20/32.png) [@Goose01](https://community.beestat.io/u/Goose01)\
**Post date:** [January 28, 2024, 4:56am UTC](https://community.beestat.io/t/duplicate-entry-error-cant-access-stats-tab/1085/3 "2024-01-28T04:56:08Z")

</div>

Yep back to working again thx!

---

<div class="post-metadata">

**Author:** ![system](https://community.beestat.io/uploads/default/original/1X/1aae50114ef63970cb76f963398ca488a1165eda.png) [@system](https://community.beestat.io/u/system)\
**Post date:** [February 4, 2024, 4:56am UTC](https://community.beestat.io/t/duplicate-entry-error-cant-access-stats-tab/1085/4 "2024-02-04T04:56:56Z")

</div>

Closed on February 4, 2024, 4:56am UTC

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