# Is there a limit on uid？

**URL:** <https://discuss.dgraph.io/t/is-there-a-limit-on-uid/15761>\
**Category:** Dgraph\
**Tags:** dgraph\
**Created:** [October 8, 2021, 1:34pm UTC](https://discuss.dgraph.io/t/is-there-a-limit-on-uid/15761 "2021-10-08T13:34:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![WWK-TJU](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/wwk-tju/32/8948_2.png) [@WWK-TJU](https://discuss.dgraph.io/u/WWK-TJU)\
**Post date:** [October 8, 2021, 1:34pm UTC](https://discuss.dgraph.io/t/is-there-a-limit-on-uid/15761/1 "2021-10-08T13:34:32Z")

</div>

When uid is automatically defined manually, the following error occurred

grpc.\_channel.\_InactiveRpcError: \<\_InactiveRpcError of RPC that terminated with:  
status = StatusCode.UNKNOWN  
details = “Uid: [325687344] cannot be greater than lease: [1492476]”  
debug\_error\_string = “{“created”:”@1633675607.650000000",“description”:“Error received from peer ipv4:192.168.132.131:9080”,“file”:“src/core/lib/surface/call.cc”,“file\_line”:1068,“grpc\_message”:“Uid: [325687344] cannot be greater than lease: [1492476]”,“grpc\_status”:2}"

---

<div class="post-metadata">

**Author:** ![Naman](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/naman/32/3498_2.png) [@Naman](https://discuss.dgraph.io/u/Naman)\
**Post date:** [October 8, 2021, 1:39pm UTC](https://discuss.dgraph.io/t/is-there-a-limit-on-uid/15761/2 "2021-10-08T13:39:42Z")

</div>

UIDs are leased by `dgraph zero`. If you do a mutation using blank nodes, then `dgraph alpha` leases the UID from zero. You can directly mutate on only those UIDs that are less than the max leased UID.  
In case you want to mutate on a higher UID, you can lease them directly by using [`/assign`](https://dgraph.io/docs/deploy/dgraph-zero/#endpoints) endpoint on zero

Just to mention, UIDs are bounded by `MaxUint64`.
