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.

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