Code Fix: Using the Email property of a Person or Group column Item Reference as a data field in a workflow results in the workflow going into an error state
KB001982
PRODUCT
Issue Description
When designing a workflow with a Set Data Field event and using the Email property of a Person or Group Item Reference to set one of the fields, using the data field as the To field in an Email event results in the workflow instance going into an error state. This scenario is also valid when using the Email property of a Created By column Item Reference to set a data field.
Another scenario is when using the Get List Item Reference event and then the Set Data Field event. In this scenario the workflow instance will also go into an error state but with a slightly different error message.
Error Message
The error message for the first scenario will state that: “The email address : System.StringS], is invalid”.
The error message for the second scenario will state that: “Object of type 'System.Objects]' cannot be converted to type 'System.Strings]'”.
Resolution
- Ensure you have K2 4.7 installed.
- Download and install the K2 4.7 May 2017 Cumulative Update from K2 Partner and Customer Portal.
- Get the K2 4.7 May 2017 Cumulative Update FP11 from Regional Support.
- Install the K2 4.7 May 2017 Cumulative Update FP11 to apply the fix.