I am trying to update multiple items of a task list in a loop. But when my workflow reaches the step "Update an Item", it throws an exception "value does not fall within the expected range" while updating the first item itself. Couldn't make out why this is happening. Any suggestions are most welcomed.
The field I am trying to update is "Assigned To". Furthermore there's another workflow which creates the items in the Task List before they get updated.
User that runs the workflow should have access to the Task List item I am trying to update as I made him task process owner for this task beforehand.
The tasks were created using a 2010 workflow, so if I update any item of tasks List using a 2010 workflow it works fine. Catch is now if I try updating using a 2013 Workflow, it doesn't work.