![](https://cdn.discordapp.com/avatars/337310594598305792/94d0781ff2d1f4d7acb7870a13ef1358.webp)
Error while creating index:
Index length is longer than the maximum: 768 (400)
index type: unique
index name: unique_externalId
attributes params: String, 1024 length,
dart server sdk ver 8.0.0
works fine on 1.3.8
![](https://cdn.discordapp.com/avatars/337310594598305792/94d0781ff2d1f4d7acb7870a13ef1358.webp)
found it there
![](https://cdn.discordapp.com/avatars/337310594598305792/94d0781ff2d1f4d7acb7870a13ef1358.webp)
![](https://cdn.discordapp.com/avatars/337310594598305792/94d0781ff2d1f4d7acb7870a13ef1358.webp)
but why this is 768?
![](https://cdn.discordapp.com/avatars/462046107556511744/504fd808296728e8e89d82b8ea1e77a9.webp)
this is the maximum by the database (mariadb/mysql)
![](https://cdn.discordapp.com/avatars/337310594598305792/94d0781ff2d1f4d7acb7870a13ef1358.webp)
[SOLVED] Index length is longer than the maximum error on 1.4
![](https://cdn.discordapp.com/avatars/462046107556511744/504fd808296728e8e89d82b8ea1e77a9.webp)
let me discuss it with the team
![](https://cdn.discordapp.com/avatars/337310594598305792/94d0781ff2d1f4d7acb7870a13ef1358.webp)
It would be best to put that info into the docs
Recommended threads
- How to alter attributes in collections
Hi there, unluckily I made avatar as string. I should have make it URL. I forgot. Now my URLs for avatar coming more than 156 char. For hot fix, I need to use l...
- add document error
im getting this error ```{ "message": "No Appwrite project was specified. Please specify your project ID when initializing your Appwrite SDK.", "code": 401, "ty...
- I'm migrating from Firebase Firestore to...
I'm getting an error with all documents in my Firestore db that a value must be an integer, I made a function that check all my docs attribute value if it's int...
![](/images/bgs/pre-footer.png)