[SOLVED] Failed to generate collection. ...http 400...attribute_limit_exceeded
- 0
- Functions
- Cloud

Failed to generate Short URL collection. {"code":400,"type":"attribute_limit_exceeded","response":{"message":"Attribute limit exceeded","code":400,"type":"attribute_limit_exceeded","version":"0.11.4"}}
I am generating exactly 8 attributes for one collection, one by one, and it fails on about 5. Is this yet another internal limit where I can't do small batch of 8 attribute creation?

url attributes take up a lot of space

hmm

I'll try toreconfigure

so the underlying database has a maximum size of 65kb. here's how much each attribute takes up:
+----------------+-----------------------------------------+
| Attribute Type | Bytes |
+----------------+-----------------------------------------+
| String | 4 * length |
| Integer | 8 for max values > 2,147,483,647 else 4 |
| Float | 4 |
| Boolean | 1 |
| URL | 4 * 2000 |
| Email | 4 * 254 |
| IP | 4 * 39 |
| Enum | 4 * length of longest enum value |
+----------------+-----------------------------------------+

as you can see URLs take up a lot of space

I actually don't make URL

but a string

Still, I might had too large length on it

possibly...what are the attributes?


I had 9999 on string ones xD

Ok yeah that was the issue. Thanks for the clarification on it. It's resolved 👍

[SOLVED] Failed to generate collection. ...http 400...attribute_limit_exceeded
Recommended threads
- How do load test in appwrite?
I am new to testing and stuff and I am unsure of how to get started on load testing with appwrite. I am using SvelteKit as my framework and appwrite for everyth...
- CLI Error using appwrite init site
Hello 👋 , we got error using CLI `appwrite init site` for any project on latest `Windows 11`, the error is ```bash Error: Command failed: cmd /c "mkdir -p . ...
- What's the best way to store user subscr...
I am confused whether I should store the external subscription status in the user object itself, or have different database for this.
