Back

Invalid document structure: Unknown attribute (when attribute actually exists)

  • 0
  • Self Hosted
  • Databases
WhiteWalker72
7 Mar, 2024, 12:38

I have had this issue where update document would throw me an unknown attribute exception. This happened after adding a new optional attribute. This new attribute did show up in the Appwrite console and was not in processing. I've tried to delete the attribute but it would then become stuck.

I've solved the issue by deleting the whole collection and recreating it. Deleting the whole collection is a scary process and is not something I can do on production. I'm now scared to add any new attribute to existing collections as it could randomly get me in this unknown attribute state.

It would be very helpful if someone could explain what cause the issue, if it's fixed in 1.5 and what I could do if it happens again.

I'm using Appwrite self hosted on version 1.4.13.

TL;DR
Issue: Getting "Unknown attribute" exception when updating document even though the attribute exists. Solution: Developer solved it by deleting and recreating the whole collection, which is not ideal for production. Looking for insights on the cause and possible fixes in version 1.5.
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