This happens when the routing information in an assignment is wrong. May be the operator to which the work is routed does not exist or workbasket does not exist.
From the history work table you will know the last step it ran. Then you need to find out which assignment is going to come next and is there any router on that assignment. Then you have an issue on that router. May be it is not returning proper parameter or returning some id which does not exist.