Back

Enum Attribute Issue

  • 0
  • Databases
  • Flutter
hamed
19 Jul, 2023, 13:05

Hello there,

I'm experiencing an issue while creating a document. Whenever my Enum attribute element is greater than 8 characters, I encounter a 500 server error, and the log message reads: ''' Data too long for column attribute_name at row 1.''' However, it works fine when the length is 8 characters or less.

TL;DR
The user is experiencing an issue when creating a document with an Enum attribute. If the attribute is longer than 8 characters, a 500 server error occurs, with a log message stating that the data is too long for the column. The solution is to update the enum in the collection settings.
Drake
20 Jul, 2023, 05:54

did you update your enum in your collection settings? if so, this is probably the related problem: https://github.com/appwrite/appwrite/issues/5595

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