Basically, I was creating a new document in a collection, and I received this error, that the document ID already exist. This is not true, because the old document with the same ID has been deleted, but probably for some reasons it's still in memory. So, how to fix that?
If you refresh and try again what happens?
Nothing at all. But I discovered what happened, and it's a bug on the error displayed. Basically, there was a relationship inside the collection, with another document, one-to-one. And I was trying to add another document with the same relationship, and the one I shared above it's the error displayed.
Yeah, I’ve run into that before, I think
Also happens when unique index is being violated
I don’t have any index right now
Just wanted to say that you do get the same error message when a unique index is being violated. The error message is somewhat misleading in this case
Recommended threads
- Edit ID of an existing collection
Hi there. Is it possible to edit an ID of an existing collection? Right now it looks impossible from AppWrite cloud at least.
- Seed db
hello there... is this correct way to seed appwrite
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?