Skip to content
Back

Can't delete document or update attribute

  • 0
  • Databases
  • Cloud
vance
18 Feb, 2025, 00:12

I recently added a new required string attribute called author_id to a collection, and then tried to use the cloud GUI to delete old documents that didn't have anything entered for this attribute. However, just one of those documents refuses to delete: when I try to delete it, I get an error that the document is invalid because it has no author_id.

I tried editing the author_id attribute itself to no longer be required, but the problem persists even when this attribute is no longer flagged as required. Also, I tried manually entering something for that document's author_id though the GUI, but even while I'm trying to input an author id, it won't let me save because author_id is missing and therefore the document is invalid!

PS, I'm using the beta "relationships" feature in this collection, so idk if that could be the cause for any wonkiness?

In case you need to investigate anything from your side, here's the project IDs: project ID: artfork (I set this one manually instead of the auto generated one) database ID: 67b19543001981d2c08a collection ID: 67b195c40035ca813254

TL;DR
Added a new required attribute `author_id` to a collection and now unable to delete one document lacking this attribute. Even after making `author_id` not required, issue persists. Trying to edit the attribute while deleting also doesn't work. Possibly related to "relationships" feature. (Project Info: Project ID: artfork, Database ID: 67b19543001981d2c08a, Collection ID: 67b195c40035ca813254)
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