Back

Document update issue, it might be a BUG

  • 0
  • Self Hosted
  • Databases
CodingXeer01
7 Jun, 2024, 05:59

I created a document which has X,Y attributes and now i deleted Y attribute and added new attribute Z, Now when i try to to update last created document where it was created when it has X,Y attribute but Y is no more there and Z with null value and when i try to update its value then gives me:

Invalid document structure: Unknown attribute: "Y"

when i look for the request in the console, There is Y attribute sending in the data even there is not Y attribute.

TL;DR
Developers encountering an issue where they are unable to update a document due to a "Unknown attribute: Y" error, even though they have previously deleted Y and added attribute Z. The console shows Y attribute being sent in the data despite it not existing. Solution: Verify the request payload being sent for any discrepancies between the actual document attributes and the data being submitted.
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