AppwriteException: document_already_exists, Document with the requested ID already exists
- 0
- Flutter
I use uuid to create new id for one document. Everything work fine with other document but the only one document it return this exception. I don't know where the issue is. Please support me. My project id is 6568914e5e96c980d480
I have experienced this before because of misconfigured on setting up the relationship attribute. Maybe I can help for you this, if not maybe the appwrite team can help you then.
Can I know what is the configuration of your relationship?
I set one relationship as one to many and other as one to one
But other collection work with this relationship
you have to make sure that inserting an attribute each document is unique
for example
child 123 is connected to parent A, child 123 is connected to parent B,
In that scenario this will be thrown an error it will say that your document is duplicated. Why? because the relationship could be one to one
the relationship should be Many to one
Oke sir. I will check it again
it is my fault
i have set the wrong relationship type for the related document. Thank you for your support.
Recommended threads
- executeFunction intermittently throws Fo...
Environment: Flutter app using the Appwrite Flutter SDK, calling executeFunction for [describe endpoint, e.g. live-stream-related function]. *Description*: Int...
- How to update from 1.8.1 to 1.9.6
Due to the number of issues reported in version 1.9.5, I am hesitant to proceed with the update. Could anyone advise if version 1.9.6 is stable and resolves tho...
- HTTP Error 500 ''
Hello to everyone, I'm a Flutter developer and actually I'm developing an app using Appwrite.. during my tests and also massive ones I've noticed something we...