Code Fix: After installing 4.7 CU5 FP 40 the Save as PDF method no longer works
KB003140
PRODUCT
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
- Ensure you have K2 4.7 installed.
- Download and Install the K2 4.7 March 2018 Cumulative Update from K2 Partner and Customer Portal.
- Download the K2 4.7 March 2018 Cumulative Update FP43 from K2 Partner and Customer Portal.
- Install the K2 4.7 March 2018 Cumulative Update FP43 to apply the fix.
- It is recommended to refresh the browser cache.
Considerations
The PDF service instance needs to be refreshed.