This article refers to legacy products, components or features. Therefore, the content in this article is offered "as is" and will no longer be updated. 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.


When using a SourceCode.Workflow.Management.Criteria.WorklistCriteriaFilter in WorkflowManagementServer.GetWorklistItems(), the first Worklist item of the collection is not returned.

Error Scenario Steps

Note: The steps below describe one scenario under which this error may occur. They are simplified and not all steps are shown or described.
  1. In the K2 Designer for Visual Studio, design and deploy a K2 Process with a Client event
  2. Design a custom .NET application that accesses the client worklist through the K2 API
  3. Use the SourceCode.Workflow.Management.Criteria.WorklistCriteriaFilter in a WorkflowManagementServer.GetWorklistItems() statement. For example:
    WorklistItems k2WLItems;
    WorklistCriteriaFilter wlc = new WorklistCriteriaFilter();
    wlc.AddRegularFilter(WorklistFields.Status, Comparison.Equals, 0);
    wlc.BuildOrderByQuery(WorklistFields.StartDate.ToString(), "ASC");
    k2WLItems = wfms.GetWorklistItems(wlc);
  4. Start 10 process instances so that there are 10 Worklist items shown in K2 Workspace
  5. Run the custom .NET application
  6. Only 9 of the 10 Worklist items are returned

Error Messages

The following error message relates to this issue:
  • No error message. The first Worklist item of the collection is not returned (as seen by comparing the number of Worklist items returned in K2 Workspace versus the number returned by the filter).

Error Resolution

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

The latest K2 blackpearl 0807 Update is available as an independent installation package which can be found here: https://portal.k2.com/downloads/bp/default.aspx