# Songs being added and deleted in users' Favorites

**URL:** https://community.glideapps.com/t/songs-being-added-and-deleted-in-users-favorites/6198
**Category:** Report a Bug
**Created:** [March 31, 2020, 2:57pm UTC](https://community.glideapps.com/t/songs-being-added-and-deleted-in-users-favorites/6198 "2020-03-31T14:57:34Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![WyattS](https://avatars.discourse-cdn.com/v4/letter/w/df705f/32.png) [@WyattS](https://community.glideapps.com/u/WyattS)
#### Post date: [March 31, 2020, 2:57pm UTC](https://community.glideapps.com/t/songs-being-added-and-deleted-in-users-favorites/6198/1 "2020-03-31T14:57:34Z")

</div>

Many users have started to report some weird behavior within my app. My app is set up primarily as a music streaming platform that allows users to create a personalized playlist through the Favorites feature. For example, a user would create the following playlist:

1. A
2. B
3. C
4. D
5. E

Quite a few users are sharing screenshots with me that show their Favorites playlist is somehow being manipulated without them toggling Favorites on/off. Tracks are disappearing or being added randomly. Their playlists will look like:

1. A
2. B
3. D
4. F
5. G

Track C will have disappeared and tracks F and G will have been added at random. It seems like this happens whenever I add a new track to the master library of all tracks. Any reason why this would happen? Anything I can do to fix it?

Thanks

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [March 31, 2020, 3:01pm UTC](https://community.glideapps.com/t/songs-being-added-and-deleted-in-users-favorites/6198/2 "2020-03-31T15:01:27Z")

</div>

What key column are you using for your favorites? It has to be a unique value for each song. Also, are you sorting the sheet or manipulation the existing data whenever you add songs? That is more reason to use a unique key. This is a good Row ID.

---

<div class="post-metadata">

### Author: ![WyattS](https://avatars.discourse-cdn.com/v4/letter/w/df705f/32.png) [@WyattS](https://community.glideapps.com/u/WyattS)
#### Post date: [March 31, 2020, 3:08pm UTC](https://community.glideapps.com/t/songs-being-added-and-deleted-in-users-favorites/6198/4 "2020-03-31T15:08:54Z")

</div>

Oh my gosh! I feel like such an idiot. I recently rebuilt my master library a few days ago and never added in a Row ID column. I just added a Row ID in the Glide editor and went in the Favorites component to connect the key but the option for a key is no longer there. Does that mean it auto connected?

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [March 31, 2020, 3:11pm UTC](https://community.glideapps.com/t/songs-being-added-and-deleted-in-users-favorites/6198/5 "2020-03-31T15:11:26Z")

</div>

Huh, I guess so. I just tried it. I saw the key option until I added the row id. That’s really cool. Didn’t know glide connected that up for you. Nice catch!

---

<div class="post-metadata">

### Author: ![WyattS](https://avatars.discourse-cdn.com/v4/letter/w/df705f/32.png) [@WyattS](https://community.glideapps.com/u/WyattS)
#### Post date: [March 31, 2020, 3:14pm UTC](https://community.glideapps.com/t/songs-being-added-and-deleted-in-users-favorites/6198/6 "2020-03-31T15:14:18Z")

</div>

Well I’ll give it a whirl and see if anybody experiences any issues. Thanks for the reminder and quick help, Jeff. It’s very much appreciated!
