Hi,
I am using script task to evaluate expression in process model,but I am getting below error:
In script task using expression rule to get file name,I have tested expression rule its giving me correct file name and document in also moved in Knowledge Center.
can some one help me on this what will be the solution?
Discussion posts and replies are publicly visible
why do you have a load at the begging?
I suspect you should pass a document to your expression rule and you are not doing it.
I tried it with removing load and document comes in pv!counterPartyCommunicationDetails.Its a CDT which have emailAttachment column where I am passing my document.
that seems a strange way of setting the node. I would try to start as simple as possible and then adding complexity, the load there does not make sense to me and without further details of how did you set up the node, it is impossible to help you debug
this is process model which I am using and the node details
Did you run the expression rule with the same data that in the process model to see what happens? specially with the value of this one pv!counterPartyCommunicationDetails
yes I did test the expression rule with the value of pv!counterPartyCommunicationDetails,its returning me correct fileNames:
But in ProcessModel facing error.
What with the other PV as well at the same time. What do you have in line 126?
But in the process model we can see you're passing in a value for the subcaseDetails rule input, and in this test you aren't. We can't really tell what other things may have changed since you haven't posted the full code you're using in the process model.
The only PV which have attachment is pv!counterPartyCommunicationDetails,and also in expression rule mandatory values are of pv!counterPartyCommunicationDetails.
at line 126 using document function to get document name .
document( tointeger( index( fv!item, "emailAttachment", null ) ), "name" )
Hey Mike,
Yes I have added only mandatory values in expression rule to get filenames as a result of expression evaluation.