Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE

QlikView Task fails: Object Reference not set to an instance of an object, Failed to allocate new QlikView Engine. Retrying (2)! Current usagecount

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Troy_Raney
Digital Support
Digital Support

QlikView Task fails: Object Reference not set to an instance of an object, Failed to allocate new QlikView Engine. Retrying (2)! Current usagecount

Last Update:

May 10, 2021 7:04:01 AM

Updated By:

Sonja_Bauernfeind

Created date:

Aug 29, 2012 5:03:38 AM

QlikView tasks fail. Reviewing the task logs shows:

Information Failed to allocate new QlikView Engine. Retrying (2)! Current usagecount=10 of 10

Error Failed to allocate a QlikView Engine.

Error No QlikView Engine was available after waiting for 45 minutes

Distribute failed with errors to follow. ---> System.NullReferenceException: Object reference not set to an instance of an object.

Environment:

QlikView 

 

Resolution

When a task is triggered, it looks for a QlikView Engine to handles the task. The number of QlikView Engines allowed at the same time is determined by the setting "Max number of simultaneous QlikView engines" which is set up in the Distribution Service settings in the Management Console. The default is 4 but it is possible to have more if the Windows resources allow.

When you see these error messages in the log files, a common cause is that all of the QVB's were already busy running other tasks when the failed task was triggered. It is recommended to only trigger a number of tasks at one time equal to the resources you have available to handle them.

To this end, it is recommended to stagger the schedule of your tasks so they do not all start at the same time, or to build task chains. A task chain is when you create a series of tasks that are triggered on the success of the previous task (Task B is triggered on the success of Task A, and so on). That way you don't have more tasks trying to run than you have resources available to handles them.

See Scaling the QlikView Publisher  for information on how to scale your Publisher.

Labels (1)
Contributors
Version history
Last update:
‎2021-05-10 07:04 AM
Updated by: