Back

Attribute limit exceeded

  • 0
  • Self Hosted
  • Databases
  • Web
Petchav
20 Apr, 2024, 16:59

Hello, I have a problem with my appwrite server when I try to add an attribute to my collection, I get the following error:

TypeScript
[Error] Timestamp: 2024-04-20T16:53:10+00:00
[Error] Method: POST
[Error] URL: /v1/databases/:databaseId/collections/:collectionId/attributes/url
[Error] Type: Appwrite\Extend\Exception
[Error] Message: Attribute limit exceeded
[Error] File: /usr/src/code/app/controllers/api/databases.php
[Error] Line: 152

I've looked at other similar topics and it's explained that you have to use a size greater than 16383 for appwrite to use a TEXT instead of a VARCHAR.

But that doesn't help me much, because I'm having trouble when I try to create an Url attribute and I can't select the size for this type.

If anyone can help me it would be really nice.

TL;DR
Problem: Developer encountering "Attribute limit exceeded" error when attempting to add an attribute to a collection in the appwrite server. Unsure how to set size for URL attribute to resolve the issue. Solution: To resolve the "Attribute limit exceeded" error, consider changing the datatype to TEXT instead of VARCHAR in appwrite and ensure the size is set greater than 16383. Unfortunately, setting size for URL attribute directly might not be possible.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more