
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Getting Error Code.-2 randomly in Qlik Sense
Qlik Sense Version - Qlik Sense Enterprise (Feb 2021 version 14.5.4)
Server Configuration - 256GB RAM (dedicated Qlik Sense server)
Error - Screenshot attached below, occurs randomly
Possible Solution (Supported by @Sonja_Bauernfeind , @Damien_V ) - Qlik Sense: Error Code -2 Object Not found in mash... - Qlik Community - 1798818
ASK - Now according to above Support Article this error is kind of bug and We can suppress this popup by adding below code
app.on('error', (er) => {YourErrorHandler})
I am using Vizlib extensions which are possible cause for this error, Where should I add the above on method to suppress the error code
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @Manish_Kumar_
Just for some visibility on when this error is output, this is the code that is displaying the error:
C:\Program Files\Qlik\Sense\Client\2446.c027d01f7b02f8bcf1b3.js (file name and variable names are different based on the qlik version, these are the file/variables names in Qlik Sense May 2022 Patch11)
if (a && null === a.qHandle && null === a.qType) {
var l = I(h.OBJECT_NOT_FOUND, "Object not found");
return e.config.Promise.reject(l);
}
If the object exist, and the qHandle property and the qType property of the object are null then it will return the error "Object not found".
If you suspect the issue is related to the VizLib extension, I would say reach out to Vizlib and ask them to check if the extension you are using have proper qHandle and qType properties on all the objects it creates.
It would require some changes in the extension code to suppress the error if that is the case.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @Manish_Kumar_
Just for some visibility on when this error is output, this is the code that is displaying the error:
C:\Program Files\Qlik\Sense\Client\2446.c027d01f7b02f8bcf1b3.js (file name and variable names are different based on the qlik version, these are the file/variables names in Qlik Sense May 2022 Patch11)
if (a && null === a.qHandle && null === a.qType) {
var l = I(h.OBJECT_NOT_FOUND, "Object not found");
return e.config.Promise.reject(l);
}
If the object exist, and the qHandle property and the qType property of the object are null then it will return the error "Object not found".
If you suspect the issue is related to the VizLib extension, I would say reach out to Vizlib and ask them to check if the extension you are using have proper qHandle and qType properties on all the objects it creates.
It would require some changes in the extension code to suppress the error if that is the case.
