QlikView distribution task fails with the error message "Could not close the SourceDocument. Exception=The currently executing operation was aborted"
This issue is mainly seen with larger QlikView Application (QVW) files. The reload is successful but the task fails when closing the docuemtn after saving it to disk.
Occasionally the error is preceded by a warning message "Warning Could not request the QlikView Engine process to quit."Enviornment:
QlikView all versions
This error is caused by the QVB.EXE process, which performs the task execution, requiring extensive time to close the reload task. The timeout can be altered in the QlikView Distribution service configuration.
To give the process more time:
- Stop the QlikView Distribution Service
- Edit C:\Program Files\QlikView\Distribution Service\QVDistributionService.exe.config
- Add on a new line <add key="SecondsToWaitBeforeQVBKill" value="60"/>
- Restart QlikView Distribution Service
If the issue still occurs, consider altering the value in step 3 to higher than 60 seconds. Commonly 60 seconds is enough to resolve the issue. Note:
It may be necessary to reduce the amount of log files stored or how long we wait for the document log before timing out. For 11.0 to 12.0 SR4, find the row <add key="DistributeDocumentLogTimeoutSeconds" value="30" /> and adjust the timeout as necessary.
For 12.0 SR5 and up, find the row <add key="NbrOfDaysToKeepQDSLogs" value="30"/> and adjust the days to keep logs if necessary.