Skip to content
Back

Server Error when updating an existing document via UpsertDocument

  • 0
  • Databases
  • Functions
  • Cloud
prisM
6 Aug, 2025, 20:55

I am getting "AppwriteException: general_unknown, Server Error (500)" when using UpsertDocument on Appwrite Cloud from a function with Dart 3.5 runtime and dart_appwrite: 16.2.0. The error only occurs if a document with the same ID already exists. The function works correctly when creating a new document.

TL;DR
Developers are encountering a 500 Server Error when attempting to update an existing document using UpsertDocument in an Appwrite Cloud function with Dart 3.5 runtime and dart_appwrite: 16.2.0. The issue only arises when modifying an existing document with the same ID. To resolve this, try using a different method for updating documents or ensure that unique IDs are generated for each new document.
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