Skip to content
Back

[SOLVED] I am getting a 409 Error || Document with id already exists

  • 1
  • Databases
  • Web
Binyamin
7 Jun, 2023, 20:44

And what is the ID now of the first document in the console?

TL;DR
The user was experiencing a 409 Error related to a document with an existing ID. The issue was resolved by setting a unique index on the collection in the Appwrite console. The user confirmed that they were able to write queries to the database and save them successfully.
vidhya-build-tech
7 Jun, 2023, 20:44

let me see

vidhya-build-tech
7 Jun, 2023, 20:45

6480eb7440b21da4f576 - this is the id now Should I call the Add function

Binyamin
7 Jun, 2023, 20:45

Mmm. Then it should work

vidhya-build-tech
7 Jun, 2023, 20:46

Same issue

Binyamin
7 Jun, 2023, 20:47

And you keep sending the ID.unique()?

vidhya-build-tech
7 Jun, 2023, 20:47

yes

Binyamin
7 Jun, 2023, 20:48

So it should create new document ID each time. It looks like it stock on some ID.

vidhya-build-tech
7 Jun, 2023, 20:48

yes

Drake
7 Jun, 2023, 22:47

What's the payload tab show?

Also, do you have a unique index on the collection?

vidhya-build-tech
8 Jun, 2023, 00:58

This is the payload

vidhya-build-tech
8 Jun, 2023, 00:59

Yes , I have used ID.unique() while creating

Drake
8 Jun, 2023, 00:59

No a unique index on the collection. Go to your collection in the Appwrite console and go to the indexes tab

vidhya-build-tech
8 Jun, 2023, 00:59

yeah , I have set the email and tableName as index

Drake
8 Jun, 2023, 01:00

That's what's causing the duplicate error then

vidhya-build-tech
8 Jun, 2023, 01:00
vidhya-build-tech
8 Jun, 2023, 01:00

oh okay, Thank You

vidhya-build-tech
8 Jun, 2023, 01:01

Yes , I am able to save them

Drake
8 Jun, 2023, 01:05

Huh?

vidhya-build-tech
8 Jun, 2023, 01:20

I meant , I am able to write the queries to the database

Drake
8 Jun, 2023, 01:41

So you're good now? Problem resolved?

Kevinkevinkevin
8 Jun, 2023, 04:55

yep

Kevinkevinkevin
8 Jun, 2023, 06:22

@Steven sorry intention was to send to another channel

vidhya-build-tech
12 Jun, 2023, 09:09

yep its working fine , sorry didn't see the message , also Can send emails from appwrite cloud

Guille
12 Jun, 2023, 13:20

[SOLVED] I am getting a 409 Error || Document with id already exists

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