Error with PDF Converter SmartObject and Create PDF From URL method after upgrading from 4.6.11 to 4.7
kbt131336
PRODUCTIssue
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:
-
- Make a backup of the K2HostServer.exe.config (see https://help.k2.com/kb000298 for its location)
- Edit the config
- 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 - 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