Error with PDF Converter SmartObject and Create PDF From URL method after upgrading from 4.6.11 to 4.7

  • 24 February 2022
  • 0 replies
  • 246 views

Userlevel 5
Badge +20
 

Error with PDF Converter SmartObject and Create PDF From URL method after upgrading from 4.6.11 to 4.7

kbt131336

PRODUCT
K2 blackpearl 4.7
BASED ON
K2 blackpearl 4.7
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
LEGACY/ARCHIVED CONTENT
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. 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.

Issue

Context:

  • Upgrading from 4.6.11 to 4.7 - PDF Converter SmartObject / Create PDF From URL method

 

Symptom:

  • In the SmartObject Service Tester:
    • Conversion Delay parameter set to "30": no longer works
    • Conversion Delay parameter set to "20": PDF file is made but after a long time

Symptoms

Error:

 

SmartObject Service Tester

SmartObject: PDF Converter

Method: Create PDF From URL

Failed to convert HTML to PDF


 

Service: PDFConverterService

Service Guid:

Severity: Error

Failed to convert URL to PDF


 

Service: PDFConverterService

Service Guid:

Severity: Error

Conversion error: WebKit Navigation timeout

Troubleshooting Steps

Resolution:

 Following this procedure helped to fix the issue: increase the timeout value:

 

    1. Make a backup of the K2HostServer.exe.config (see https://help.k2.com/kb000298 for its location)
    2. Edit the config
    3. Add the following under
      <appSettings>
      :
        
      <add key="Sourcecode.SmartObjects.Services.PDFConverter.NavigationTimeout" value="300" />

         this will give it a timeout of 5 minutes which should be plenty enough
    4. Save and restart the K2 service

 

Root cause: While upgrading to 4.7, all changes performed on the K2HostServer.exe.config file have been taken into account, except the PDFConverter Navigation Timeout parameter in the section


0 replies

Be the first to reply!

Reply