Back

[SOLVED] AppwriteException: Invalid document structure: Unknown attribute

  • 0
  • Databases
  • Web
  • Cloud
Sandeep K. Dasari
8 Jun, 2023, 14:38

Could you please show me your attributes in that collection

TL;DR
Title: [SOLVED] AppwriteException: Invalid document structure: Unknown attribute; Solution: Create an attribute named "content" in the collection. Set the attribute type as a string, specify a character length, and mark it as required. The error occurred because the "content" attribute was not created beforehand.
Sandeep K. Dasari
8 Jun, 2023, 14:38

And Print the error in the catch block, but not your custom text.

Sandeep K. Dasari
8 Jun, 2023, 14:39

console.log(error)

Sandeep K. Dasari
8 Jun, 2023, 14:39

@djv

djv
8 Jun, 2023, 16:13

ok

djv
8 Jun, 2023, 16:14
djv
8 Jun, 2023, 16:14

I havent created any attribut

djv
8 Jun, 2023, 16:14

in my collection

Sandeep K. Dasari
8 Jun, 2023, 16:36

yeah

Sandeep K. Dasari
8 Jun, 2023, 16:36

you have to create it first

Sandeep K. Dasari
8 Jun, 2023, 16:36

with the name

Sandeep K. Dasari
8 Jun, 2023, 16:36

content

Sandeep K. Dasari
8 Jun, 2023, 16:36

and it takes todo string

Sandeep K. Dasari
8 Jun, 2023, 16:37

it clearly said that, you dont have any attribute named content

Sandeep K. Dasari
8 Jun, 2023, 16:37

so, go to collection and create an attribute, put it as string, and give some char length and then click reqired

Sandeep K. Dasari
8 Jun, 2023, 16:38

If you get any error, let me know. 🙂

djv
8 Jun, 2023, 17:51

got it

djv
8 Jun, 2023, 17:51

it solved my problem

djv
8 Jun, 2023, 17:51

thanks a ton

djv
8 Jun, 2023, 17:59

hey @Sandeep K. Dasari I am getting rate limit now

djv
8 Jun, 2023, 17:59

is there any way to escape it

Sandeep K. Dasari
8 Jun, 2023, 17:59

show the error man

djv
8 Jun, 2023, 18:01

now it is solved somehow

Sandeep K. Dasari
8 Jun, 2023, 18:17

alright

Drake
9 Jun, 2023, 17:41

[SOLVED] AppwriteException: Invalid document structure: Unknown attribute

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