# Distinct data types sharing UID's & referencing eachother improperly

**URL:** <https://forum.bubble.io/t/distinct-data-types-sharing-uids-referencing-eachother-improperly/148645>\
**Category:** Bugs\
**Created:** [April 28, 2021, 4:11pm UTC](https://forum.bubble.io/t/distinct-data-types-sharing-uids-referencing-eachother-improperly/148645 "2021-04-28T16:11:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jacob\_D](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@Jacob\_D](https://forum.bubble.io/u/Jacob_D)\
**Post date:** [April 28, 2021, 4:11pm UTC](https://forum.bubble.io/t/distinct-data-types-sharing-uids-referencing-eachother-improperly/148645/1 "2021-04-28T16:11:19Z")

</div>

Hi Bubblers,

Two different data types (in my case, “cart” and “class”) seem to be sharing unique ID’s. When I refer to a data type “cart” from a type “payment method”, the data type “cart” is being referred to with a “Class” unique ID.

In other words, I have data types A (“Cart”) B (“Payment method”) & C (“Class”) who reference each other. However, when I refer to B’s A "Payment method’s Cart), what should be A’s unique ID (Cart’s Cart unique ID) is instead referring to C’s unique ID (Class’ Class unique ID).

Here are some screenshots showing where A (Cart) and C (Class) appear to be sharing a unique ID (this is consistent), that A and C are indeed different types, and of the workflows that create the references. What am I doing wrong or is this a bug?

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/7/e/7e67642fa2863095c3f6f1f260a43f93d322c3b4.png)

![image](https://us1.discourse-cdn.com/bubble/original/3X/1/e/1e62a48f41a83b20b83d14a69b74158c17a86d4e.png)

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/8/5/8522b4da23394d6e6185a394a7067550f2b53c15.png)

![image](https://us1.discourse-cdn.com/bubble/original/3X/6/3/63226efb898eb456e011a2cd359dfbc9f0be7286.png)

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/d/4/d4a36a5f33afa2b8757adb2799f058065e6877ea.png)

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/f/3/f3ea7fb7cf804476c7b0458b79f10f1e1e63b2a6.png)

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/3/6/361eb48af005832ff20a3b5fcc973423bd633c9c.png)

---

<div class="post-metadata">

**Author:** ![sudsy](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sudsy/32/114637_2.png) [@sudsy](https://forum.bubble.io/u/sudsy)\
**Post date:** [April 28, 2021, 4:52pm UTC](https://forum.bubble.io/t/distinct-data-types-sharing-uids-referencing-eachother-improperly/148645/2 "2021-04-28T16:52:18Z")

</div>

Hi @Jacob_D,

How exactly is this causing problems in your app? They are two _different_ **Things** of two _different_ data types, so it doesn’t seem like it should be an issue. If two different **Things** of the _same_ data type shared the same UID, then yeah, that would be cause for concern.

Or are you saying that you actually see data from one type where you expect to see data from the other type?

-Steve

---

<div class="post-metadata">

**Author:** ![Jacob\_D](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@Jacob\_D](https://forum.bubble.io/u/Jacob_D)\
**Post date:** [April 28, 2021, 5:20pm UTC](https://forum.bubble.io/t/distinct-data-types-sharing-uids-referencing-eachother-improperly/148645/3 "2021-04-28T17:20:41Z")

</div>

Two different things of two different data types share a UID. When I want to link my “Payment method” to its “Cart,” it is instead adding the “Class” UID where it should instead be the “Cart’s” UID. I am seeing data from one type where I expect to see data from the other type. I can’t link my “Payment method” to its “Cart” because it is replacing the Cart’s UID with the Cart’s Class UID.

---

<div class="post-metadata">

**Author:** ![sudsy](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sudsy/32/114637_2.png) [@sudsy](https://forum.bubble.io/u/sudsy)\
**Post date:** [April 28, 2021, 5:58pm UTC](https://forum.bubble.io/t/distinct-data-types-sharing-uids-referencing-eachother-improperly/148645/4 "2021-04-28T17:58:30Z")

</div>

> [@Jacob\_D](#):
>
> Two different things of two different data types share a UID.

That, in and of itself, should _not_ be a problem.

In your second-to-last screenshot, both a **Cart** and **Class** are clearly being set for the **Payment Option** data type.

(I don’t understand what **Class** is or how it’s being used, and you didn’t share its data structure; although I’m not sure any of that’s relevant to the perceived issue.)

> [@Jacob\_D](#):
>
> I am seeing data from one type where I expect to see data from the other type.

I don’t see that in any screenshot, but if you’re seeing a field value (other than the UID) of one type where you expect to see data from the other type in the front end, then you should submit an [official bug report](https://bubble.io/bug_report).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [May 12, 2021, 4:11pm UTC](https://forum.bubble.io/t/distinct-data-types-sharing-uids-referencing-eachother-improperly/148645/5 "2021-05-12T16:11:21Z")

</div>

Closed on May 12, 2021, 4:11pm UTC

This topic was automatically closed after 14 days. New replies are no longer allowed.
