Skip to content
Init is here / May 19 - 23
Back

Invalid document structure: Unknown attribute

  • 0
  • Functions
zombikaa
22 May, 2025, 15:28

Hi, when i delete a former attribute from a collection, and then i use the databases in a function or web, i get this error: Invalid document structure: Unknown attribute: "formerAttribute"

this happened to me about a year ago too, and i had to delete the collection and rebuild it again, is there a way that this can be fixed? The function doesn't work at the moment because it gives me the error, and the attribute is not even being used in it.

TL;DR
Developers encounter an error message "Invalid document structure: Unknown attribute" when trying to use a database function without a former attribute in a collection. This issue occurred a year ago as well. To resolve this, try updating the database schema and ensuring that the function does not reference the deleted attribute. This should fix the problem without requiring a complete reconstruction of the collection.
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