The following error occurs during the delivery execution for a recipient:
This happens when you use a target mapping in a delivery that is different from the incoming data in the delivery activity of a workflow. So suppose you queried the recipient table and passed it to delivery, and in the delivery, you have a custom target mapping, then you will get this error.
Secondly, if you are using a custom target mapping in delivery and it has any personalization block or any column referencing in its content, and you use the recipient object, you will get this error. E.g., if you call