deep-printerverseOriginal post
Rank 1: Thread
Hello, I was trying to update a document with some data, but I keep getting this exception.
AppwriteException: Document with the requested ID already exists. Try again with a different ID or use ID.unique() to generate a unique ID.
Here is how the request looks like:
Request URL:
https://[url]/v1/databases/654203868c7fe15422da/collections/65c3c0105759db977ea3/documents/65c3c265cdef124f221a
Request Method:
PATCH
Status Code:
409 Conflict
Updating other documents is fine and has not caused me any issues. I must be doing something wrong, but I do not know what. I do not think the error message makes sense. Any help would be greatly appreciated.
Summary
Developers are receiving a "Document with the requested ID already exists" error when trying to update a specific document. The issue pertains specifically to the `employee_editable` field. The solution involves ensuring unique document IDs are used when updating documents, potentially by using `ID.unique()`.