# Flow node instance with id 440107 not found - Appears randomly

**URL:** <https://community.ofelia.com/t/flow-node-instance-with-id-440107-not-found-appears-randomly/10379>\
**Category:** Q&A\
**Created:** [9 September 2020 06:18 UTC](https://community.ofelia.com/t/flow-node-instance-with-id-440107-not-found-appears-randomly/10379 "2020-09-09T06:18:33Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![bastien.laurent\_1374](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@bastien.laurent\_1374](https://community.ofelia.com/u/bastien.laurent_1374)\
**Post date:** [9 September 2020 06:18 UTC](https://community.ofelia.com/t/flow-node-instance-with-id-440107-not-found-appears-randomly/10379/1 "2020-09-09T06:18:33Z")

</div>

Hi community!  
  
I have a process that is start externally with a batch ( when a file appear in a specific folder a java application launch this process ).  
So, if lot a file are present in this specific folder, process will be start for each file.  
  
This is my process:  
  
[![process](https://i.ibb.co/khK3FhN/2020-09-09-08h07-25.png)](https://ibb.co/4jWsxjh)  
  
My process bug when the node : 'saveSpace' is call.  
Obviously, the first time, the process working fine, but, the second times and each other time, process bugging.  
  
That's the log error/  
  
&nbsp;

```
2020-09-08 17:32:52.698 +0200 SEVERE: org.bonitasoft.engine.execution.work.InSessionBonitaWork THREAD_ID=180 | HOSTNAME=cprocess-demo | TENANT_ID=1 | The work [ExecuteFlowNodeWork: flowNodeInstanceId: 440107 (37, false, false, false)] failed. The failure will be handled.
2020-09-08 17:32:52.701 +0200 SEVERE: org.bonitasoft.engine.execution.work.InSessionBonitaWork THREAD_ID=180 | HOSTNAME=cprocess-demo | TENANT_ID=1 | Unexpected error while executing work [ExecuteFlowNodeWork: flowNodeInstanceId: 440107 (37, false, false, false)]. You may consider restarting the system. This will restart all works.
org.bonitasoft.engine.transaction.STransactionCommitException: javax.transaction.RollbackException: ARJUNA016053: Could not commit transaction.
        at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.complete(JTATransactionServiceImpl.java:180)
        at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:284)
        at org.bonitasoft.engine.execution.work.TxBonitaWork.work(TxBonitaWork.java:42)
        at org.bonitasoft.engine.execution.work.LockProcessInstanceWork.work(LockProcessInstanceWork.java:63)
        at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:41)
        at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:41)
        at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:41)
        at org.bonitasoft.engine.execution.work.InSessionBonitaWork.work(InSessionBonitaWork.java:59)
        at org.bonitasoft.engine.work.BonitaThreadPoolExecutor.lambda$submit$1(BonitaThreadPoolExecutor.java:132)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: javax.transaction.RollbackException: ARJUNA016053: Could not commit transaction.
        at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1300)
        at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:126)
        at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.complete(JTATransactionServiceImpl.java:176)
        ... 11 more
Caused by: org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
        at org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched(Expectations.java:81)
        at org.hibernate.jdbc.Expectations$BasicExpectation.verifyOutcome(Expectations.java:73)
        at org.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.addToBatch(NonBatchingBatch.java:63)
        at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:3281)
        at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:3183)
        at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:3525)
        at org.hibernate.action.internal.EntityUpdateAction.execute(EntityUpdateAction.java:159)
        at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:465)
        at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:351)
        at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:350)
        at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:56)
        at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1258)
        at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:425)
        at org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorNonTrackingImpl.beforeCompletion(SynchronizationCallbackCoordinatorNonTrackingImpl.java:114)
        at org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization.beforeCompletion(RegisteredSynchronization.java:50)
        at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:76)
        at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:360)
        at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:91)
        at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:162)
        at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1288)
        ... 13 more2020-09-08 17:32:52.701 +0200 SEVERE: org.bonitasoft.engine.execution.work.InSessionBonitaWork THREAD_ID=180 | HOSTNAME=cprocess-demo | TENANT_ID=1 | Unable to handle the failure.
org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeNotFoundException: Flow node instance with id 440107 not found
        at org.bonitasoft.engine.core.process.instance.impl.FlowNodeInstancesServiceImpl.getFlowNodeInstance(FlowNodeInstancesServiceImpl.java:228)
        at org.bonitasoft.engine.execution.work.failurewrapping.FlowNodeDefinitionAndInstanceContextWork.setExceptionContext(FlowNodeDefinitionAndInstanceContextWork.java:51)
        at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork$1.call(TxInHandleFailureWrappingWork.java:54)
        at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork$1.call(TxInHandleFailureWrappingWork.java:50)
        at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:274)
        at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.handleFailure(TxInHandleFailureWrappingWork.java:50)
        at org.bonitasoft.engine.execution.work.InSessionBonitaWork.handleFailureWrappedWork(InSessionBonitaWork.java:103)
        at org.bonitasoft.engine.execution.work.InSessionBonitaWork.handleFailure(InSessionBonitaWork.java:79)
        at org.bonitasoft.engine.work.WorkExecutorServiceImpl.onFailure(WorkExecutorServiceImpl.java:78)
        at org.bonitasoft.engine.work.BonitaThreadPoolExecutor.lambda$submit$1(BonitaThreadPoolExecutor.java:136)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)

Environment:
- PostgresSQL
- CentOS

I don't know how and why my node is deleted by Bonita.

Any help will be appreciated ^^
```

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [9 October 2020 08:32 UTC](https://community.ofelia.com/t/flow-node-instance-with-id-440107-not-found-appears-randomly/10379/2 "2020-10-09T08:32:55Z")

</div>

Hi Bastien,&nbsp;

Could you please open an ISSUE in our JIRA tracker? https://bonita.atlassian.net/jira/software/c/projects/BBPMC/issues

It seems we need to investigate further on this issue and it will be easier to follow it in an issue.

Merci.

---

<div class="post-metadata">

**Author:** ![unai.gaston.caminos](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/unai.gaston.caminos/32/1000_2.png) [@unai.gaston.caminos](https://community.ofelia.com/u/unai.gaston.caminos)\
**Post date:** [10 September 2020 12:30 UTC](https://community.ofelia.com/t/flow-node-instance-with-id-440107-not-found-appears-randomly/10379/3 "2020-09-10T12:30:57Z")

</div>

Hi Bastien,

In order to be able to understand where the problem may come from, could you please provide:

- the entire bonita.log file
- the .bos of your process
- the result of the following query performed on the engine DB:  
 SELECT \* FROM arch\_flownode\_instance WHERE sourceobjectid = 440107;

Regards,

&nbsp;&nbsp;&nbsp; Unai

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [10 September 2020 12:31 UTC](https://community.ofelia.com/t/flow-node-instance-with-id-440107-not-found-appears-randomly/10379/4 "2020-09-10T12:31:15Z")

</div>

Hello,&nbsp;  
What is your version of Bonita platform?

How often does this happens? do you have other exceptions print in your logs?&nbsp;  
&nbsp;

---

<div class="post-metadata">

**Author:** ![bastien.laurent\_1374](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@bastien.laurent\_1374](https://community.ofelia.com/u/bastien.laurent_1374)\
**Post date:** [18 September 2020 15:21 UTC](https://community.ofelia.com/t/flow-node-instance-with-id-440107-not-found-appears-randomly/10379/5 "2020-09-18T15:21:29Z")

</div>

Hi,  
I'm using Bonita 7.10.  
  
It's happens more than 10 time a day.. This is the log:  
  
&nbsp;

&nbsp;  
2020-09-18 16:10:16.716 +0200 SEVERE: org.bonitasoft.groovy.script.converter Creation de fichier à uploader  
2020-09-18 16:10:17.086 +0200 SEVERE: org.bonitasoft.engine.execution.work.InSessionBonitaWork THREAD\_ID=216 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | The work [ExecuteConnectorOfActivity: flowNodeInstanceId = 868838, connectorDefinitionName = saveSpace] failed. The failure will be handled.  
2020-09-18 16:10:17.088 +0200 SEVERE: org.bonitasoft.engine.execution.work.InSessionBonitaWork THREAD\_ID=216 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | Unexpected error while executing work [ExecuteConnectorOfActivity: flowNodeInstanceId = 868838, connectorDefinitionName = saveSpace]. You may consider restarting the system. This will restart all works.  
org.bonitasoft.engine.core.connector.exception.SConnectorException: org.bonitasoft.engine.core.operation.exception.SOperationExecutionException: org.bonitasoft.engine.data.instance.exception.SDataInstanceNotFoundException: org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException: org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeNotFoundException: Flow node instance with id 868838 not found  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeOutputOperation(ConnectorServiceImpl.java:194)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.connector.ConnectorServiceDecorator.executeOutputOperation(ConnectorServiceDecorator.java:109)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.ExecuteConnectorWork.evaluateOutput(ExecuteConnectorWork.java:127)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.ExecuteConnectorOfActivity.evaluateOutput(ExecuteConnectorOfActivity.java:75)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.ExecuteConnectorWork.lambda$executeOutputOperationsAndContinue$1(ExecuteConnectorWork.java:187)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:274)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.ExecuteConnectorWork.executeOutputOperationsAndContinue(ExecuteConnectorWork.java:186)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.ExecuteConnectorWork.lambda$work$0(ExecuteConnectorWork.java:157)  
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.CompletableFuture.uniAccept(CompletableFuture.java:670)  
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:646)  
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:488)  
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1609)  
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)  
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)  
&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Thread.run(Thread.java:748)  
Caused by: org.bonitasoft.engine.core.operation.exception.SOperationExecutionException: org.bonitasoft.engine.data.instance.exception.SDataInstanceNotFoundException: org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException: org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeNotFoundException: Flow node instance with id 868838 not found  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.operation.DataLeftOperandHandler.updateDataInstance(DataLeftOperandHandler.java:97)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.operation.DataLeftOperandHandler.update(DataLeftOperandHandler.java:55)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.updateLeftOperands(OperationServiceImpl.java:144)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.execute(OperationServiceImpl.java:97)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeOutputOperation(ConnectorServiceImpl.java:191)  
&nbsp; &nbsp; &nbsp; &nbsp; ... 14 more  
Caused by: org.bonitasoft.engine.data.instance.exception.SDataInstanceNotFoundException: org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException: org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeNotFoundException: Flow node instance with id 868838 not found  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.data.instance.api.impl.DataInstanceServiceImpl.getSDatainstanceOfContainers(DataInstanceServiceImpl.java:165)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.data.instance.api.impl.DataInstanceServiceImpl.getDataInstance(DataInstanceServiceImpl.java:114)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.operation.DataLeftOperandHandler.getDataInstance(DataLeftOperandHandler.java:147)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.operation.DataLeftOperandHandler.updateDataInstance(DataLeftOperandHandler.java:91)  
&nbsp; &nbsp; &nbsp; &nbsp; ... 18 more  
Caused by: org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException: org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeNotFoundException: Flow node instance with id 868838 not found  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.data.ParentContainerResolverImpl.getContainerHierarchy(ParentContainerResolverImpl.java:82)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.data.ParentContainerResolverImpl.getContainerHierarchy(ParentContainerResolverImpl.java:60)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.data.instance.api.impl.DataInstanceServiceImpl.getSDatainstanceOfContainers(DataInstanceServiceImpl.java:163)  
&nbsp; &nbsp; &nbsp; &nbsp; ... 21 more  
Caused by: org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeNotFoundException: Flow node instance with id 868838 not found  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.core.process.instance.impl.FlowNodeInstancesServiceImpl.getFlowNodeInstance(FlowNodeInstancesServiceImpl.java:228)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.data.ParentContainerResolverImpl.getsFlowNodeInstance(ParentContainerResolverImpl.java:149)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.data.ParentContainerResolverImpl.getsFlowNodeInstance(ParentContainerResolverImpl.java:165)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.data.ParentContainerResolverImpl.getNextContainer(ParentContainerResolverImpl.java:90)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.data.ParentContainerResolverImpl.getContainerHierarchy(ParentContainerResolverImpl.java:78)  
&nbsp; &nbsp; &nbsp; &nbsp; ... 23 more

2020-09-18 16:10:17.088 +0200 SEVERE: org.bonitasoft.engine.execution.work.InSessionBonitaWork THREAD\_ID=216 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | Unable to handle the failure.&nbsp;  
org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeNotFoundException: Flow node instance with id 868838 not found  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.core.process.instance.impl.FlowNodeInstancesServiceImpl.getFlowNodeInstance(FlowNodeInstancesServiceImpl.java:228)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.failurewrapping.FlowNodeDefinitionAndInstanceContextWork.setExceptionContext(FlowNodeDefinitionAndInstanceContextWork.java:51)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork$1.call(TxInHandleFailureWrappingWork.java:54)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork$1.call(TxInHandleFailureWrappingWork.java:50)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:274)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.handleFailure(TxInHandleFailureWrappingWork.java:50)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.InSessionBonitaWork.handleFailureWrappedWork(InSessionBonitaWork.java:103)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.InSessionBonitaWork.handleFailure(InSessionBonitaWork.java:79)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.work.WorkExecutorServiceImpl.onFailure(WorkExecutorServiceImpl.java:78)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.work.BonitaThreadPoolExecutor.lambda$null$0(BonitaThreadPoolExecutor.java:147)  
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:836)  
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:811)  
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:488)  
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1609)  
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)  
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)  
&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Thread.run(Thread.java:748)  
  
  
regards,

---

<div class="post-metadata">

**Author:** ![bastien.laurent\_1374](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@bastien.laurent\_1374](https://community.ofelia.com/u/bastien.laurent_1374)\
**Post date:** [28 September 2020 09:08 UTC](https://community.ofelia.com/t/flow-node-instance-with-id-440107-not-found-appears-randomly/10379/6 "2020-09-28T09:08:48Z")

</div>

When i trying the query:  
select \* from arch\_flownode\_instance  
where id = 440107 OR sourceobjectid=440107;  
  
Nothing apear&nbsp;

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [6 October 2020 16:18 UTC](https://community.ofelia.com/t/flow-node-instance-with-id-440107-not-found-appears-randomly/10379/7 "2020-10-06T16:18:06Z")

</div>

Do you have any other stack traces before that `SFlowNodeNotFoundException`&nbsp;?

Is that process called by another process? programmatically?&nbsp;

According yo you stack traces, it seems that the flownode instance that you are referring to is deleted  
while the output operation of the connector is being executed.

The first stack trace says that it fails because some rows that needed to be updated were not (org.hibernate.StaleStateException: Batch update returned unexpected row count)  
And then fail to put the element as failed because it does not exist anymore

The second stack trace show almost the same thing: While retrieving the data of the flow node, we are unable to find it in the database  
Then it fails to put the element as failed because it does not exist anymore

---

<div class="post-metadata">

**Author:** ![bastien.laurent\_1374](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@bastien.laurent\_1374](https://community.ofelia.com/u/bastien.laurent_1374)\
**Post date:** [7 October 2020 07:04 UTC](https://community.ofelia.com/t/flow-node-instance-with-id-440107-not-found-appears-randomly/10379/8 "2020-10-07T07:04:00Z")

</div>

Hi,  
I don't have any stack strace before this one.  
  
For information, this process is started by a 'cron' in an external java application.  
In this process, i'm calling a subprocess ( who's throw this stack ). By the way, i finish my sub task by a 'end event'&nbsp; ( the empty red circle ).

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [7 October 2020 16:32 UTC](https://community.ofelia.com/t/flow-node-instance-with-id-440107-not-found-appears-randomly/10379/9 "2020-10-07T16:32:20Z")

</div>

What could possibly happen is that the calling process aborts that subprocess while it’s being executed.

To understand what is really happening you might need to activate some debug logs on the following classes:

org.bonitasoft.engine.execution.ProcessInstanceInterruptor  
org.bonitasoft.engine.work.WorkExecutorServiceImpl  
org.bonitasoft.engine.persistence.TenantHibernatePersistenceService

If you are able to reproduce that on a smaller/sharable process, it would be nice, If you are not, having those logs in debug level should help understand.

---

<div class="post-metadata">

**Author:** ![bastien.laurent\_1374](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@bastien.laurent\_1374](https://community.ofelia.com/u/bastien.laurent_1374)\
**Post date:** [9 October 2020 07:15 UTC](https://community.ofelia.com/t/flow-node-instance-with-id-440107-not-found-appears-randomly/10379/10 "2020-10-09T07:15:41Z")

</div>

Hello,  
thx for your reply. I have added logs. We can see that the process 'destroy' flownodes.  
You can find file here :&nbsp;https://we.tl/t-YyI3oNcpzM

* * *

2020-10-08 17:56:07.805 +0200 FINE: org.bonitasoft.engine.work.WorkExecutorServiceImpl THREAD\_ID=133 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | Submitted work org.bonitasoft.engine.work.WorkDescriptor@d35fa26[uuid=9b41a114-603d-41b7-800d-90b998eb23f3,type=EXECUTE\_FLOWNODE,tenantId=1,parameters={processDefinitionId=6850668989552313704, processInstanceId=71088, stateCanceling=false, stateExecuting=true, stateId=4, stateAborting=false, flowNodeInstanceId=1480367},retryCount=0,executionThreshold=\<null\>,executionCount=0,registrationDate=2020-10-08T15:56:07.799Z,abnormalExecutionDetected=false]  
2020-10-08 17:56:07.870 +0200 FINE: org.bonitasoft.engine.work.WorkExecutorServiceImpl THREAD\_ID=212 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | Submitted work org.bonitasoft.engine.work.WorkDescriptor@368dac77[uuid=d98e6041-de1a-4632-8e1b-4e6beacc4f43,type=FINISH\_FLOWNODE,tenantId=1,parameters={processDefinitionId=6850668989552313704, processInstanceId=71088, stateCanceling=false, stateExecuting=false, stateId=2, stateAborting=false, flowNodeInstanceId=1480367},retryCount=0,executionThreshold=\<null\>,executionCount=0,registrationDate=2020-10-08T15:56:07.857Z,abnormalExecutionDetected=false]  
2020-10-08 17:56:07.870 +0200 FINE: org.bonitasoft.engine.work.WorkExecutorServiceImpl THREAD\_ID=212 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | Completed work org.bonitasoft.engine.work.WorkDescriptor@d35fa26[uuid=9b41a114-603d-41b7-800d-90b998eb23f3,type=EXECUTE\_FLOWNODE,tenantId=1,parameters={processDefinitionId=6850668989552313704, processInstanceId=71088, stateCanceling=false, stateExecuting=true, stateId=4, stateAborting=false, flowNodeInstanceId=1480367},retryCount=0,executionThreshold=\<null\>,executionCount=1,registrationDate=2020-10-08T15:56:07.799Z,abnormalExecutionDetected=false]  
2020-10-08 17:56:07.873 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=190 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class STaskContractData with id=39071  
2020-10-08 17:56:07.873 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=190 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class STaskContractData with id=39072  
2020-10-08 17:56:07.873 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=190 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class STaskContractData with id=39073  
2020-10-08 17:56:07.874 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=190 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SPendingActivityMapping with id=144080  
2020-10-08 17:56:07.876 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=190 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SUserTaskInstance with id=1480367  
2020-10-08 17:56:07.881 +0200 FINE: org.bonitasoft.engine.work.WorkExecutorServiceImpl THREAD\_ID=190 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | Submitted work org.bonitasoft.engine.work.WorkDescriptor@32308d43[uuid=3fb5d230-ca46-4454-bb28-8f7053179ff8,type=EXECUTE\_FLOWNODE,tenantId=1,parameters={processDefinitionId=6850668989552313704, processInstanceId=71088, stateCanceling=false, stateExecuting=false, stateId=32, stateAborting=false, flowNodeInstanceId=1480848},retryCount=0,executionThreshold=\<null\>,executionCount=0,registrationDate=2020-10-08T15:56:07.876Z,abnormalExecutionDetected=false]  
2020-10-08 17:56:07.881 +0200 FINE: org.bonitasoft.engine.work.WorkExecutorServiceImpl THREAD\_ID=190 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | Completed work org.bonitasoft.engine.work.WorkDescriptor@368dac77[uuid=d98e6041-de1a-4632-8e1b-4e6beacc4f43,type=FINISH\_FLOWNODE,tenantId=1,parameters={processDefinitionId=6850668989552313704, processInstanceId=71088, stateCanceling=false, stateExecuting=false, stateId=2, stateAborting=false, flowNodeInstanceId=1480367},retryCount=0,executionThreshold=\<null\>,executionCount=1,registrationDate=2020-10-08T15:56:07.857Z,abnormalExecutionDetected=false]  
2020-10-08 17:56:07.909 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=189 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SProcessContractData with id=39074  
2020-10-08 17:56:07.909 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=189 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SProcessContractData with id=39075  
2020-10-08 17:56:07.909 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=189 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SProcessContractData with id=39076  
2020-10-08 17:56:07.909 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=189 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SProcessContractData with id=39077  
2020-10-08 17:56:07.909 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=189 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SProcessContractData with id=39078  
2020-10-08 17:56:07.909 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=189 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SProcessContractData with id=39079  
2020-10-08 17:56:07.939 +0200 FINE: org.bonitasoft.engine.work.WorkExecutorServiceImpl THREAD\_ID=189 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | Submitted work org.bonitasoft.engine.work.WorkDescriptor@5807f7aa[uuid=9b84b6a3-0698-4040-970d-92154940c318,type=EXECUTE\_FLOWNODE,tenantId=1,parameters={processDefinitionId=5376027906635258567, processInstanceId=71207, stateCanceling=false, stateExecuting=false, stateId=61, stateAborting=false, flowNodeInstanceId=1480849},retryCount=0,executionThreshold=\<null\>,executionCount=0,registrationDate=2020-10-08T15:56:07.909Z,abnormalExecutionDetected=false]  
2020-10-08 17:56:07.939 +0200 FINE: org.bonitasoft.engine.work.WorkExecutorServiceImpl THREAD\_ID=189 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | Completed work org.bonitasoft.engine.work.WorkDescriptor@32308d43[uuid=3fb5d230-ca46-4454-bb28-8f7053179ff8,type=EXECUTE\_FLOWNODE,tenantId=1,parameters={processDefinitionId=6850668989552313704, processInstanceId=71088, stateCanceling=false, stateExecuting=false, stateId=32, stateAborting=false, flowNodeInstanceId=1480848},retryCount=0,executionThreshold=\<null\>,executionCount=1,registrationDate=2020-10-08T15:56:07.876Z,abnormalExecutionDetected=false]  
2020-10-08 17:56:07.944 +0200 FINE: org.bonitasoft.engine.work.WorkExecutorServiceImpl THREAD\_ID=223 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | Submitted work org.bonitasoft.engine.work.WorkDescriptor@337f71e5[uuid=f1daaf95-d555-49e9-a449-7ea08606bdcf,type=FINISH\_FLOWNODE,tenantId=1,parameters={processDefinitionId=5376027906635258567, processInstanceId=71207, stateCanceling=false, stateExecuting=false, stateId=2, stateAborting=false, flowNodeInstanceId=1480849},retryCount=0,executionThreshold=\<null\>,executionCount=0,registrationDate=2020-10-08T15:56:07.942Z,abnormalExecutionDetected=false]  
2020-10-08 17:56:07.944 +0200 FINE: org.bonitasoft.engine.work.WorkExecutorServiceImpl THREAD\_ID=223 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | Completed work org.bonitasoft.engine.work.WorkDescriptor@5807f7aa[uuid=9b84b6a3-0698-4040-970d-92154940c318,type=EXECUTE\_FLOWNODE,tenantId=1,parameters={processDefinitionId=5376027906635258567, processInstanceId=71207, stateCanceling=false, stateExecuting=false, stateId=61, stateAborting=false, flowNodeInstanceId=1480849},retryCount=0,executionThreshold=\<null\>,executionCount=1,registrationDate=2020-10-08T15:56:07.909Z,abnormalExecutionDetected=false]  
2020-10-08 17:56:07.947 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=223 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SStartEventInstance with id=1480849  
2020-10-08 17:56:07.951 +0200 FINE: org.bonitasoft.engine.work.WorkExecutorServiceImpl THREAD\_ID=223 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | Submitted work org.bonitasoft.engine.work.WorkDescriptor@4ee09715[uuid=27ec243c-c0c0-462a-bcf9-e87dd5c691b1,type=EXECUTE\_FLOWNODE,tenantId=1,parameters={processDefinitionId=5376027906635258567, processInstanceId=71207, stateCanceling=false, stateExecuting=false, stateId=37, stateAborting=false, flowNodeInstanceId=1480850},retryCount=0,executionThreshold=\<null\>,executionCount=0,registrationDate=2020-10-08T15:56:07.948Z,abnormalExecutionDetected=false]  
2020-10-08 17:56:07.951 +0200 FINE: org.bonitasoft.engine.work.WorkExecutorServiceImpl THREAD\_ID=223 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | Completed work org.bonitasoft.engine.work.WorkDescriptor@337f71e5[uuid=f1daaf95-d555-49e9-a449-7ea08606bdcf,type=FINISH\_FLOWNODE,tenantId=1,parameters={processDefinitionId=5376027906635258567, processInstanceId=71207, stateCanceling=false, stateExecuting=false, stateId=2, stateAborting=false, flowNodeInstanceId=1480849},retryCount=0,executionThreshold=\<null\>,executionCount=1,registrationDate=2020-10-08T15:56:07.942Z,abnormalExecutionDetected=false]  
2020-10-08 17:56:07.995 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SAutomaticTaskInstance with id=1480850  
2020-10-08 17:56:07.997 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SXMLObjectDataInstance with id=553608  
2020-10-08 17:56:07.997 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SXMLObjectDataInstance with id=553609  
2020-10-08 17:56:07.998 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SXMLObjectDataInstance with id=553610  
2020-10-08 17:56:07.998 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SLongTextDataInstance with id=553611  
2020-10-08 17:56:07.998 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SLongTextDataInstance with id=553612  
2020-10-08 17:56:07.998 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SLongTextDataInstance with id=553613  
2020-10-08 17:56:07.998 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SLongTextDataInstance with id=553614  
2020-10-08 17:56:07.999 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SLongTextDataInstance with id=553615  
2020-10-08 17:56:07.999 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SLongTextDataInstance with id=553616  
2020-10-08 17:56:08.002 +0200 FINE: org.bonitasoft.engine.work.WorkExecutorServiceImpl THREAD\_ID=223 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | Submitted work org.bonitasoft.engine.work.WorkDescriptor@335e276[uuid=949bedc3-7871-46a3-b3f4-1ea6afe182e9,type=FINISH\_FLOWNODE,tenantId=1,parameters={processDefinitionId=5376027906635258567, processInstanceId=71207, stateCanceling=false, stateExecuting=false, stateId=2, stateAborting=false, flowNodeInstanceId=1480850},retryCount=0,executionThreshold=\<null\>,executionCount=0,registrationDate=2020-10-08T15:56:07.984Z,abnormalExecutionDetected=false]  
2020-10-08 17:56:08.002 +0200 FINE: org.bonitasoft.engine.work.WorkExecutorServiceImpl THREAD\_ID=223 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | Completed work org.bonitasoft.engine.work.WorkDescriptor@4ee09715[uuid=27ec243c-c0c0-462a-bcf9-e87dd5c691b1,type=EXECUTE\_FLOWNODE,tenantId=1,parameters={processDefinitionId=5376027906635258567, processInstanceId=71207, stateCanceling=false, stateExecuting=false, stateId=37, stateAborting=false, flowNodeInstanceId=1480850},retryCount=0,executionThreshold=\<null\>,executionCount=1,registrationDate=2020-10-08T15:56:07.948Z,abnormalExecutionDetected=false]  
2020-10-08 17:56:08.005 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=223 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SAutomaticTaskInstance with id=1480850  
2020-10-08 17:56:08.020 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SProcessInstance with id=71207  
2020-10-08 17:56:08.020 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SCallActivityInstance with id=1480848  
2020-10-08 17:56:08.022 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SXMLObjectDataInstance with id=551820  
2020-10-08 17:56:08.022 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SLongTextDataInstance with id=551821  
2020-10-08 17:56:08.022 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SLongTextDataInstance with id=551822  
2020-10-08 17:56:08.023 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SXMLObjectDataInstance with id=551823  
2020-10-08 17:56:08.023 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SBooleanDataInstance with id=551824  
2020-10-08 17:56:08.023 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SLongTextDataInstance with id=551825  
2020-10-08 17:56:08.023 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SLongTextDataInstance with id=551826  
2020-10-08 17:56:08.023 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SXMLObjectDataInstance with id=551827  
2020-10-08 17:56:08.024 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SXMLObjectDataInstance with id=551828  
2020-10-08 17:56:08.024 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SLongTextDataInstance with id=551829  
2020-10-08 17:56:08.024 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SLongTextDataInstance with id=551830  
2020-10-08 17:56:08.024 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SLongTextDataInstance with id=551831  
2020-10-08 17:56:08.024 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SXMLObjectDataInstance with id=551832  
2020-10-08 17:56:08.024 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SXMLObjectDataInstance with id=551833  
2020-10-08 17:56:08.030 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SMappedDocument with id=3682  
2020-10-08 17:56:08.033 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SSystemComment with id=800158  
2020-10-08 17:56:08.034 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SSystemComment with id=800162  
2020-10-08 17:56:08.035 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SProcessInstance with id=71088  
2020-10-08 17:56:08.139 +0200 ERROR: org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorNonTrackingImpl HHH000346: Error during managed flush [Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1]  
2020-10-08 17:56:08.140 +0200 WARN: com.arjuna.ats.arjuna ARJUNA012125: TwoPhaseCoordinator.beforeCompletion - failed for SynchronizationImple\< 0:ffff0a840feb:991f:5f7f2fe4:13f2a, org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization@3211e75e \>  
org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched(Expectations.java:81)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.jdbc.Expectations$BasicExpectation.verifyOutcome(Expectations.java:73)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.addToBatch(NonBatchingBatch.java:63)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:3400)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:3630)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.action.internal.EntityDeleteAction.execute(EntityDeleteAction.java:114)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:465)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:351)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:350)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:56)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1258)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:425)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorNonTrackingImpl.beforeCompletion(SynchronizationCallbackCoordinatorNonTrackingImpl.java:114)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization.beforeCompletion(RegisteredSynchronization.java:50)  
&nbsp; &nbsp; &nbsp; &nbsp; at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:76)  
&nbsp; &nbsp; &nbsp; &nbsp; at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:360)  
&nbsp; &nbsp; &nbsp; &nbsp; at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:91)  
&nbsp; &nbsp; &nbsp; &nbsp; at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:162)  
&nbsp; &nbsp; &nbsp; &nbsp; at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1288)  
&nbsp; &nbsp; &nbsp; &nbsp; at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:126)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.complete(JTATransactionServiceImpl.java:176)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:284)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.TxBonitaWork.work(TxBonitaWork.java:42)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.LockProcessInstanceWork.work(LockProcessInstanceWork.java:63)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:41)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:41)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:41)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.InSessionBonitaWork.work(InSessionBonitaWork.java:59)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.work.BonitaThreadPoolExecutor.lambda$submit$1(BonitaThreadPoolExecutor.java:132)  
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)  
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)  
&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Thread.run(Thread.java:748)

2020-10-08 17:56:08.144 +0200 SEVERE: org.bonitasoft.engine.execution.work.InSessionBonitaWork THREAD\_ID=223 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | The work [NotifyChildFinishedWork flowNodeInstanceId: 1480850] failed. The failure will be handled.  
2020-10-08 17:56:08.147 +0200 SEVERE: org.bonitasoft.engine.execution.work.InSessionBonitaWork THREAD\_ID=223 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | Unexpected error while executing work [NotifyChildFinishedWork flowNodeInstanceId: 1480850]. You may consider restarting the system. This will restart all works.  
org.bonitasoft.engine.transaction.STransactionCommitException: javax.transaction.RollbackException: ARJUNA016053: Could not commit transaction.  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.complete(JTATransactionServiceImpl.java:180)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:284)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.TxBonitaWork.work(TxBonitaWork.java:42)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.LockProcessInstanceWork.work(LockProcessInstanceWork.java:63)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:41)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:41)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:41)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.InSessionBonitaWork.work(InSessionBonitaWork.java:59)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.work.BonitaThreadPoolExecutor.lambda$submit$1(BonitaThreadPoolExecutor.java:132)  
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)  
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)  
&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Thread.run(Thread.java:748)  
Caused by: javax.transaction.RollbackException: ARJUNA016053: Could not commit transaction.  
&nbsp; &nbsp; &nbsp; &nbsp; at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1300)  
&nbsp; &nbsp; &nbsp; &nbsp; at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:126)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.complete(JTATransactionServiceImpl.java:176)  
&nbsp; &nbsp; &nbsp; &nbsp; ... 11 more  
Caused by: org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched(Expectations.java:81)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.jdbc.Expectations$BasicExpectation.verifyOutcome(Expectations.java:73)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.addToBatch(NonBatchingBatch.java:63)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:3400)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:3630)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.action.internal.EntityDeleteAction.execute(EntityDeleteAction.java:114)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:465)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:351)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:350)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:56)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1258)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:425)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorNonTrackingImpl.beforeCompletion(SynchronizationCallbackCoordinatorNonTrackingImpl.java:114)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization.beforeCompletion(RegisteredSynchronization.java:50)  
&nbsp; &nbsp; &nbsp; &nbsp; at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:76)  
&nbsp; &nbsp; &nbsp; &nbsp; at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:360)  
&nbsp; &nbsp; &nbsp; &nbsp; at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:91)  
&nbsp; &nbsp; &nbsp; &nbsp; at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:162)  
&nbsp; &nbsp; &nbsp; &nbsp; at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1288)  
&nbsp; &nbsp; &nbsp; &nbsp; ... 13 more

2020-10-08 17:56:08.147 +0200 SEVERE: org.bonitasoft.engine.execution.work.InSessionBonitaWork THREAD\_ID=223 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | Unable to handle the failure.  
org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeNotFoundException: Flow node instance with id 1480850 not found  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.core.process.instance.impl.FlowNodeInstancesServiceImpl.getFlowNodeInstance(FlowNodeInstancesServiceImpl.java:228)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.failurewrapping.FlowNodeDefinitionAndInstanceContextWork.setExceptionContext(FlowNodeDefinitionAndInstanceContextWork.java:51)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork$1.call(TxInHandleFailureWrappingWork.java:54)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork$1.call(TxInHandleFailureWrappingWork.java:50)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:274)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.handleFailure(TxInHandleFailureWrappingWork.java:50)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.InSessionBonitaWork.handleFailureWrappedWork(InSessionBonitaWork.java:103)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.InSessionBonitaWork.handleFailure(InSessionBonitaWork.java:79)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.work.WorkExecutorServiceImpl.onFailure(WorkExecutorServiceImpl.java:78)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.work.BonitaThreadPoolExecutor.lambda$submit$1(BonitaThreadPoolExecutor.java:136)  
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)  
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)  
&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Thread.run(Thread.java:748)

2020-10-08 17:58:29.598 +0200 FINE: org.bonitasoft.engine.work.WorkExecutorServiceImpl THREAD\_ID=136 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | Submitted work org.bonitasoft.engine.work.WorkDescriptor@1f29d189[uuid=968894d7-b624-42c2-b904-a3cc18fcb2c9,type=EXECUTE\_FLOWNODE,tenantId=1,parameters={processDefinitionId=6850668989552313704, processInstanceId=71089, stateCanceling=false, stateExecuting=true, stateId=4, stateAborting=false, flowNodeInstanceId=1480370},retryCount=0,executionThreshold=\<null\>,executionCount=0,registrationDate=2020-10-08T15:58:29.592Z,abnormalExecutionDetected=false]  
2020-10-08 17:58:29.606 +0200 SEVERE: org.bonitasoft.groovy.script.converter Creation du mapping du formulaire avec docushare  
2020-10-08 17:58:29.606 +0200 SEVERE: org.bonitasoft.groovy.script.converter form = [documentDate:null, amount:1233, endDate:2020-10-08T00:00:00.000Z, docType:contratFournisseur, deadlineDate:null, purchaseSegment:services, contractNumber:1234, documentCategory:, handle:Collection-837, title:1, provider:ecervo, purchaseNature:informatique, startDate:2020-10-08T00:00:00.000Z, concernService:si, desc:]  
2020-10-08 17:58:29.606 +0200 SEVERE: org.bonitasoft.groovy.script.converter docType = contratFournisseur  
2020-10-08 17:58:29.607 +0200 SEVERE: org.bonitasoft.groovy.script.converter docushareAttributes = [classe:contratFournisseur, natureAchat:informatique, dateDebut:2020-10-08T11:00:00+01:00, numChrono:20201008 - 71089, segmentAchat:services, numContrat:1234, serviceContrat:si, fournisseur:ecervo, montant:1233.0, dateFin:2020-10-08T11:00:00+01:00, title:1]  
2020-10-08 17:58:29.635 +0200 FINE: org.bonitasoft.engine.work.WorkExecutorServiceImpl THREAD\_ID=228 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | Submitted work org.bonitasoft.engine.work.WorkDescriptor@245265e5[uuid=3abe2378-ed31-4288-aa3c-bf429ca92201,type=FINISH\_FLOWNODE,tenantId=1,parameters={processDefinitionId=6850668989552313704, processInstanceId=71089, stateCanceling=false, stateExecuting=false, stateId=2, stateAborting=false, flowNodeInstanceId=1480370},retryCount=0,executionThreshold=\<null\>,executionCount=0,registrationDate=2020-10-08T15:58:29.623Z,abnormalExecutionDetected=false]  
2020-10-08 17:58:29.636 +0200 FINE: org.bonitasoft.engine.work.WorkExecutorServiceImpl THREAD\_ID=228 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | Completed work org.bonitasoft.engine.work.WorkDescriptor@1f29d189[uuid=968894d7-b624-42c2-b904-a3cc18fcb2c9,type=EXECUTE\_FLOWNODE,tenantId=1,parameters={processDefinitionId=6850668989552313704, processInstanceId=71089, stateCanceling=false, stateExecuting=true, stateId=4, stateAborting=false, flowNodeInstanceId=1480370},retryCount=0,executionThreshold=\<null\>,executionCount=1,registrationDate=2020-10-08T15:58:29.592Z,abnormalExecutionDetected=false]  
2020-10-08 17:58:29.640 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=213 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class STaskContractData with id=39080  
2020-10-08 17:58:29.640 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=213 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class STaskContractData with id=39081  
2020-10-08 17:58:29.640 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=213 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class STaskContractData with id=39082  
2020-10-08 17:58:29.641 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=213 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SPendingActivityMapping with id=144079  
2020-10-08 17:58:29.644 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=213 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SUserTaskInstance with id=1480370  
2020-10-08 17:58:29.650 +0200 FINE: org.bonitasoft.engine.work.WorkExecutorServiceImpl THREAD\_ID=213 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | Submitted work org.bonitasoft.engine.work.WorkDescriptor@71ac4761[uuid=3da9270c-890b-44f5-ad02-b31cd25519fa,type=EXECUTE\_FLOWNODE,tenantId=1,parameters={processDefinitionId=6850668989552313704, processInstanceId=71089, stateCanceling=false, stateExecuting=false, stateId=32, stateAborting=false, flowNodeInstanceId=1480852},retryCount=0,executionThreshold=\<null\>,executionCount=0,registrationDate=2020-10-08T15:58:29.644Z,abnormalExecutionDetected=false]  
2020-10-08 17:58:29.650 +0200 FINE: org.bonitasoft.engine.work.WorkExecutorServiceImpl THREAD\_ID=213 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | Completed work org.bonitasoft.engine.work.WorkDescriptor@245265e5[uuid=3abe2378-ed31-4288-aa3c-bf429ca92201,type=FINISH\_FLOWNODE,tenantId=1,parameters={processDefinitionId=6850668989552313704, processInstanceId=71089, stateCanceling=false, stateExecuting=false, stateId=2, stateAborting=false, flowNodeInstanceId=1480370},retryCount=0,executionThreshold=\<null\>,executionCount=1,registrationDate=2020-10-08T15:58:29.623Z,abnormalExecutionDetected=false]  
2020-10-08 17:58:29.679 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=213 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SProcessContractData with id=39083  
2020-10-08 17:58:29.679 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=213 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SProcessContractData with id=39084  
2020-10-08 17:58:29.679 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=213 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SProcessContractData with id=39085  
2020-10-08 17:58:29.679 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=213 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SProcessContractData with id=39086  
2020-10-08 17:58:29.680 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=213 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SProcessContractData with id=39087  
2020-10-08 17:58:29.680 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=213 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SProcessContractData with id=39088  
2020-10-08 17:58:29.720 +0200 FINE: org.bonitasoft.engine.work.WorkExecutorServiceImpl THREAD\_ID=213 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | Submitted work org.bonitasoft.engine.work.WorkDescriptor@69194481[uuid=6993c5f0-f867-4ae4-896b-8604859c4304,type=EXECUTE\_FLOWNODE,tenantId=1,parameters={processDefinitionId=5376027906635258567, processInstanceId=71208, stateCanceling=false, stateExecuting=false, stateId=61, stateAborting=false, flowNodeInstanceId=1480853},retryCount=0,executionThreshold=\<null\>,executionCount=0,registrationDate=2020-10-08T15:58:29.680Z,abnormalExecutionDetected=false]  
2020-10-08 17:58:29.721 +0200 FINE: org.bonitasoft.engine.work.WorkExecutorServiceImpl THREAD\_ID=213 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | Completed work org.bonitasoft.engine.work.WorkDescriptor@71ac4761[uuid=3da9270c-890b-44f5-ad02-b31cd25519fa,type=EXECUTE\_FLOWNODE,tenantId=1,parameters={processDefinitionId=6850668989552313704, processInstanceId=71089, stateCanceling=false, stateExecuting=false, stateId=32, stateAborting=false, flowNodeInstanceId=1480852},retryCount=0,executionThreshold=\<null\>,executionCount=1,registrationDate=2020-10-08T15:58:29.644Z,abnormalExecutionDetected=false]  
2020-10-08 17:58:29.727 +0200 FINE: org.bonitasoft.engine.work.WorkExecutorServiceImpl THREAD\_ID=213 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | Submitted work org.bonitasoft.engine.work.WorkDescriptor@52114fa[uuid=e4363d20-f765-4100-8ba0-c88ef128ee99,type=FINISH\_FLOWNODE,tenantId=1,parameters={processDefinitionId=5376027906635258567, processInstanceId=71208, stateCanceling=false, stateExecuting=false, stateId=2, stateAborting=false, flowNodeInstanceId=1480853},retryCount=0,executionThreshold=\<null\>,executionCount=0,registrationDate=2020-10-08T15:58:29.725Z,abnormalExecutionDetected=false]  
2020-10-08 17:58:29.727 +0200 FINE: org.bonitasoft.engine.work.WorkExecutorServiceImpl THREAD\_ID=213 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | Completed work org.bonitasoft.engine.work.WorkDescriptor@69194481[uuid=6993c5f0-f867-4ae4-896b-8604859c4304,type=EXECUTE\_FLOWNODE,tenantId=1,parameters={processDefinitionId=5376027906635258567, processInstanceId=71208, stateCanceling=false, stateExecuting=false, stateId=61, stateAborting=false, flowNodeInstanceId=1480853},retryCount=0,executionThreshold=\<null\>,executionCount=1,registrationDate=2020-10-08T15:58:29.680Z,abnormalExecutionDetected=false]  
2020-10-08 17:58:29.730 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=197 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SStartEventInstance with id=1480853  
2020-10-08 17:58:29.734 +0200 FINE: org.bonitasoft.engine.work.WorkExecutorServiceImpl THREAD\_ID=197 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | Submitted work org.bonitasoft.engine.work.WorkDescriptor@6570a701[uuid=3e241df2-2299-42db-baaf-57d4630ad564,type=EXECUTE\_FLOWNODE,tenantId=1,parameters={processDefinitionId=5376027906635258567, processInstanceId=71208, stateCanceling=false, stateExecuting=false, stateId=37, stateAborting=false, flowNodeInstanceId=1480854},retryCount=0,executionThreshold=\<null\>,executionCount=0,registrationDate=2020-10-08T15:58:29.731Z,abnormalExecutionDetected=false]  
2020-10-08 17:58:29.735 +0200 FINE: org.bonitasoft.engine.work.WorkExecutorServiceImpl THREAD\_ID=197 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | Completed work org.bonitasoft.engine.work.WorkDescriptor@52114fa[uuid=e4363d20-f765-4100-8ba0-c88ef128ee99,type=FINISH\_FLOWNODE,tenantId=1,parameters={processDefinitionId=5376027906635258567, processInstanceId=71208, stateCanceling=false, stateExecuting=false, stateId=2, stateAborting=false, flowNodeInstanceId=1480853},retryCount=0,executionThreshold=\<null\>,executionCount=1,registrationDate=2020-10-08T15:58:29.725Z,abnormalExecutionDetected=false]  
2020-10-08 17:58:29.757 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SAutomaticTaskInstance with id=1480854  
2020-10-08 17:58:29.759 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SXMLObjectDataInstance with id=553617  
2020-10-08 17:58:29.759 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SXMLObjectDataInstance with id=553618  
2020-10-08 17:58:29.759 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SXMLObjectDataInstance with id=553619  
2020-10-08 17:58:29.760 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SLongTextDataInstance with id=553620  
2020-10-08 17:58:29.760 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SLongTextDataInstance with id=553621  
2020-10-08 17:58:29.760 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SLongTextDataInstance with id=553622  
2020-10-08 17:58:29.760 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SLongTextDataInstance with id=553623  
2020-10-08 17:58:29.760 +0200 FINE: org.bonitasoft.engine.work.WorkExecutorServiceImpl THREAD\_ID=197 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | Submitted work org.bonitasoft.engine.work.WorkDescriptor@7a190761[uuid=ac359a1e-2f37-4675-b142-350afa05a761,type=FINISH\_FLOWNODE,tenantId=1,parameters={processDefinitionId=5376027906635258567, processInstanceId=71208, stateCanceling=false, stateExecuting=false, stateId=2, stateAborting=false, flowNodeInstanceId=1480854},retryCount=0,executionThreshold=\<null\>,executionCount=0,registrationDate=2020-10-08T15:58:29.744Z,abnormalExecutionDetected=false]  
2020-10-08 17:58:29.760 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SLongTextDataInstance with id=553624  
2020-10-08 17:58:29.761 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SLongTextDataInstance with id=553625  
2020-10-08 17:58:29.761 +0200 FINE: org.bonitasoft.engine.work.WorkExecutorServiceImpl THREAD\_ID=197 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | Completed work org.bonitasoft.engine.work.WorkDescriptor@6570a701[uuid=3e241df2-2299-42db-baaf-57d4630ad564,type=EXECUTE\_FLOWNODE,tenantId=1,parameters={processDefinitionId=5376027906635258567, processInstanceId=71208, stateCanceling=false, stateExecuting=false, stateId=37, stateAborting=false, flowNodeInstanceId=1480854},retryCount=0,executionThreshold=\<null\>,executionCount=1,registrationDate=2020-10-08T15:58:29.731Z,abnormalExecutionDetected=false]  
2020-10-08 17:58:29.764 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=197 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SAutomaticTaskInstance with id=1480854  
2020-10-08 17:58:29.766 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SProcessInstance with id=71208  
2020-10-08 17:58:29.766 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SCallActivityInstance with id=1480852  
2020-10-08 17:58:29.767 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SXMLObjectDataInstance with id=551835  
2020-10-08 17:58:29.767 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SLongTextDataInstance with id=551836  
2020-10-08 17:58:29.767 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SLongTextDataInstance with id=551837  
2020-10-08 17:58:29.768 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SXMLObjectDataInstance with id=551838  
2020-10-08 17:58:29.768 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SBooleanDataInstance with id=551839  
2020-10-08 17:58:29.768 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SLongTextDataInstance with id=551840  
2020-10-08 17:58:29.768 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SLongTextDataInstance with id=551841  
2020-10-08 17:58:29.768 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SXMLObjectDataInstance with id=551842  
2020-10-08 17:58:29.769 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SXMLObjectDataInstance with id=551843  
2020-10-08 17:58:29.769 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SLongTextDataInstance with id=551844  
2020-10-08 17:58:29.769 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SLongTextDataInstance with id=551845  
2020-10-08 17:58:29.769 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SLongTextDataInstance with id=551846  
2020-10-08 17:58:29.769 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SXMLObjectDataInstance with id=551847  
2020-10-08 17:58:29.770 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SXMLObjectDataInstance with id=551848  
2020-10-08 17:58:29.776 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SMappedDocument with id=3681  
2020-10-08 17:58:29.778 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SSystemComment with id=800159  
2020-10-08 17:58:29.778 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SSystemComment with id=800163  
2020-10-08 17:58:29.780 +0200 FINE: org.bonitasoft.engine.persistence.TenantHibernatePersistenceService THREAD\_ID=176 | HOSTNAME=cprocess-demo | [Tenant] Deleting instance of class SProcessInstance with id=71089  
2020-10-08 17:58:29.795 +0200 ERROR: org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorNonTrackingImpl HHH000346: Error during managed flush [Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1]  
2020-10-08 17:58:29.795 +0200 WARN: com.arjuna.ats.arjuna ARJUNA012125: TwoPhaseCoordinator.beforeCompletion - failed for SynchronizationImple\< 0:ffff0a840feb:991f:5f7f2fe4:14561, org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization@2ce9329f \>  
org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched(Expectations.java:81)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.jdbc.Expectations$BasicExpectation.verifyOutcome(Expectations.java:73)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.addToBatch(NonBatchingBatch.java:63)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:3400)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:3630)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.action.internal.EntityDeleteAction.execute(EntityDeleteAction.java:114)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:465)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:351)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:350)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:56)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1258)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:425)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorNonTrackingImpl.beforeCompletion(SynchronizationCallbackCoordinatorNonTrackingImpl.java:114)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization.beforeCompletion(RegisteredSynchronization.java:50)  
&nbsp; &nbsp; &nbsp; &nbsp; at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:76)  
&nbsp; &nbsp; &nbsp; &nbsp; at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:360)  
&nbsp; &nbsp; &nbsp; &nbsp; at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:91)  
&nbsp; &nbsp; &nbsp; &nbsp; at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:162)  
&nbsp; &nbsp; &nbsp; &nbsp; at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1288)  
&nbsp; &nbsp; &nbsp; &nbsp; at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:126)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.complete(JTATransactionServiceImpl.java:176)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:284)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.TxBonitaWork.work(TxBonitaWork.java:42)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.LockProcessInstanceWork.work(LockProcessInstanceWork.java:63)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:41)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:41)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:41)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.InSessionBonitaWork.work(InSessionBonitaWork.java:59)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.work.BonitaThreadPoolExecutor.lambda$submit$1(BonitaThreadPoolExecutor.java:132)  
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)  
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)  
&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Thread.run(Thread.java:748)

2020-10-08 17:58:29.796 +0200 SEVERE: org.bonitasoft.engine.execution.work.InSessionBonitaWork THREAD\_ID=197 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | The work [NotifyChildFinishedWork flowNodeInstanceId: 1480854] failed. The failure will be handled.  
2020-10-08 17:58:29.797 +0200 SEVERE: org.bonitasoft.engine.execution.work.InSessionBonitaWork THREAD\_ID=197 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | Unexpected error while executing work [NotifyChildFinishedWork flowNodeInstanceId: 1480854]. You may consider restarting the system. This will restart all works.  
org.bonitasoft.engine.transaction.STransactionCommitException: javax.transaction.RollbackException: ARJUNA016053: Could not commit transaction.  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.complete(JTATransactionServiceImpl.java:180)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:284)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.TxBonitaWork.work(TxBonitaWork.java:42)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.LockProcessInstanceWork.work(LockProcessInstanceWork.java:63)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:41)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:41)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:41)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.InSessionBonitaWork.work(InSessionBonitaWork.java:59)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.work.BonitaThreadPoolExecutor.lambda$submit$1(BonitaThreadPoolExecutor.java:132)  
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)  
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)  
&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Thread.run(Thread.java:748)  
Caused by: javax.transaction.RollbackException: ARJUNA016053: Could not commit transaction.  
&nbsp; &nbsp; &nbsp; &nbsp; at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1300)  
&nbsp; &nbsp; &nbsp; &nbsp; at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:126)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.complete(JTATransactionServiceImpl.java:176)  
&nbsp; &nbsp; &nbsp; &nbsp; ... 11 more  
Caused by: org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched(Expectations.java:81)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.jdbc.Expectations$BasicExpectation.verifyOutcome(Expectations.java:73)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.addToBatch(NonBatchingBatch.java:63)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:3400)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:3630)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.action.internal.EntityDeleteAction.execute(EntityDeleteAction.java:114)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:465)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:351)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:350)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:56)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1258)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:425)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorNonTrackingImpl.beforeCompletion(SynchronizationCallbackCoordinatorNonTrackingImpl.java:114)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization.beforeCompletion(RegisteredSynchronization.java:50)  
&nbsp; &nbsp; &nbsp; &nbsp; at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:76)  
&nbsp; &nbsp; &nbsp; &nbsp; at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:360)  
&nbsp; &nbsp; &nbsp; &nbsp; at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:91)  
&nbsp; &nbsp; &nbsp; &nbsp; at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:162)  
&nbsp; &nbsp; &nbsp; &nbsp; at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1288)  
&nbsp; &nbsp; &nbsp; &nbsp; ... 13 more

2020-10-08 17:58:29.797 +0200 SEVERE: org.bonitasoft.engine.execution.work.InSessionBonitaWork THREAD\_ID=197 | HOSTNAME=cprocess-demo | TENANT\_ID=1 | Unable to handle the failure.  
org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeNotFoundException: Flow node instance with id 1480854 not found  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.core.process.instance.impl.FlowNodeInstancesServiceImpl.getFlowNodeInstance(FlowNodeInstancesServiceImpl.java:228)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.failurewrapping.FlowNodeDefinitionAndInstanceContextWork.setExceptionContext(FlowNodeDefinitionAndInstanceContextWork.java:51)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork$1.call(TxInHandleFailureWrappingWork.java:54)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork$1.call(TxInHandleFailureWrappingWork.java:50)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:274)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.handleFailure(TxInHandleFailureWrappingWork.java:50)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.InSessionBonitaWork.handleFailureWrappedWork(InSessionBonitaWork.java:103)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.execution.work.InSessionBonitaWork.handleFailure(InSessionBonitaWork.java:79)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.work.WorkExecutorServiceImpl.onFailure(WorkExecutorServiceImpl.java:78)  
&nbsp; &nbsp; &nbsp; &nbsp; at org.bonitasoft.engine.work.BonitaThreadPoolExecutor.lambda$submit$1(BonitaThreadPoolExecutor.java:136)  
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)  
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)  
&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Thread.run(Thread.java:748)

---

<div class="post-metadata">

**Author:** ![Pablo\_Alonso\_de\_Lina](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/pablo_alonso_de_lina/32/735_2.png) [@Pablo\_Alonso\_de\_Lina](https://community.ofelia.com/u/Pablo_Alonso_de_Lina)\
**Post date:** [28 September 2020 09:36 UTC](https://community.ofelia.com/t/flow-node-instance-with-id-440107-not-found-appears-randomly/10379/11 "2020-09-28T09:36:07Z")

</div>

Hi Bastien,&nbsp;

Could you share the process? or at least the groovy connector script and its output?

Could you check if when you have these errors there are other instances running in parallel?

Thanks

---

<div class="post-metadata">

**Author:** ![bastien.laurent\_1374](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@bastien.laurent\_1374](https://community.ofelia.com/u/bastien.laurent_1374)\
**Post date:** [29 September 2020 06:51 UTC](https://community.ofelia.com/t/flow-node-instance-with-id-440107-not-found-appears-randomly/10379/12 "2020-09-29T06:51:32Z")

</div>

I can't share my process dur to my company privacy.  
My task that fail, it's just a 'rest POST' connector. Nothing extraordinary. In output, i just receive a JAVA Object in 'BodyAsObject'.

---

<div class="post-metadata">

**Author:** ![unai.gaston.caminos](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/unai.gaston.caminos/32/1000_2.png) [@unai.gaston.caminos](https://community.ofelia.com/u/unai.gaston.caminos)\
**Post date:** [9 October 2020 10:33 UTC](https://community.ofelia.com/t/flow-node-instance-with-id-440107-not-found-appears-randomly/10379/13 "2020-10-09T10:33:15Z")

</div>

Hi Bastien,

Thank you for the extended logs. What the new logs show seems to go along the line of what Baptiste was saying, that is:

There seems to be _something_ (being executed by the&nbsp;THREAD\_ID=176) that is deleting several processes (or sub-processes, for that matter), while many of those processes are still being executed. As a result, the latter fail because by the time they need to update the flownode that is being executed, the flownode has already been deleted.

So it could well be that:

- the parent process itself is aborting the sub-process (as suggested by Baptiste).
- or some other process/script/... is deleting the processes (or deleting the flownodes at least)
- or perhaps it could even be your connector 'saveSpace' (what with such a name...). --\> Could you share the actual call performed by this 'rest POST'&nbsp; connector?

Regards,

&nbsp;&nbsp; Unai

---

<div class="post-metadata">

**Author:** ![bastien.laurent\_1374](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@bastien.laurent\_1374](https://community.ofelia.com/u/bastien.laurent_1374)\
**Post date:** [9 October 2020 13:53 UTC](https://community.ofelia.com/t/flow-node-instance-with-id-440107-not-found-appears-randomly/10379/14 "2020-10-09T13:53:35Z")

</div>

ticket open :&nbsp;https://bonita.atlassian.net/browse/BBPMC-582  
Thx

---

<div class="post-metadata">

**Author:** ![bastien.laurent\_1374](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@bastien.laurent\_1374](https://community.ofelia.com/u/bastien.laurent_1374)\
**Post date:** [9 October 2020 13:55 UTC](https://community.ofelia.com/t/flow-node-instance-with-id-440107-not-found-appears-randomly/10379/15 "2020-10-09T13:55:07Z")

</div>

Hi Delphine,  
Ticket open :&nbsp;https://bonita.atlassian.net/browse/BBPMC-582

Hope i have send all you need to investigate.  
  
Regards,
