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
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.
This still isn't quite enough information to do anything but guess, but my current best guess is that you could just add some null checking before you call the document() function, because in the error you originally posted it's getting a null or invalid value at some point.
Thanks Mike will do.