Introduction

This issue occurs when SmartForms 1.0.1 and K2 blackpearl are installed on a system and K2 blackpearl is upgraded to version 4.6.5. An error is generated in K2 Designer for SharePoint when trying to expand the SmartForms node in the Context Browser when a SmartForm is selected on the User Form page of a SmartForms Task.

The error is generated at step 7 below:

  1. Create a list in SharePoint
  2. From the list, navigate to the List Tools > List tab and select K2 Workflow
  3. Create a New Workflow and enter any Workflow settings to configure the Start Event
  4. Drag over a SmartForms Task
  5. Give the task a name and action
  6. On the User Form page, select a SmartForm
  7. In the Context Browser, try expand the SmartForm’s node

Error Message

“Unable to load context browser items”

Image

Full error text:

Unable to load context browser items - System.IndexOutOfRangeException: Index was outside the bounds of the array.
at SourceCode.Hosting.Client.BaseAPI.SCConnectionStringBuilder.ParseConnectionString(String connectionString)
at SourceCode.Hosting.Client.BaseAPI.SCConnectionStringBuilder..ctor(String connectionString)
at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.Open(String connectionString)
at SourceCode.WebDesigner.Framework.FrameworkBase.GetHostServerConnection(String connectionString)
at SourceCode.WebDesigner.Framework.SharePoint.Methods.GetOnDemandContextDataWithInputData(String ContextAssembly, String ContextClass, String ContextMethod, String InputData, String ContextParameter)


Workaround

Contact K2 support who will provide you with a hotfix.