Document not found exception in subprocess

1
0
-1

I have a main process and a subprocess. I have a document field in the main process where the user uploads his document. Mapping is done between the two processes .So the processflow is, file gets uploaded in mainprocess and then goes to the subprocess where it can be used .Important point to be noted- The document field is not mandatory.
The issue which i am facing is this. When the subprocess is reached, i get an error saying "document not found".
In some cases the user may not upload any document. When this happens, this is the error i get.

Groovy script throws an exception of type class org.bonitasoft.engine.bpm.document.DocumentNotFoundException with message = org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException: Document not found:

How can i resolve this?
It seems weird because the way this works is that it forces the end user to always upload a file. Is this way the mapping of documents work in Bonita version 7.1?

Any help would be appreciated.
Regards,
Sanjeev

No answers yet.
Testing
Notifications