error in script task

Certified Senior Developer

I have requirement to update 2 columns through web api.I only have 2 rows in table.If i request Id 1 in body then in Id 1 row the coloumn name " x " need to be updated to 1 and then followed by id 2 row coloumn "X" need to be updated to 0 . I write the validations but it can update 1 row only whether it is Id 1 or 2. I use 2 script tasks in process model with XOR gatewat one script task is for id 1 and another for id 2 . In script task output ill configure process varibles and For X coloumn i use " is stored at index" but it throws an error said

         Error writing to process variables (Cannot derive list type from List of Number (Integer) in which to store data of type List of Boolean, for variable 'pv!variable_feed'.) (Data Outputs)

  Discussion posts and replies are publicly visible