When using a Boolean type of Metadata for a SharePoint List or Library in a K2 process an error is displayed. 

Error Scenario

Note: The circumstances described in this article are one scenario under which this issue may, or is known to occur. The description is intended to be specific to the scenario described and does not take into account all possible scenarios or circumstances.

To reproduce this error:

  1. Create a SharePoint List with a column of type: 'Yes/No: Boolean'.
  2. Create a SharePoint Integrated K2 process.
  3. Add a SharePoint List Items event > Get List Items.
  4. Set up the event to point to the list with the 'Yes/No' column.
  5. Link all the fields to new process level data fields.
  6. Add a Data Event.
  7. Assign the 'Yes/No' column XML Field to a String data field.
  8. Execute the process.
  9. The message displayed states:"The string 'True' is not a valid Boolean value"

Error Message:

The message displayed states: "The string 'True' is not a valid Boolean value"' or "The string 'False' is not a valid Boolean value" depending on the value in the yes/no field. 

Error Resolution:

This Hotfix is contained within the latest K2 Update. Install the update package to resolve the error.