Invalid initial content for document

1
0
-1

Hi, I'm using Bonita Studio Community version 7.8.4.
In a project, I create an instantiation form and it works correctly until I added a document in Data tab and set initial content for it from contract. Just I set initial content for my document variable, below error is showing in validation status or when I run the project:
Invalid initial content for document reqDocument. No FILE contract input has been found.
When I'm going to edit document, file Contract input is cleared! I adding it again but still the problem exist!

Comments

Submitted by bastien.laurent... on Wed, 07/31/2019 - 17:56

If i have correctly understand, you have added a new element in your contract named 'reqDocument' ?
*reqDocument *need to be a **File **type.
So if this error happend, you just need to add this on your 'init form' in your 'formOutput var ( that's the default name in Bonita).
like that:
{
myContractVarName:18,
reqDocument: myDocument,
...
}

Submitted by nasrin788_1384620 on Sat, 08/03/2019 - 05:57

Yeah, I added it , but the error is exist . Actually defining initial content for document to cause error. initialize content for document is required that get data from init form.

41f49638038e36083e92e7830e8b887d-full.png

1 answer

1
0
-1

The problem is solved!
I used "Add data from ..." inside of "Add" in contract tab and added document variable by it.

f8b197a642ca03089c62d108ccdc48de-full.png

Notifications