Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Sir_Johanos
Contributor II
Contributor II

An error occured ErrorCode.-2

Hello,

When i open Sheet i have this error @"An error occured ErrorCode.-2"

What does it mean ? And how i can fix it?

Thanks

11 Replies
wheatleb
Partner Ambassador Alumni
Partner Ambassador Alumni

Hey @Sir_Johanos 

"ErrorCode.2": "The resource could not be found."

A full list is as follows

"ErrorCode.-128": "Internal engine error",
"ErrorCode.-1": "Unknown error",
"ErrorCode.0": "Unknown error",
"ErrorCode.1": "Some data is not correctly specified.",
"ErrorCode.2": "The resource could not be found.",
"ErrorCode.3": "Resource already exists.",
"ErrorCode.4": "Invalid path",
"ErrorCode.5": "Access is denied",
"ErrorCode.6": "The system is out of memory.",
"ErrorCode.7": "Not initialized",
"ErrorCode.8": "Invalid parameters",
"ErrorCode.9": "Some parameters are empty.",
"ErrorCode.10": "Internal error",
"ErrorCode.11": "Corrupted data",
"ErrorCode.12": "Memory inconsistency",
"ErrorCode.13": "Action was aborted unexpectedly.",
"ErrorCode.14": "Validation cannot be performed at the moment. Please try again later.",
"ErrorCode.15": "Operation aborted",
"ErrorCode.16": "Connection lost. Make sure that Qlik Sense is running properly. If your session has timed out due to inactivity, refresh to continue working.",

 Credit to @ErikWetterberg from this article here 

djnorton
Partner - Contributor
Partner - Contributor

What's the best way to track *which* resource is missing?

I have an app that works completely without issue in QS, but gets the "ErrorCode.-2" randomly when I view it through an iFrame.  Sometimes, the page will load completely, but then flickers, refreshes a few of the objects, and throws this error.  I can't seem to get more detail from it.

lsenjov
Partner - Contributor
Partner - Contributor

This isn't a resource not found error. The error code is -2, not 2. We're getting the same thing.

It comes through as -2 because it's not found on the translation table.

woundine1
Partner - Contributor II
Partner - Contributor II

Same issue here as well with Qlik Sense 2020 September Patch 6 and the code is -2

Hope someone finds why it is happening and possibly the way to fix the problem.

amartinezaxis
Partner - Contributor
Partner - Contributor

@woundine1  Are you going through a reverse proxy?

woundine1
Partner - Contributor II
Partner - Contributor II

Yes, we are using Qlik Sense through reverse proxy

mafintin
Partner - Contributor
Partner - Contributor

it's Enigma error 

https://github.com/qlik-oss/enigma.js/blob/master/src/error-codes.js

I was able to get rid of this error when I removed the line from the extension app.variable.SetNumValue('MyVar',ValueOfMyVar)

this post also suggests that the source of the problems is app.variable

https://community.qlik.com/t5/Qlik-Sense-Integration-Extensions-APIs/doreload-cause-error-when-calle...

NadiaB
Support
Support

@Sir_Johanos 

By any chance have you noticed any pattern when you see the error? 

Does it occur after an specific selection?

Do you have any third party extensions, if so, if you remove them do you still see the error?

Have you seen if you have any obsolete objects in your app? for example qlik-show-hide-container is a deprecated object.

Kind Regards.

Don't forget to mark as "Solution Accepted" the comment that resolves the question/issue. #ngm
TresSciuri
Contributor
Contributor

There is a workaround posted here.
However, I am having trouble applying the app.on("error"...) method to a Mashup with iframes.  I cannot seem to get app.on to work on the iframes.  I am applying it in the Mashup .js.  Any suggestions?