Sporadic Errors: "ENGINE-16004 Exception while closing command context: An exception occurred in the persistence layer."

On our production environment we see from time to time exceptions in our log, which we don’t understand why they occur. Until now we didn’t see a clear pattern between the exceptions the execution of certain processes.

Our App

  • Spring Boot Application - 2.6.6
  • Camunda 7.15.0 (camunda-bpm-spring-boot-starter)
  • Database: Postgres 15

Sorry the logs with the exceptions are quite large. What’s interesting it when it happens we can most of the time see the log message “Flush summary”.

Any hint is welcome.

2025-06-11 11:44:41.260 2025-06-11 09:44:41,259 [camundaTaskExecutor-3              ] ERROR org.camunda.bpm.engine.context                     - ENGINE-16004 Exception while closing command context: An exception occurred in the persistence layer. Please check the server logs for a detailed message and the entire exception stack trace.
2025-06-11 11:44:41.260 org.camunda.bpm.engine.ProcessEngineException: An exception occurred in the persistence layer. Please check the server logs for a detailed message and the entire exception stack trace.
2025-06-11 11:44:41.260 org.camunda.bpm.engine.ProcessEngineException: An exception occurred in the persistence layer. Please check the server logs for a detailed message and the entire exception stack trace.
2025-06-11 11:44:41.260 at org.camunda.bpm.engine.impl.util.ExceptionUtil.wrapPersistenceException(ExceptionUtil.java:263)
2025-06-11 11:44:41.260 at org.camunda.bpm.engine.impl.util.ExceptionUtil.wrapPersistenceException(ExceptionUtil.java:263)
2025-06-11 11:44:41.260 at org.camunda.bpm.engine.impl.db.EnginePersistenceLogger.flushDbOperationException(EnginePersistenceLogger.java:132)
2025-06-11 11:44:41.260 at org.camunda.bpm.engine.impl.db.EnginePersistenceLogger.flushDbOperationException(EnginePersistenceLogger.java:132)
2025-06-11 11:44:41.260 at org.camunda.bpm.engine.impl.db.entitymanager.DbEntityManager.flushDbOperations(DbEntityManager.java:364)
2025-06-11 11:44:41.260 at org.camunda.bpm.engine.impl.db.entitymanager.DbEntityManager.flushDbOperations(DbEntityManager.java:364)
2025-06-11 11:44:41.260 at org.camunda.bpm.engine.impl.db.entitymanager.DbEntityManager.flushDbOperationManager(DbEntityManager.java:323)
2025-06-11 11:44:41.260 at org.camunda.bpm.engine.impl.db.entitymanager.DbEntityManager.flushDbOperationManager(DbEntityManager.java:323)
2025-06-11 11:44:41.260 at org.camunda.bpm.engine.impl.db.entitymanager.DbEntityManager.flush(DbEntityManager.java:295)
2025-06-11 11:44:41.260 at org.camunda.bpm.engine.impl.db.entitymanager.DbEntityManager.flush(DbEntityManager.java:295)
2025-06-11 11:44:41.260 at org.camunda.bpm.engine.impl.interceptor.CommandContext.flushSessions(CommandContext.java:272)
2025-06-11 11:44:41.260 at org.camunda.bpm.engine.impl.interceptor.CommandContext.flushSessions(CommandContext.java:272)
2025-06-11 11:44:41.260 at org.camunda.bpm.engine.impl.interceptor.CommandContext.close(CommandContext.java:188)
2025-06-11 11:44:41.260 at org.camunda.bpm.engine.impl.interceptor.CommandContext.close(CommandContext.java:188)
2025-06-11 11:44:41.260 at org.camunda.bpm.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:119)
2025-06-11 11:44:41.260 at org.camunda.bpm.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:119)
2025-06-11 11:44:41.260 at org.camunda.bpm.engine.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:72)
2025-06-11 11:44:41.260 at org.camunda.bpm.engine.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:72)
2025-06-11 11:44:41.261 at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)
2025-06-11 11:44:41.261 at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)
2025-06-11 11:44:41.261 at org.camunda.bpm.engine.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:70)
2025-06-11 11:44:41.261 at org.camunda.bpm.engine.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:70)
2025-06-11 11:44:41.261 at org.camunda.bpm.engine.impl.interceptor.ProcessApplicationContextInterceptor.execute(ProcessApplicationContextInterceptor.java:70)
2025-06-11 11:44:41.261 at org.camunda.bpm.engine.impl.interceptor.ProcessApplicationContextInterceptor.execute(ProcessApplicationContextInterceptor.java:70)
2025-06-11 11:44:41.261 at org.camunda.bpm.engine.impl.interceptor.CommandCounterInterceptor.execute(CommandCounterInterceptor.java:35)
2025-06-11 11:44:41.261 at org.camunda.bpm.engine.impl.interceptor.CommandCounterInterceptor.execute(CommandCounterInterceptor.java:35)
2025-06-11 11:44:41.261 at org.camunda.bpm.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
2025-06-11 11:44:41.261 at org.camunda.bpm.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
2025-06-11 11:44:41.261 at org.camunda.bpm.engine.impl.jobexecutor.ExecuteJobHelper.executeJob(ExecuteJobHelper.java:57)
2025-06-11 11:44:41.261 at org.camunda.bpm.engine.impl.jobexecutor.ExecuteJobHelper.executeJob(ExecuteJobHelper.java:57)
2025-06-11 11:44:41.261 at org.camunda.bpm.engine.impl.jobexecutor.ExecuteJobsRunnable.executeJob(ExecuteJobsRunnable.java:110)
2025-06-11 11:44:41.261 at org.camunda.bpm.engine.impl.jobexecutor.ExecuteJobsRunnable.executeJob(ExecuteJobsRunnable.java:110)
2025-06-11 11:44:41.261 at org.camunda.bpm.engine.impl.jobexecutor.ExecuteJobsRunnable.run(ExecuteJobsRunnable.java:71)
2025-06-11 11:44:41.261 at org.camunda.bpm.engine.impl.jobexecutor.ExecuteJobsRunnable.run(ExecuteJobsRunnable.java:71)
2025-06-11 11:44:41.261 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
2025-06-11 11:44:41.261 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
2025-06-11 11:44:41.261 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
2025-06-11 11:44:41.261 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
2025-06-11 11:44:41.261 at java.base/java.lang.Thread.run(Thread.java:840)
2025-06-11 11:44:41.261 at java.base/java.lang.Thread.run(Thread.java:840)
2025-06-11 11:44:41.261 Caused by: org.camunda.bpm.engine.ProcessEngineException: ENGINE-03004 Exception while executing Database Operation 'DELETE ExecutionEntity[afb2dcba-46a8-11f0-8d51-0242ac11000f]' with message '
2025-06-11 11:44:41.261 Caused by: org.camunda.bpm.engine.ProcessEngineException: ENGINE-03004 Exception while executing Database Operation 'DELETE ExecutionEntity[afb2dcba-46a8-11f0-8d51-0242ac11000f]' with message '
2025-06-11 11:44:41.261 ### Error flushing statements.  Cause: org.apache.ibatis.executor.BatchExecutorException: org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.deleteExecution (batch index #7) failed. 6 prior sub executor(s) completed successfully, but will be rolled back. Cause: java.sql.BatchUpdateException: Batch entry 2 delete from ACT_RU_EXECUTION where ID_ = ('afb1f254-46a8-11f0-8d51-0242ac11000f') and REV_ = ('1'::int4) was aborted: ERROR: update or delete on table "act_ru_execution" violates foreign key constraint "act_fk_exe_procinst" on table "act_ru_execution"

2025-06-11 11:44:41.261   Detail: Key (id_)=(afb1f254-46a8-11f0-8d51-0242ac11000f) is still referenced from table "act_ru_execution".  Call getNextException to see other errors in the batch.
2025-06-11 11:44:41.261   Detail: Key (id_)=(afb1f254-46a8-11f0-8d51-0242ac11000f) is still referenced from table "act_ru_execution".  Call getNextException to see other errors in the batch.
2025-06-11 11:44:41.261 ### Cause: org.apache.ibatis.executor.BatchExecutorException: org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.deleteExecution (batch index #7) failed. 6 prior sub executor(s) completed successfully, but will be rolled back. Cause: java.sql.BatchUpdateException: Batch entry 2 delete from ACT_RU_EXECUTION where ID_ = ('afb1f254-46a8-11f0-8d51-0242ac11000f') and REV_ = ('1'::int4) was aborted: ERROR: update or delete on table "act_ru_execution" violates foreign key constraint "act_fk_exe_procinst" on table "act_ru_execution"
2025-06-11 11:44:41.261 ### Cause: org.apache.ibatis.executor.BatchExecutorException: org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.deleteExecution (batch index #7) failed. 6 prior sub executor(s) completed successfully, but will be rolled back. Cause: java.sql.BatchUpdateException: Batch entry 2 delete from ACT_RU_EXECUTION where ID_ = ('afb1f254-46a8-11f0-8d51-0242ac11000f') and REV_ = ('1'::int4) was aborted: ERROR: update or delete on table "act_ru_execution" violates foreign key constraint "act_fk_exe_procinst" on table "act_ru_execution"
2025-06-11 11:44:41.261   Detail: Key (id_)=(afb1f254-46a8-11f0-8d51-0242ac11000f) is still referenced from table "act_ru_execution".  Call getNextException to see other errors in the batch.
2025-06-11 11:44:41.261   Detail: Key (id_)=(afb1f254-46a8-11f0-8d51-0242ac11000f) is still referenced from table "act_ru_execution".  Call getNextException to see other errors in the batch.
2025-06-11 11:44:41.261 java.sql.BatchUpdateException: Batch entry 2 delete from ACT_RU_EXECUTION where ID_ = ('afb1f254-46a8-11f0-8d51-0242ac11000f') and REV_ = ('1'::int4) was aborted: ERROR: update or delete on table "act_ru_execution" violates foreign key constraint "act_fk_exe_procinst" on table "act_ru_execution"
2025-06-11 11:44:41.261 java.sql.BatchUpdateException: Batch entry 2 delete from ACT_RU_EXECUTION where ID_ = ('afb1f254-46a8-11f0-8d51-0242ac11000f') and REV_ = ('1'::int4) was aborted: ERROR: update or delete on table "act_ru_execution" violates foreign key constraint "act_fk_exe_procinst" on table "act_ru_execution"
2025-06-11 11:44:41.261   Detail: Key (id_)=(afb1f254-46a8-11f0-8d51-0242ac11000f) is still referenced from table "act_ru_execution".  Call getNextException to see other errors in the batch.
2025-06-11 11:44:41.261   Detail: Key (id_)=(afb1f254-46a8-11f0-8d51-0242ac11000f) is still referenced from table "act_ru_execution".  Call getNextException to see other errors in the batch.
2025-06-11 11:44:41.261 org.postgresql.util.PSQLException: ERROR: update or delete on table "act_ru_execution" violates foreign key constraint "act_fk_exe_procinst" on table "act_ru_execution"
2025-06-11 11:44:41.261 org.postgresql.util.PSQLException: ERROR: update or delete on table "act_ru_execution" violates foreign key constraint "act_fk_exe_procinst" on table "act_ru_execution"
2025-06-11 11:44:41.261   Detail: Key (id_)=(afb1f254-46a8-11f0-8d51-0242ac11000f) is still referenced from table "act_ru_execution".
2025-06-11 11:44:41.261   Detail: Key (id_)=(afb1f254-46a8-11f0-8d51-0242ac11000f) is still referenced from table "act_ru_execution".
2025-06-11 11:44:41.261 org.postgresql.util.PSQLException: ERROR: update or delete on table "act_ru_execution" violates foreign key constraint "act_fk_exe_procinst" on table "act_ru_execution"
2025-06-11 11:44:41.261 org.postgresql.util.PSQLException: ERROR: update or delete on table "act_ru_execution" violates foreign key constraint "act_fk_exe_procinst" on table "act_ru_execution"
2025-06-11 11:44:41.261   Detail: Key (id_)=(afb1f254-46a8-11f0-8d51-0242ac11000f) is still referenced from table "act_ru_execution".
2025-06-11 11:44:41.261   Detail: Key (id_)=(afb1f254-46a8-11f0-8d51-0242ac11000f) is still referenced from table "act_ru_execution".
2025-06-11 11:44:41.261 '. Flush summary: 
2025-06-11 11:44:41.261 '. Flush summary: 
2025-06-11 11:44:41.261  [
2025-06-11 11:44:41.261  [
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[afc02343-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[afc02343-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[afc02344-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[afc02344-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b0de6486-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b0de6486-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b0deb2a8-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b0deb2a8-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b0deb2aa-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b0deb2aa-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b0ded9bd-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b0ded9bd-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b0ded9c0-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b0ded9c0-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b0ded9c3-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b0ded9c3-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b0df00d7-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b0df00d7-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b0df00d8-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b0df00d8-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b0fdd37a-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b0fdd37a-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b0fe48ad-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b0fe48ad-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b0fe96d1-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b0fe96d1-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b0febde2-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b0febde2-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b142cbc4-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b142cbc4-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b14319e6-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b14319e6-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b14340f9-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b14340f9-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b144526a-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b144526a-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b144c79f-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b144c79f-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b144eeb1-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b144eeb1-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b27e5912-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricVariableInstanceEntity[b27e5912-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricActivityInstanceEventEntity[ErrorEndEvent:b27f4373-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricActivityInstanceEventEntity[ErrorEndEvent:b27f4373-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricActivityInstanceEventEntity[LoadEventActivity:afbeeab4-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricActivityInstanceEventEntity[LoadEventActivity:afbeeab4-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricActivityInstanceEventEntity[LoadOrganizationalHierarchy:b0df00d6-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricActivityInstanceEventEntity[LoadOrganizationalHierarchy:b0df00d6-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricActivityInstanceEventEntity[LoadPersonAssignment:b0fe96d0-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricActivityInstanceEventEntity[LoadPersonAssignment:b0fe96d0-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricActivityInstanceEventEntity[ReviewActivity:b144a08d-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricActivityInstanceEventEntity[ReviewActivity:b144a08d-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricActivityInstanceEventEntity[WorkflowGateway:b144797b-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricActivityInstanceEventEntity[WorkflowGateway:b144797b-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricActivityInstanceEventEntity[b14340f8-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT HistoricActivityInstanceEventEntity[b14340f8-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT ByteArrayEntity[b0de8b97-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT ByteArrayEntity[b0de8b97-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT ByteArrayEntity[b0deb2ab-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT ByteArrayEntity[b0deb2ab-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT ByteArrayEntity[b0ded9be-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT ByteArrayEntity[b0ded9be-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT ByteArrayEntity[b0ded9c1-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT ByteArrayEntity[b0ded9c1-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT ByteArrayEntity[b0ded9c4-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT ByteArrayEntity[b0ded9c4-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT ByteArrayEntity[b0fdd37b-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT ByteArrayEntity[b0fdd37b-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT ByteArrayEntity[b0fe48ae-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT ByteArrayEntity[b0fe48ae-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT ByteArrayEntity[b142f2d5-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT ByteArrayEntity[b142f2d5-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT ByteArrayEntity[b144c7a0-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT ByteArrayEntity[b144c7a0-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT ByteArrayEntity[b2829ed5-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   INSERT ByteArrayEntity[b2829ed5-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   DELETE MessageEntity[afb3a00e-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   DELETE MessageEntity[afb3a00e-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   DELETE VariableInstanceEntity[afb24076-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   DELETE VariableInstanceEntity[afb24076-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   DELETE ByteArrayEntity[afb24075-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   DELETE ByteArrayEntity[afb24075-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   DELETE ByteArrayEntity[afb24077-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   DELETE ByteArrayEntity[afb24077-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   DELETE ExecutionEntity[afb2dcba-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   DELETE ExecutionEntity[afb2dcba-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   DELETE ExecutionEntity[afb2dcbb-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   DELETE ExecutionEntity[afb2dcbb-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   DELETE ExecutionEntity[afb1f254-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   DELETE ExecutionEntity[afb1f254-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   UPDATE HistoricProcessInstanceEventEntity[afb1f254-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   UPDATE HistoricProcessInstanceEventEntity[afb1f254-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   DELETE_BULK deleteAuthorizationsForResourceId {resourceId=afb1f254-46a8-11f0-8d51-0242ac11000f, resourceType=8}
2025-06-11 11:44:41.261   DELETE_BULK deleteAuthorizationsForResourceId {resourceId=afb1f254-46a8-11f0-8d51-0242ac11000f, resourceType=8}
2025-06-11 11:44:41.261   UPDATE HistoricVariableInstanceEntity[afb24076-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   UPDATE HistoricVariableInstanceEntity[afb24076-46a8-11f0-8d51-0242ac11000f]
2025-06-11 11:44:41.261   UPDATE_BULK updateHistoricActivityInstancesByRootProcessInstanceId {rootProcessInstanceId=afb1f254-46a8-11f0-8d51-0242ac11000f, removalTime=Fri Jul 11 09:44:41 UTC 2025}
2025-06-11 11:44:41.261   UPDATE_BULK updateHistoricActivityInstancesByRootProcessInstanceId {rootProcessInstanceId=afb1f254-46a8-11f0-8d51-0242ac11000f, removalTime=Fri Jul 11 09:44:41 UTC 2025}
2025-06-11 11:44:41.261   UPDATE_BULK updateHistoricTaskInstancesByRootProcessInstanceId {rootProcessInstanceId=afb1f254-46a8-11f0-8d51-0242ac11000f, removalTime=Fri Jul 11 09:44:41 UTC 2025}
2025-06-11 11:44:41.261   UPDATE_BULK updateHistoricTaskInstancesByRootProcessInstanceId {rootProcessInstanceId=afb1f254-46a8-11f0-8d51-0242ac11000f, removalTime=Fri Jul 11 09:44:41 UTC 2025}
2025-06-11 11:44:41.261   UPDATE_BULK updateHistoricVariableInstancesByRootProcessInstanceId {rootProcessInstanceId=afb1f254-46a8-11f0-8d51-0242ac11000f, removalTime=Fri Jul 11 09:44:41 UTC 2025}
2025-06-11 11:44:41.261   UPDATE_BULK updateHistoricVariableInstancesByRootProcessInstanceId {rootProcessInstanceId=afb1f254-46a8-11f0-8d51-0242ac11000f, removalTime=Fri Jul 11 09:44:41 UTC 2025}
2025-06-11 11:44:41.261   UPDATE_BULK updateHistoricDetailsByRootProcessInstanceId {rootProcessInstanceId=afb1f254-46a8-11f0-8d51-0242ac11000f, removalTime=Fri Jul 11 09:44:41 UTC 2025}
2025-06-11 11:44:41.261   UPDATE_BULK updateHistoricDetailsByRootProcessInstanceId {rootProcessInstanceId=afb1f254-46a8-11f0-8d51-0242ac11000f, removalTime=Fri Jul 11 09:44:41 UTC 2025}
2025-06-11 11:44:41.261   UPDATE_BULK updateHistoricIncidentsByRootProcessInstanceId {rootProcessInstanceId=afb1f254-46a8-11f0-8d51-0242ac11000f, removalTime=Fri Jul 11 09:44:41 UTC 2025}
2025-06-11 11:44:41.261   UPDATE_BULK updateHistoricIncidentsByRootProcessInstanceId {rootProcessInstanceId=afb1f254-46a8-11f0-8d51-0242ac11000f, removalTime=Fri Jul 11 09:44:41 UTC 2025}
2025-06-11 11:44:41.261   UPDATE_BULK updateExternalTaskLogByRootProcessInstanceId {rootProcessInstanceId=afb1f254-46a8-11f0-8d51-0242ac11000f, removalTime=Fri Jul 11 09:44:41 UTC 2025}
2025-06-11 11:44:41.261   UPDATE_BULK updateExternalTaskLogByRootProcessInstanceId {rootProcessInstanceId=afb1f254-46a8-11f0-8d51-0242ac11000f, removalTime=Fri Jul 11 09:44:41 UTC 2025}
2025-06-11 11:44:41.261   UPDATE_BULK updateJobLogByRootProcessInstanceId {rootProcessInstanceId=afb1f254-46a8-11f0-8d51-0242ac11000f, removalTime=Fri Jul 11 09:44:41 UTC 2025}
2025-06-11 11:44:41.261   UPDATE_BULK updateJobLogByRootProcessInstanceId {rootProcessInstanceId=afb1f254-46a8-11f0-8d51-0242ac11000f, removalTime=Fri Jul 11 09:44:41 UTC 2025}
2025-06-11 11:44:41.261   UPDATE_BULK updateUserOperationLogByRootProcessInstanceId {rootProcessInstanceId=afb1f254-46a8-11f0-8d51-0242ac11000f, removalTime=Fri Jul 11 09:44:41 UTC 2025}
2025-06-11 11:44:41.261   UPDATE_BULK updateUserOperationLogByRootProcessInstanceId {rootProcessInstanceId=afb1f254-46a8-11f0-8d51-0242ac11000f, removalTime=Fri Jul 11 09:44:41 UTC 2025}
2025-06-11 11:44:41.261   UPDATE_BULK updateIdentityLinkLogByRootProcessInstanceId {rootProcessInstanceId=afb1f254-46a8-11f0-8d51-0242ac11000f, removalTime=Fri Jul 11 09:44:41 UTC 2025}
2025-06-11 11:44:41.261   UPDATE_BULK updateIdentityLinkLogByRootProcessInstanceId {rootProcessInstanceId=afb1f254-46a8-11f0-8d51-0242ac11000f, removalTime=Fri Jul 11 09:44:41 UTC 2025}
2025-06-11 11:44:41.261   UPDATE_BULK updateCommentsByRootProcessInstanceId {rootProcessInstanceId=afb1f254-46a8-11f0-8d51-0242ac11000f, removalTime=Fri Jul 11 09:44:41 UTC 2025}
2025-06-11 11:44:41.261   UPDATE_BULK updateCommentsByRootProcessInstanceId {rootProcessInstanceId=afb1f254-46a8-11f0-8d51-0242ac11000f, removalTime=Fri Jul 11 09:44:41 UTC 2025}
2025-06-11 11:44:41.261   UPDATE_BULK updateAttachmentsByRootProcessInstanceId {rootProcessInstanceId=afb1f254-46a8-11f0-8d51-0242ac11000f, removalTime=Fri Jul 11 09:44:41 UTC 2025}
2025-06-11 11:44:41.261   UPDATE_BULK updateAttachmentsByRootProcessInstanceId {rootProcessInstanceId=afb1f254-46a8-11f0-8d51-0242ac11000f, removalTime=Fri Jul 11 09:44:41 UTC 2025}
2025-06-11 11:44:41.261   UPDATE_BULK updateByteArraysByRootProcessInstanceId {rootProcessInstanceId=afb1f254-46a8-11f0-8d51-0242ac11000f, removalTime=Fri Jul 11 09:44:41 UTC 2025}
2025-06-11 11:44:41.261   UPDATE_BULK updateByteArraysByRootProcessInstanceId {rootProcessInstanceId=afb1f254-46a8-11f0-8d51-0242ac11000f, removalTime=Fri Jul 11 09:44:41 UTC 2025}
2025-06-11 11:44:41.261   UPDATE_BULK updateHistoricProcessInstanceEventsByRootProcessInstanceId {rootProcessInstanceId=afb1f254-46a8-11f0-8d51-0242ac11000f, removalTime=Fri Jul 11 09:44:41 UTC 2025}
2025-06-11 11:44:41.261   UPDATE_BULK updateHistoricProcessInstanceEventsByRootProcessInstanceId {rootProcessInstanceId=afb1f254-46a8-11f0-8d51-0242ac11000f, removalTime=Fri Jul 11 09:44:41 UTC 2025}
2025-06-11 11:44:41.261   UPDATE_BULK updateHistoricDecisionInstancesByRootProcessInstanceId {rootProcessInstanceId=afb1f254-46a8-11f0-8d51-0242ac11000f, removalTime=Fri Jul 11 09:44:41 UTC 2025}
2025-06-11 11:44:41.261   UPDATE_BULK updateHistoricDecisionInstancesByRootProcessInstanceId {rootProcessInstanceId=afb1f254-46a8-11f0-8d51-0242ac11000f, removalTime=Fri Jul 11 09:44:41 UTC 2025}
2025-06-11 11:44:41.261   UPDATE_BULK updateHistoricDecisionInputInstancesByRootProcessInstanceId {rootProcessInstanceId=afb1f254-46a8-11f0-8d51-0242ac11000f, removalTime=Fri Jul 11 09:44:41 UTC 2025}
2025-06-11 11:44:41.261   UPDATE_BULK updateHistoricDecisionInputInstancesByRootProcessInstanceId {rootProcessInstanceId=afb1f254-46a8-11f0-8d51-0242ac11000f, removalTime=Fri Jul 11 09:44:41 UTC 2025}
2025-06-11 11:44:41.261   UPDATE_BULK updateHistoricDecisionOutputInstancesByRootProcessInstanceId {rootProcessInstanceId=afb1f254-46a8-11f0-8d51-0242ac11000f, removalTime=Fri Jul 11 09:44:41 UTC 2025}
2025-06-11 11:44:41.261   UPDATE_BULK updateHistoricDecisionOutputInstancesByRootProcessInstanceId {rootProcessInstanceId=afb1f254-46a8-11f0-8d51-0242ac11000f, removalTime=Fri Jul 11 09:44:41 UTC 2025}
2025-06-11 11:44:41.261 ]
2025-06-11 11:44:41.261 ]
2025-06-11 11:44:41.261 at org.camunda.bpm.engine.impl.db.EnginePersistenceLogger.flushDbOperationException(EnginePersistenceLogger.java:131)
2025-06-11 11:44:41.261 at org.camunda.bpm.engine.impl.db.EnginePersistenceLogger.flushDbOperationException(EnginePersistenceLogger.java:131)
2025-06-11 11:44:41.261 ... 18 common frames omitted
2025-06-11 11:44:41.261 ... 18 common frames omitted
2025-06-11 11:44:41.261 Caused by: org.apache.ibatis.exceptions.PersistenceException: 
2025-06-11 11:44:41.261 Caused by: org.apache.ibatis.exceptions.PersistenceException: 
2025-06-11 11:44:41.261 ### Error flushing statements.  Cause: org.apache.ibatis.executor.BatchExecutorException: org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.deleteExecution (batch index #7) failed. 6 prior sub executor(s) completed successfully, but will be rolled back. Cause: java.sql.BatchUpdateException: Batch entry 2 delete from ACT_RU_EXECUTION where ID_ = ('afb1f254-46a8-11f0-8d51-0242ac11000f') and REV_ = ('1'::int4) was aborted: ERROR: update or delete on table "act_ru_execution" violates foreign key constraint "act_fk_exe_procinst" on table "act_ru_execution"
2025-06-11 11:44:41.261 ### Error flushing statements.  Cause: org.apache.ibatis.executor.BatchExecutorException: org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.deleteExecution (batch index #7) failed. 6 prior sub executor(s) completed successfully, but will be rolled back. Cause: java.sql.BatchUpdateException: Batch entry 2 delete from ACT_RU_EXECUTION where ID_ = ('afb1f254-46a8-11f0-8d51-0242ac11000f') and REV_ = ('1'::int4) was aborted: ERROR: update or delete on table "act_ru_execution" violates foreign key constraint "act_fk_exe_procinst" on table "act_ru_execution"
2025-06-11 11:44:41.261   Detail: Key (id_)=(afb1f254-46a8-11f0-8d51-0242ac11000f) is still referenced from table "act_ru_execution".  Call getNextException to see other errors in the batch.
2025-06-11 11:44:41.261   Detail: Key (id_)=(afb1f254-46a8-11f0-8d51-0242ac11000f) is still referenced from table "act_ru_execution".  Call getNextException to see other errors in the batch.
2025-06-11 11:44:41.261 ### Cause: org.apache.ibatis.executor.BatchExecutorException: org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.deleteExecution (batch index #7) failed. 6 prior sub executor(s) completed successfully, but will be rolled back. Cause: java.sql.BatchUpdateException: Batch entry 2 delete from ACT_RU_EXECUTION where ID_ = ('afb1f254-46a8-11f0-8d51-0242ac11000f') and REV_ = ('1'::int4) was aborted: ERROR: update or delete on table "act_ru_execution" violates foreign key constraint "act_fk_exe_procinst" on table "act_ru_execution"
2025-06-11 11:44:41.261 ### Cause: org.apache.ibatis.executor.BatchExecutorException: org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.deleteExecution (batch index #7) failed. 6 prior sub executor(s) completed successfully, but will be rolled back. Cause: java.sql.BatchUpdateException: Batch entry 2 delete from ACT_RU_EXECUTION where ID_ = ('afb1f254-46a8-11f0-8d51-0242ac11000f') and REV_ = ('1'::int4) was aborted: ERROR: update or delete on table "act_ru_execution" violates foreign key constraint "act_fk_exe_procinst" on table "act_ru_execution"
2025-06-11 11:44:41.261   Detail: Key (id_)=(afb1f254-46a8-11f0-8d51-0242ac11000f) is still referenced from table "act_ru_execution".  Call getNextException to see other errors in the batch.
2025-06-11 11:44:41.261   Detail: Key (id_)=(afb1f254-46a8-11f0-8d51-0242ac11000f) is still referenced from table "act_ru_execution".  Call getNextException to see other errors in the batch.