Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I got errors as "Error Massage Failed to allocate a Qlikview Engine" and have read "Server-Task delaying".
However, some tasks run far longer than expected. Is there a way to stop task automatically, when the task is over running(2 hours)?
Here is an article that explains it better
Hi @Haynes_FengQH !
Possible? Yes.
By editing the QVPR, and in particular the file C:\ProgramData\QlikTech\ManagementService\QVPR\DocumentTask.xml
You'll find at the bottom a section for each task (here's an example), with the part you want to change:
<DocumentTask Name="Reload of 1.qvw" DistributionGroup="" Enabled="true" Description="" NameIsAutoGenerated="false" AllowPluginClient="true" AllowMobileClient="false" AllowZeroFootprintClient="true" AllowPDFGeneration="false" SendNotificationEmail="false" PDFReportID="" PDFReportName="" AlwaysOpenable="true" SourceDocumentID="53a641d3-cb37-ab84-940a-d7250c7034b1" ClearLocks="false" ClearAll="true" ClearAlwaysOneSelected="true" ReapplySelections="false" EnableAuditLogging="true" SetScript="Clear" SectionAccessUserName="NGhJ/4qFxes=" SectionAccessPassword="NGhJ/4qFxes=" OverrideXSSectionAccess="false" MaxOpenSessions="-1" SessionTimeout="0" DocumentTimeout="0" ReloadOption="FullReload" Distribute="false" DistributionServiceID="2dd7bbe2-e3ef-4306-9b74-0414aa83cac7" TaskTrack="None" TimeoutMinutes="1440" AjaxUrl="" NumberOfAttempts="1" ScriptParameterName="" ScriptParameterValueField="" ScriptParameterValueFilename="" NameTemplate="%SourceDocumentName%" CreationMode="All" CreatorUserNames="" DownloadAccess="None" DownloadUsers="" ExportAccess="All" ExportUsers="" VersionID="ccb925bb-9522-496b-9e16-b55a260b9ba7" EnableSessionCollaboration="false" DocumentDescription="" CloudDeploymentID="00000000-0000-0000-0000-000000000000" CloudTags="" SendCloudDoc="false" SendCloudLink="false" LastAcceptedReloadTime="" ModifiedByUser="DOMAIN\aaaa" ModifiedTime="2022-04-06T15:52:11.7877976+02:00" ID="fc407b6b-2953-4384-9fd5-803d1409a83f" />
So, by changing all the instances of TimeoutMinutes="1440" in the file, you'll get what you need.
Recommended? Only at your own risk. Manually editing the QVPR might result in serious problems, if something is typed incorrectly. We do take backups, though.
Hi @Haynes_FengQH,
As you're receiving task failures with errors indicating failure to allocate a QVB engine, have a look at the How Many Reload Engines (QVB) to Allow in an Environment and DeskTop Heap Size sections in the Qlik whitepaper Scaling QlikView Publisher. You may need to adjust the number of engines for concurrent reloads, increase the Windows DeskTop Heap setting, or revisit your currently scheduled tasks so that there are enough reload engines available to meet your demand.
Best Regards
Yes there is a timeout you can set in the trigger tab on the task.
see
Here is an article that explains it better
Is it possible to quickly set up a large number of tasks? (for example, modify the config files)
Hi @Haynes_FengQH !
Possible? Yes.
By editing the QVPR, and in particular the file C:\ProgramData\QlikTech\ManagementService\QVPR\DocumentTask.xml
You'll find at the bottom a section for each task (here's an example), with the part you want to change:
<DocumentTask Name="Reload of 1.qvw" DistributionGroup="" Enabled="true" Description="" NameIsAutoGenerated="false" AllowPluginClient="true" AllowMobileClient="false" AllowZeroFootprintClient="true" AllowPDFGeneration="false" SendNotificationEmail="false" PDFReportID="" PDFReportName="" AlwaysOpenable="true" SourceDocumentID="53a641d3-cb37-ab84-940a-d7250c7034b1" ClearLocks="false" ClearAll="true" ClearAlwaysOneSelected="true" ReapplySelections="false" EnableAuditLogging="true" SetScript="Clear" SectionAccessUserName="NGhJ/4qFxes=" SectionAccessPassword="NGhJ/4qFxes=" OverrideXSSectionAccess="false" MaxOpenSessions="-1" SessionTimeout="0" DocumentTimeout="0" ReloadOption="FullReload" Distribute="false" DistributionServiceID="2dd7bbe2-e3ef-4306-9b74-0414aa83cac7" TaskTrack="None" TimeoutMinutes="1440" AjaxUrl="" NumberOfAttempts="1" ScriptParameterName="" ScriptParameterValueField="" ScriptParameterValueFilename="" NameTemplate="%SourceDocumentName%" CreationMode="All" CreatorUserNames="" DownloadAccess="None" DownloadUsers="" ExportAccess="All" ExportUsers="" VersionID="ccb925bb-9522-496b-9e16-b55a260b9ba7" EnableSessionCollaboration="false" DocumentDescription="" CloudDeploymentID="00000000-0000-0000-0000-000000000000" CloudTags="" SendCloudDoc="false" SendCloudLink="false" LastAcceptedReloadTime="" ModifiedByUser="DOMAIN\aaaa" ModifiedTime="2022-04-06T15:52:11.7877976+02:00" ID="fc407b6b-2953-4384-9fd5-803d1409a83f" />
So, by changing all the instances of TimeoutMinutes="1440" in the file, you'll get what you need.
Recommended? Only at your own risk. Manually editing the QVPR might result in serious problems, if something is typed incorrectly. We do take backups, though.
Hi @Haynes_FengQH,
As you're receiving task failures with errors indicating failure to allocate a QVB engine, have a look at the How Many Reload Engines (QVB) to Allow in an Environment and DeskTop Heap Size sections in the Qlik whitepaper Scaling QlikView Publisher. You may need to adjust the number of engines for concurrent reloads, increase the Windows DeskTop Heap setting, or revisit your currently scheduled tasks so that there are enough reload engines available to meet your demand.
Best Regards