Skip to content
Back

Can't create documents. ID already exists error

  • 0
  • 5
  • Databases
  • Cloud
qorinn
12 Jul, 2025, 18:07
TL;DR
Users are encountering an "ID already exists" error when trying to create documents. Some have had success by recreating the problematic collection. There is a suggestion to check if a unique index is set. One user found success by deleting the table, recreating it with the same settings. Some have not been able to reproduce the error.
qorinn
12 Jul, 2025, 18:09

I can only create 1 document in the collection then I get this error

13 Jul, 2025, 11:29

Had similar error.. I had to recreate the problematic collection to solve it. Hopefully I won't encounter it when I have a lot of data.

15 Jul, 2025, 12:06

can you try re-creating the document in the same collection? error coming again?

15 Jul, 2025, 13:53

Same. If it happened in production, that would’ve been a big deal

15 Jul, 2025, 18:21

<@441983337654124548> can you check this one

15 Jul, 2025, 18:22

I did try it many times. Always the same error

1
15 Jul, 2025, 18:23

I tried to reproduce this but couldn't actually

27 Jan, 2026, 19:15

I face this exact same issue, it's very frustrating. <@1356535431834898634> can you please check it again?

28 Jan, 2026, 01:27

<@441983337654124548> <@148183606576021505> maybe you have a unique index set?

28 Jan, 2026, 09:27

Where did I go wrong? As soon as I generate more than 1, I get the error

28 Jan, 2026, 12:45

It looked like a bug to me in Appwrite itself. I deleted the table, made the same one and same settings. now it works...

29 Jan, 2026, 09:42

can you try out creating a new collection and repeating it

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