Declare Trigger set on committed save fires before the commit
A Declare Trigger configured to execute on "Committed Save" runs an activity that queues the item for an agent.
When the agent runs to process the queue item, it fails sporadically with a 'Database-Instance-NotFound' error.
Steps to Reproduce
- Configure a Declare Trigger to execute on "Committed Save".
- In the Declare Trigger activity, call the Queue-For-Agent method.
- Run a process that will cause the Declare Trigger to execute.
An issue in the custom application code or rules. The "Deferred" parameter was not checked when calling the Queue-For-Agent method so the queue item was committed immediately.
On occasion, the agent tried to process the queue item before the actual work object was committed.
Perform the following local-change:
Check the "Deferred" parameter when calling the Queue-For-Agent method, so the queue item will be created when the next commit occurs.
0% found this useful