Issue Description

When executing the Save as PDF method after installing 4.7 CU5 FP 40,  an error occurs.

Error Message

The following error occurs: “Index was out of range. Must be non-negative and less than the size of the collection.

Source:

SourceCode.Forms.Controls.Web

Method Base

Member Type:

Method

Name:

ExecuteSaveAsPDFMethod

Module

Scope Name:

SourceCode.Forms.Controls.Web.dll

Declaring Type

Full Name:

SourceCode.Forms.Controls.Web.SaveAsPDFRequest

Stack Trace:

at SourceCode.Forms.Controls.Web.SaveAsPDFRequest.ExecuteSaveAsPDFMethod(SaveAsPDFRequest request)

at SourceCode.Forms.Controls.Web.SaveAsPDFHandler.ProcessRequest(HttpContext context)”

Resolution

  1. Ensure you have K2 4.7 installed.
  2. Download and Install the K2 4.7 March 2018 Cumulative Update from K2 Partner and Customer Portal.
  3. Download the K2 4.7 March 2018 Cumulative Update FP43 from K2 Partner and Customer Portal.
  4. Install the K2 4.7 March 2018 Cumulative Update FP43 to apply the fix.
  5. It is recommended to refresh the browser cache.

Considerations

The PDF service instance needs to be refreshed.