< class="prominent-subhead ">

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

~~repeating-content.html~~
LEGACY/ARCHIVED CONTENT
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

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.String[], is invalid”.

The error message for the second scenario will state that: “Object of type 'System.Object[]' cannot be converted to type 'System.String[]'”.

Resolution

  1. Ensure you have K2 4.7 installed.
  2. Download and install the K2 4.7 May 2017 Cumulative Update from K2 Partner and Customer Portal.
  3. Get the K2 4.7 May 2017 Cumulative Update FP11 from Regional Support.
  4. Install the K2 4.7 May 2017 Cumulative Update FP11 to apply the fix.