# Leaderboard rank returns null after upgrade — existing leaderboards not respecting enableRank

**URL:** <https://forum.heroiclabs.com/t/leaderboard-rank-returns-null-after-upgrade-existing-leaderboards-not-respecting-enablerank/6495>\
**Category:** Runtime Framework\
**Tags:** leaderboards\
**Created:** [January 14, 2026, 10:32am UTC](https://forum.heroiclabs.com/t/leaderboard-rank-returns-null-after-upgrade-existing-leaderboards-not-respecting-enablerank/6495 "2026-01-14T10:32:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GunWoo-KOR](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/gunwoo-kor/32/2725_2.png) [@GunWoo-KOR](https://forum.heroiclabs.com/u/GunWoo-KOR)\
**Post date:** [January 14, 2026, 10:32am UTC](https://forum.heroiclabs.com/t/leaderboard-rank-returns-null-after-upgrade-existing-leaderboards-not-respecting-enablerank/6495/1 "2026-01-14T10:32:17Z")

</div>

I am currently using the `ListLeaderboardRecordsAroundOwnerAsync` function in Unity to retrieve the player’s own rank. After upgrading the Nakama version, the player’s rank started returning null. I found the related bug and changed the `enableRank` value to true, and newly created leaderboards correctly return ranks. However, the existing leaderboards still do not return rank values.

Is there any way to configure `enableRank` for existing leaderboards, or to temporarily back up the data from the existing leaderboard and migrate it to a newly created leaderboard?

---

<div class="post-metadata">

**Author:** ![sesposito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sesposito/32/2594_2.png) [@sesposito](https://forum.heroiclabs.com/u/sesposito)\
**Post date:** [January 14, 2026, 10:48am UTC](https://forum.heroiclabs.com/t/leaderboard-rank-returns-null-after-upgrade-existing-leaderboards-not-respecting-enablerank/6495/2 "2026-01-14T10:48:19Z")

</div>

Hi @GunWoo-KOR,

To change the `enableRanks` flag for an existing leaderboard, you have to use some custom sql:

```sql
UPDATE leaderboard SET enable_ranks = true WHERE id = <leaderboard_id>

```

and restart the server, so that the rank cache can be primed.

Best.
