
I have created the document and trying to update it.
I am getting error
"Invalid document structure: Attribute "gatePassStatus" has invalid format. Value must be one of (in-progress, dispatched, compleβ¦"
as I I am trying to update so isn't this field should be optional ? As, I passed this anyway during document creation...

Is the value no longer a possible enum?

it is still enum


I mean what are the possible values and what is the current value in the document?

these are possible enums

and this is the value

btw, after passing the enum it seems to work normaly doc is getting updated... but wired part is out of two enum only getting asked to pass gatePassStatus
enum only and it's not asking to pass entryReason

Weird...

ok, found the bug... so, if the enum is last then it only ask for last


I just added then enum and now it's only asking for test
enum to pass

so, if last created attribute is enum
& marked as required
then it's throw error

i can't seem to reproduce the problem. can you give exact steps?

I guess steps were,
- I create a collection two 3 attributes on of them was enum
- Then I deleted the enum attribute and created again ( when mean now this enum is last attrbuties appears in the console)
- Then I create a document
- Then, I treid to update the doc making sure that Doc securrity is eanbled and user is logged ined

version is 1.3.7

You can run these exact steps on a new collection and reproduce the error?

umm, no for some reason it not happening if just created from scratch DB π

We need reproducible steps π

don't know why it was happening it seems very very wired
Recommended threads
- Invalid relationship value. Must be eith...
I'm getting this error when i try to update a document. The collection has a relatipship with 2 other collections. I don't understand why, when i update the doc...
- How do I do this. Please help!
Hey guys! Okay AI can't help so I'm asking real people now. π Anyway I wanted to know how one solve this in Appwrite right now. So I have a form where I wante...
- Delete account on authentication
I'm building an authentication that need to a user a choice of delete their account when they need and on the documentation, if I find delete sessions or sessio...
