Code Fix: An error occurs when using an empty item reference to set a datafield property in a workflow
KB002020
PRODUCT
Issue Description
When using the item reference email property from a People or Group column to set the value of a datafield in a workflow, starting the workflow with an empty People or Group column will cause the workflow to go into error state.
Error Message
The workflow will be in an error state with the following error message:
"InnerException: SmartObject property UserIds is a required property for selected method GetK2EmailsForSharePointUsers. Value must be set."
Resolution
- Ensure you have K2 4.7 installed.
- Download and install the K2 4.7 August 2017 Cumulative Update from K2 Partner and Customer Portal.
- Get the K2 4.7 August 2017 Cumulative Update FP4 from Regional Support.
- Install the K2 4.7 August 2017 Cumulative Update FP4 to apply the fix.
- Run the K2 for SharePoint Registration Wizard.
- Re-deploy the workflow.