I'm getting below expression error when in one of the script task outputs:
Expression error: An error occurred while evaluating expression: emailDetails:pv!taskDetails[pv!counter] (Invalid index (0) for list: valid range is 1..15) (Data Outputs)
The output of the script task where this error is occuring has this expression:
pv!taskDetails[pv!counter] saved into target of email_details of type taskDetails(CDT).
Please suggest if anyone had an experience of the same error. Thanks in advance.
Try initializing the counter variable with 1. I believe it's trying to access pv!taskDetails which doesn't exist.
This is still a bit view information. What do you try to do?Where does the values of the counter come from?The default value of an integer in a process is 0.So set the variable in the beginning to 1 should solve your problem.
try to use index() function instead & initialize pv!counter with 1
I suspect Cadell's prior answer is the correct thing. But can you confirm for us what the value of pv!counter is in your running instance? You should be able to see it just by checking the process details.
Discussion posts and replies are publicly visible
© 2019 Appian. All rights reserved.