# Please help, the predefined UID got replaced

**URL:** <https://discuss.dgraph.io/t/please-help-the-predefined-uid-got-replaced/4991>\
**Category:** Users\
**Created:** [September 2, 2019, 11:04am UTC](https://discuss.dgraph.io/t/please-help-the-predefined-uid-got-replaced/4991 "2019-09-02T11:04:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lan](https://avatars.discourse-cdn.com/v4/letter/l/df788c/32.png) [@Lan](https://discuss.dgraph.io/u/Lan)\
**Post date:** [September 2, 2019, 11:04am UTC](https://discuss.dgraph.io/t/please-help-the-predefined-uid-got-replaced/4991/1 "2019-09-02T11:04:27Z")

</div>

Hi there,

I am importing data from our old system to Dgraph. Since we have already used an unique identifier for an object, I would like to use this as UID.

this is how the triples look like:

\<EA78B173-0A22-47A1-B5F9-F0C0D2B369FB\> \<creator\> \<user103\> .

\<EA78B173-0A22-47A1-B5F9-F0C0D2B369FB\> \<owner\> \<user103\>

I used bulk loader and loaded the data with success. But when I query uid , it is “0x3311bb1” instead of “EA78B173-0A22-47A1-B5F9-F0C0D2B369FB”. What should I do?

---

<div class="post-metadata">

**Author:** ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Post date:** [September 2, 2019, 4:03pm UTC](https://discuss.dgraph.io/t/please-help-the-predefined-uid-got-replaced/4991/2 "2019-09-02T16:03:40Z")

</div>

> [@Lan](#):
>
> I used bulk loader and loaded the data with success. But when I query uid, it is “0x3311bb1” instead of “EA78B173-0A22-47A1-B5F9-F0C0D2B369FB”. What should I do?

Add a string to hold that ID. e.g.

```auto
<EA78B173-0A22-47A1-B5F9-F0C0D2B369FB> <creator> <user103> .

<EA78B173-0A22-47A1-B5F9-F0C0D2B369FB> <owner> <user> .
<EA78B173-0A22-47A1-B5F9-F0C0D2B369FB> <CustomID> "EA78B173-0A22-47A1-B5F9-F0C0D2B369FB" .

```

Add an index to CustomID and search for it.

---

<div class="post-metadata">

**Author:** ![Lan](https://avatars.discourse-cdn.com/v4/letter/l/df788c/32.png) [@Lan](https://discuss.dgraph.io/u/Lan)\
**Post date:** [September 2, 2019, 7:49pm UTC](https://discuss.dgraph.io/t/please-help-the-predefined-uid-got-replaced/4991/3 "2019-09-02T19:49:00Z")

</div>

My intension is to use this string as UID. Is that possible ?

---

<div class="post-metadata">

**Author:** ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Post date:** [September 2, 2019, 7:51pm UTC](https://discuss.dgraph.io/t/please-help-the-predefined-uid-got-replaced/4991/4 "2019-09-02T19:51:08Z")

</div>

> [@Lan](#):
>
> Is that possible ?

No, Dgraph’s UIDs are different from yours. You’re using **UUID**.

---

<div class="post-metadata">

**Author:** ![Lan](https://avatars.discourse-cdn.com/v4/letter/l/df788c/32.png) [@Lan](https://discuss.dgraph.io/u/Lan)\
**Post date:** [September 2, 2019, 7:52pm UTC](https://discuss.dgraph.io/t/please-help-the-predefined-uid-got-replaced/4991/5 "2019-09-02T19:52:16Z")

</div>

Thanks for the fast reply!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/2/2b38fdece2abe5814f2e51bee69d1e67fc304b0a.png) [@system](https://discuss.dgraph.io/u/system)\
**Post date:** [October 2, 2019, 8:05pm UTC](https://discuss.dgraph.io/t/please-help-the-predefined-uid-got-replaced/4991/6 "2019-10-02T20:05:13Z")

</div>

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