Skip to content
Back

How to get event payload/source from failed function executions?

  • 0
  • Tools
  • Functions
  • Databases
_alnes_
1 Sep, 2025, 14:53

Hi everyone,

I'm currently working with Appwrite's database triggers, specifically for document creation events.

I've encountered a potential issue and was hoping to get some clarification or advice.

It seems that if a database trigger event fails (for example timeout), I don't receive a reference to the original document that triggered the event, nor do I get the document data itself.

This makes it impossible to implement a retry mechanism or to manually handle the failed event, as I have no way of knowing which document failed.

This is a critical feature for my use case, as I need to ensure that the actions in my triggers are reliably executed.

Am I missing something, or is there a recommended workaround for this scenario?

Any help or insights would be greatly appreciated.

Thanks in advance! Matze

TL;DR
Developers are having an issue with Appwrite's database triggers where failed events don't provide details of the original document that triggered the event. This makes it difficult to implement a retry mechanism. A recommended workaround for this scenario is to create a separate logging mechanism to track document information for failed events.
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