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
- AppwriteException: Invalid query: Query ...
```js console.log(typeof interaction.user.id) console.log(interaction.user.id) const user_check = await TablesDB.listRows({ databaseId: "db", ...
- I recently switched to TablesDb. When li...
olddb.list_documents( queries =[ Query.order_desc("timestamp"), Query.equal("isPosted",[False]) ] ) Above works fine and reruns documents But below don't return...
- Database error validating 'min' and 'max...
I keep seeing an error when I try to add a column to a database table within the AppWrite cloud UI. I also see this error when trying to create or update a reco...