Skip to content
Init is coming / May 10 - 14
Back

ID.unique() is not creating unique ID in my Appwrite function

  • 0
  • React Native
  • Functions
Paulito
27 May, 2025, 03:09

The Error is at line 65. See image. A Transaction should be created but it fails.

Errors: Document with the requested ID already exists. Try again with a different ID or use ID.unique() to generate a unique ID.

Logs: 10000 67ffbc5500347f1db4ec 68323d44ef4427458969 683529ae000b709062bc

TL;DR
Problem: Developers are encountering an issue where ID.unique() is not generating unique IDs in their Appwrite function. The error occurs at line 65, with a failed transaction due to an already existing document ID. Solution: They should try regenerating the ID using ID.unique() to resolve the issue and ensure uniqueness in their transactions.
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