
I’m hitting a blocking issue creating rows in Appwrite (both from the console and my React Native app). After successfully inserting the first row, every subsequent create fails with:
[AppwriteException: Row with the requested ID already exists. Try again with a different ID or use ID.unique() to generate a unique ID.]
It looks like the document ID is being treated as already used even when I expect a new unique ID. I only have one two-way one-to-one relationship between two tables. After the first insert, I can’t add any more records.
Schema (essential parts):
Table: profiles
- Columns: gender (enum: male|female), dob (datetime, required), marketingoptin (bool), userid (string, size 36, required), fullname (string, 128, required), email (string, 254), phonee164 (string, 32, required), locale (string, 8, required), profilepicture (url)
- Relationship:
secure_id
→profiles_secure
(oneToOne, twoWay=true, twoWayKey=profileid, onDelete=cascade, side=child) - Permissions: read("users")
- Indexes: none
Table: profiles_secure
- Columns: pregnancystatus (enum: na|pregnant|postpartum), breastfeeding (bool), cninumber (string, 32), allergies (string], 128), emergencycontactname (string, 128), emergencycontactphonee164 (string, 32), consents (string, 4096)
- Relationship:
profile_id
→profiles
(oneToOne, twoWay=true, twoWayKey=secureid, onDelete=cascade, side=parent) - Permissions: read("users")
- Indexes: indexcni (ASC)
Notes:
- The error occurs immediately after the first
profiles
row is added. - I expected Appwrite to generate a unique document ID (or to honor
ID.unique()
), but the platform behaves as if the same ID is reused. - Only change since it worked: adding the two-way one-to-one relation above.
Any ideas why additional creates are hitting “Row with the requested ID already exists”? Is there something about two-way one-to-one relations or document IDs I might be misconfiguring?

@Steven Do you know why this is happening at the moment I see same issue was posted earlier with no response from the team https://discord.com/channels/564160730845151244/1415039983844327476
Recommended threads
- 500 Error on Console when Using Custom D...
Hey 👋 I’ve set up a custom domain for my Appwrite Cloud project (<my-custom-domain>). DNS is configured and the organization view loads fine when I open the c...
- 2 Columns still processing since yesterd...
Hey o/ Yesterday (around <t:1758045600:f>), I created a database and added several columns to it. After about 15 minutes, most of the "processing" tags disappe...
- 503 Timeout when Updating or Upserting D...
Hey I’m running into an issue when trying to update or upsert a row in Appwrite. The request hangs for a while and then throws this error: ``` AppwriteException...
