Unable to find the business data

Hi,
When we are having a process variable in process, it is working for the first instance of that process, on the second instance, we are getting this below exception

SEVERE: THREAD_ID=233 | HOSTNAME= | TENANT_ID=1 | org.bonitasoft.engine.core.process.instance.api.exceptions.SActivityStateExecutionException : “PROCESS_DEFINITION_ID=5602531715580020068 |
PROCESS_NAME=IOFPlanning | PROCESS_VERSION=1.0 | PROCESS_INSTANCE_ID=10008 | ROOT_PROCESS_INSTANCE_ID=10001 | FLOW_NODE_DEFINITION_ID=6842830455925113883 | FLOW_NODE_INSTANCE_ID=200041 | FLOW_NODE_NAME=IOF PL |
org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceCreationException: org.bonitasoft.engine.core.operation.exception.SOperationExecutionException:
org.bonitasoft.engine.operation.SEntityActionExecutionException: org.bonitasoft.engine.core.process.instance.api.exceptions.business.data.SRefBusinessDataInstanceNotFoundException: Unable to find a reference to a business data named ‘timeInitiated’ of process instance 10009”
org.bonitasoft.engine.core.process.instance.api.exceptions.SActivityStateExecutionException: PROCESS_DEFINITION_ID=5602531715580020068 | PROCESS_NAME=IOFPlanning | PROCESS_VERSION=1.0 |
PROCESS_INSTANCE_ID=10008 | ROOT_PROCESS_INSTANCE_ID=10001 | FLOW_NODE_DEFINITION_ID=6842830455925113883 | FLOW_NODE_INSTANCE_ID=200041 | FLOW_NODE_NAME=IOF PL |
org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceCreationException: org.bonitasoft.engine.core.operation.exception.SOperationExecutionException:
org.bonitasoft.engine.operation.SEntityActionExecutionException: org.bonitasoft.engine.core.process.instance.api.exceptions.business.data.SRefBusinessDataInstanceNotFoundException:
Unable to find a reference to a business data named ‘timeInitiated’ of process instance 10009

This is a callback Activity process that needs to be called from multiple processes. this ‘timeInitiated’ variable will have a script that returns the System time in milliseconds.

Hi,

It looks like your script is looking for the business data managed by the process instance 10009, does that instance exists when this script is executed?

Do you mind sharing with us the script used to load the bdm variable?

Cheers
Lio

Hi Lio,
That was the problem. We corrected that missing business data and it is working fine now. Thanks :slight_smile:

@rajiv,

can you mark Lio’s answer as the correct answer (Resolved). It stops others looking at it, and gives points to Lio for his effort in being good to the community.

If you look at his answer there will be a big tick mark close to the up/down vote. Click on the big tick to mark resolved.

thanks and regards