Code Fix: The create reference step is unable to loop through list items in runtime
KB002906
PRODUCTK2 Five 5.2
K2 Five (5.2) Fix Pack 13
Issue Description
An error occurs in runtime when the create reference step in a K2 Workflow attempts to loop through SharePoint list items that contain an ampersand (&).
Error Message
The following error message occurs: “Error on Workflow ‘< is an unexpected token. The expected token is ‘;’. Line 1, position 194”.
Resolution
- Ensure you have K2 Five (5.2) installed.
- Download the K2 Five (5.2) FP13 from K2 Partner and Customer Portal.
- Install the K2 Five (5.2) FP13 to apply the fix.
- It is recommended to refresh the browser cache.
Considerations
K2 Workflows in error state need to be re-deployed and a new instance needs to be started.