Expression evaluation error : Invalid index (1) for list: valid range is empty) (Data Inputs)

Hi Team,

I have configure process model in which I am using sub-process, inside sub-process I am using below expression 

= {
action: pv!buttonValue,
actionBy: pp!initiator,
currentStatusId: pv!selectedAssignments[tp!instanceindex].refStatusId,
modificationType: pv!selectedAssignments[tp!instanceindex].modificationType,
currentActivity: pv!currentActivity[tp!instanceindex],
assignTo: pv!assignTo
}

When I run the flow I am getting below errror

An error occurred while evaluating expression: = {  action: pv!buttonValue,  actionBy: pp!initiator,  currentStatusId: pv!selectedAssignments[tp!instanceindex].refStatusId,  modificationType: pv!selectedAssignments[tp!instanceindex].modificationType,  currentActivity: pv!currentActivity[tp!instanceindex],  assignTo: pv!assignTo} (Expression evaluation error : Invalid index (1) for list: valid range is empty) (Data Inputs)

Please help me on this.

Thanks,

  Discussion posts and replies are publicly visible