# Dgraph panic: interface conversion: interface {} is string, not int64

**URL:** <https://discuss.dgraph.io/t/dgraph-panic-interface-conversion-interface-is-string-not-int64/13689>\
**Category:** Dgraph\
**Tags:** dgraph, kind:bug\
**Created:** [April 14, 2021, 8:12am UTC](https://discuss.dgraph.io/t/dgraph-panic-interface-conversion-interface-is-string-not-int64/13689 "2021-04-14T08:12:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lee.chen](https://avatars.discourse-cdn.com/v4/letter/l/c0e974/32.png) [@lee.chen](https://discuss.dgraph.io/u/lee.chen)\
**Post date:** [April 14, 2021, 8:12am UTC](https://discuss.dgraph.io/t/dgraph-panic-interface-conversion-interface-is-string-not-int64/13689/1 "2021-04-14T08:12:13Z")

</div>

Various types of erroneous problems often occur in our cluster, but we can’t find the cause of the trigger。  
May I ask what the following questions are？  
Such as：

```auto
  panic: interface conversion: interface {} is string, not int64 
/home/user/panorama-dgraph-images/dgraph/tok/tok.go:194
	github.com/dgraph-io/dgraph/tok.BuildTokens(0x1eb51e0, 0xc00037ed30, 0x23b5590, 0x338edc0, 0x23b5590, 0x338edc0, 0xc00037ed30, 0x0, 0x0)
	/home/user/dgraph/worker/executor.go:120 +0x53d
	/home/user/dgraph/worker/executor.go:279 +0x130
	/home/user/dgraph/tok/tok.go:108 +0x63
github.com/dgraph-io/dgraph/worker.generateTokenKeys(0xc0017d4000, 0xc00037ed10, 0x1, 0x1, 0x12, 0xc00037ed00, 0x1, 0x1, 0xc006fc8740)
github.com/dgraph-io/dgraph/worker.generateTokenKeys(0xc0017d4000, 0xc00037ed10, 0x1, 0x1, 0x12, 0xc00037ed00, 0x1, 0x1, 0xc006fc8740)
github.com/dgraph-io/dgraph/worker.generateConflictKeys(0x23ab7e0, 0xc00004a080, 0xc00695ea00, 0x0)
github.com/dgraph-io/dgraph/worker.(*executor).processMutationCh(0xc0003e27d0, 0x23ab7e0, 0xc00004a080, 0xc00030b380)
/home/user/panorama-dgraph-images/dgraph/worker/executor.go:220 +0x46d

```

---

<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:** [April 14, 2021, 1:13pm UTC](https://discuss.dgraph.io/t/dgraph-panic-interface-conversion-interface-is-string-not-int64/13689/2 "2021-04-14T13:13:30Z")

</div>

What version? this is an old issue that exists in some old version. But it also could be a wrong value type in the dataset not corroborating with the schema.

---

<div class="post-metadata">

**Author:** ![lee.chen](https://avatars.discourse-cdn.com/v4/letter/l/c0e974/32.png) [@lee.chen](https://discuss.dgraph.io/u/lee.chen)\
**Post date:** [April 15, 2021, 4:18am UTC](https://discuss.dgraph.io/t/dgraph-panic-interface-conversion-interface-is-string-not-int64/13689/3 "2021-04-15T04:18:08Z")

</div>

v20.11.2，I have no way of knowing when it will happen

---

<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:** [July 21, 2021, 3:23pm UTC](https://discuss.dgraph.io/t/dgraph-panic-interface-conversion-interface-is-string-not-int64/13689/4 "2021-07-21T15:23:51Z")

</div>

@lee.chen do you still have this issue? (you may have upgraded since then) - This error happens in some specific cases. If you find out what piece of data is triggering this we can fix this.

BTW, sorry for the very late reply.

Cheers.
