<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: An error occured ErrorCode.-2 in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/An-error-occured-ErrorCode-2/m-p/2054566#M86630</link>
    <description>&lt;P&gt;Did anyone have any joy with fixing this? I thought that using a new extension object (SimpleFieldSelect) was causing it, but after removing that from my app I'm still getting the error. I get it whenever I open a new sheet within the app. However, older versions that have never had the extension don't get the error, so it's not merely having it installed that's causing the issue?&lt;BR /&gt;&lt;BR /&gt;I'm kind of at a loss as to how to troubleshoot it, even. I've seen people mention adding lines of code, but I can't really imagine where or how?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;H4 id="toc-hId-1952443677"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Workaround:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P&gt;The workaround is to manually catch the error and suppress it with app.on()&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;app.on('error', (er) =&amp;gt; {YourErrorHandler})&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;That's all well and good, but I didn't create the extension, how / where would I add this?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for any help you can provide.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Mar 2023 09:40:46 GMT</pubDate>
    <dc:creator>rnorris</dc:creator>
    <dc:date>2023-03-29T09:40:46Z</dc:date>
    <item>
      <title>An error occured ErrorCode.-2</title>
      <link>https://community.qlik.com/t5/App-Development/An-error-occured-ErrorCode-2/m-p/1727983#M55496</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;When i open Sheet i have this error&amp;nbsp;@"An error occured ErrorCode.-2"&lt;/P&gt;&lt;P&gt;What does it mean ? And how i can fix it?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 11:43:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/An-error-occured-ErrorCode-2/m-p/1727983#M55496</guid>
      <dc:creator>Sir_Johanos</dc:creator>
      <dc:date>2020-07-15T11:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: An error occured ErrorCode.-2</title>
      <link>https://community.qlik.com/t5/App-Development/An-error-occured-ErrorCode-2/m-p/1747786#M57489</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/92106"&gt;@Sir_Johanos&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;"ErrorCode.2": "The resource could not be found."&lt;/PRE&gt;&lt;P&gt;A full list is as follows&lt;/P&gt;&lt;PRE&gt;"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.",&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Credit to &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6966"&gt;@ErikWetterberg&lt;/a&gt; from this article &lt;A href="https://extendingqlik.upper88.com/handle-errors-in-your-qlik-sense-mashup/" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:42:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/An-error-occured-ErrorCode-2/m-p/1747786#M57489</guid>
      <dc:creator>wheatleb</dc:creator>
      <dc:date>2020-09-28T15:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: An error occured ErrorCode.-2</title>
      <link>https://community.qlik.com/t5/App-Development/An-error-occured-ErrorCode-2/m-p/1749163#M57594</link>
      <description>&lt;P&gt;What's the best way to track *which* resource is missing?&lt;BR /&gt;&lt;BR /&gt;I have an app that works completely without issue in QS, but gets the "ErrorCode.-2" randomly when I view it through an iFrame.&amp;nbsp; Sometimes, the page will load completely, but then flickers, refreshes a few of the objects, and throws this error.&amp;nbsp; I can't seem to get more detail from it.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 12:20:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/An-error-occured-ErrorCode-2/m-p/1749163#M57594</guid>
      <dc:creator>djnorton</dc:creator>
      <dc:date>2020-10-02T12:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: An error occured ErrorCode.-2</title>
      <link>https://community.qlik.com/t5/App-Development/An-error-occured-ErrorCode-2/m-p/1765365#M59206</link>
      <description>&lt;P&gt;This isn't a resource not found error. The error code is -2, not 2. We're getting the same thing.&lt;/P&gt;&lt;P&gt;It comes through as -2 because it's not found on the translation table.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 06:03:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/An-error-occured-ErrorCode-2/m-p/1765365#M59206</guid>
      <dc:creator>lsenjov</dc:creator>
      <dc:date>2020-12-01T06:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: An error occured ErrorCode.-2</title>
      <link>https://community.qlik.com/t5/App-Development/An-error-occured-ErrorCode-2/m-p/1769385#M59500</link>
      <description>&lt;P&gt;Same issue here as well with Qlik Sense 2020 September Patch 6 and the code is -2&lt;/P&gt;&lt;P&gt;Hope someone finds why it is happening and possibly the way to fix the problem.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 05:37:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/An-error-occured-ErrorCode-2/m-p/1769385#M59500</guid>
      <dc:creator>woundine1</dc:creator>
      <dc:date>2020-12-18T05:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: An error occured ErrorCode.-2</title>
      <link>https://community.qlik.com/t5/App-Development/An-error-occured-ErrorCode-2/m-p/1774815#M60034</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/89271"&gt;@woundine1&lt;/a&gt;&amp;nbsp;&amp;nbsp;Are you going through a reverse proxy?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 15:46:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/An-error-occured-ErrorCode-2/m-p/1774815#M60034</guid>
      <dc:creator>amartinezaxis</dc:creator>
      <dc:date>2021-01-15T15:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: An error occured ErrorCode.-2</title>
      <link>https://community.qlik.com/t5/App-Development/An-error-occured-ErrorCode-2/m-p/1775092#M60069</link>
      <description>&lt;P&gt;Yes, we are using Qlik Sense through reverse proxy&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 02:32:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/An-error-occured-ErrorCode-2/m-p/1775092#M60069</guid>
      <dc:creator>woundine1</dc:creator>
      <dc:date>2021-01-18T02:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: An error occured ErrorCode.-2</title>
      <link>https://community.qlik.com/t5/App-Development/An-error-occured-ErrorCode-2/m-p/1776884#M60235</link>
      <description>&lt;P&gt;it's Enigma error&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/qlik-oss/enigma.js/blob/master/src/error-codes.js" target="_blank" rel="noopener"&gt;https://github.com/qlik-oss/enigma.js/blob/master/src/error-codes.js&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I was able to get rid of this error when I removed the line from the extension app.variable.SetNumValue('M&lt;/SPAN&gt;yVar',ValueOfMyVar)&lt;/P&gt;&lt;P&gt;this post also suggests that the source of the problems is app.variable&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Sense-Integration-Extensions-APIs/doreload-cause-error-when-called-after-variable-setStringValue/td-p/1749241" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/Qlik-Sense-Integration-Extensions-APIs/doreload-cause-error-when-called-after-variable-setStringValue/td-p/1749241&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jan 2021 13:24:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/An-error-occured-ErrorCode-2/m-p/1776884#M60235</guid>
      <dc:creator>mafintin</dc:creator>
      <dc:date>2021-01-24T13:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: An error occured ErrorCode.-2</title>
      <link>https://community.qlik.com/t5/App-Development/An-error-occured-ErrorCode-2/m-p/1780637#M60721</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/92106"&gt;@Sir_Johanos&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By any chance have you noticed any pattern when you see the error?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does it occur after an specific selection?&lt;/P&gt;&lt;P&gt;Do you have any third party extensions, if so, if you remove them do you still see the error?&lt;/P&gt;&lt;P&gt;Have you seen if you have any obsolete objects in your app? for example&amp;nbsp;&lt;SPAN&gt;qlik-show-hide-container is a deprecated object.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kind Regards.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 21:17:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/An-error-occured-ErrorCode-2/m-p/1780637#M60721</guid>
      <dc:creator>NadiaB</dc:creator>
      <dc:date>2021-02-05T21:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: An error occured ErrorCode.-2</title>
      <link>https://community.qlik.com/t5/App-Development/An-error-occured-ErrorCode-2/m-p/1806963#M65657</link>
      <description>&lt;P&gt;There is a workaround posted &lt;A href="https://community.qlik.com/t5/Knowledge-Base/Qlik-Sense-Error-Code-2-Object-Not-found-in-mashups-extensions/ta-p/1798818" target="_self"&gt;here.&lt;/A&gt;&lt;BR /&gt;However, I am having trouble applying the app.on("error"...) method to a Mashup with iframes.&amp;nbsp; I cannot seem to get app.on to work on the iframes.&amp;nbsp; I am applying it in the Mashup .js.&amp;nbsp; Any suggestions?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 13:21:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/An-error-occured-ErrorCode-2/m-p/1806963#M65657</guid>
      <dc:creator>TresSciuri</dc:creator>
      <dc:date>2021-05-11T13:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: An error occured ErrorCode.-2</title>
      <link>https://community.qlik.com/t5/App-Development/An-error-occured-ErrorCode-2/m-p/1806964#M65658</link>
      <description>&lt;P&gt;I should add:&amp;nbsp; I have found that using the iframe format generated using the "embed" function in the sheet itself throws the error far less frequently than using the format from the Single Configurator.&amp;nbsp; But it still occurs.&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 13:24:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/An-error-occured-ErrorCode-2/m-p/1806964#M65658</guid>
      <dc:creator>TresSciuri</dc:creator>
      <dc:date>2021-05-11T13:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: An error occured ErrorCode.-2</title>
      <link>https://community.qlik.com/t5/App-Development/An-error-occured-ErrorCode-2/m-p/2054566#M86630</link>
      <description>&lt;P&gt;Did anyone have any joy with fixing this? I thought that using a new extension object (SimpleFieldSelect) was causing it, but after removing that from my app I'm still getting the error. I get it whenever I open a new sheet within the app. However, older versions that have never had the extension don't get the error, so it's not merely having it installed that's causing the issue?&lt;BR /&gt;&lt;BR /&gt;I'm kind of at a loss as to how to troubleshoot it, even. I've seen people mention adding lines of code, but I can't really imagine where or how?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;H4 id="toc-hId-1952443677"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Workaround:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P&gt;The workaround is to manually catch the error and suppress it with app.on()&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;app.on('error', (er) =&amp;gt; {YourErrorHandler})&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;That's all well and good, but I didn't create the extension, how / where would I add this?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for any help you can provide.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 09:40:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/An-error-occured-ErrorCode-2/m-p/2054566#M86630</guid>
      <dc:creator>rnorris</dc:creator>
      <dc:date>2023-03-29T09:40:46Z</dc:date>
    </item>
  </channel>
</rss>

