Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
s29124141
Partner - Creator II
Partner - Creator II

The selections generated no data for this chart error in mashup

We are getting "The selections generated no data for this chart" in the chart intermittently even after applying all the necessary selections. Below are some of the observations.

  • QS Server Version : 3.2 SR1
  • This behavior is very in-consistent.
  • Same selections work in Qlik Sense without any issue, this seems to be only in the mashup.
  • There is no error in the server logs.
  • Tried reloading the chart by calling app object as shown below, this shows the same error.
    • app.getObject($("#viz_bar"), $("#viz_bar").attr("data-qlik-objid"));
    • Verified the promise method of the above, doesn't have any data in the hypercube.
  • Verified the current selections by calling current selections, this seems to be having all the necessary selections.
    • app.getList("CurrentSelections", function (reply) { });
  • Underlying data for the same selections rendering without any issue for straight table.
  • Refreshing the browser multiple times, renders the chart.
  • Below errors are logged in the browser console.

error.png

Any help on this would be highly appreciated! Thank You!!

Regards,

Praveena

6 Replies
Digvijay_Singh

Tagging experts for help -

erik.wetterberg

reddys310

Thanks in advance!

Regards,

Digvijay

ErikWetterberg

Hi,

Looks like there is some problem with loading the ResizeSensor, which is part of the element queries support (for widgets mainly): Do you use any extensions? Does your mashup load any other libraries that might interfere with the loading of qlik? Are they loaded before or after qlik?

The fact that it is intermittent might mean that it is a timing issue.

Hope this is of some help

Erik Wetterberg

Digvijay_Singh

Thanks a lot Erik for your response.

We did some analysis on ResizeSensor. As per require.js code, It is expecting the needed files in folder -

C:\Program Files\Qlik\Sense\Client\assets\external\css-element-queries

We don't have css-element-queries folder at all.

We use modified version of FieldUI extension heavily for drop down and default selection features. We are trying to understand if this is making any difference.

Qlik Branch

Regarding sequence of loading of other libraries, we will get back with more details.

One important observation is, when loading fails, looks like connection with engine is failed, because any change in filters, dimensions(we change them dynamically) are not responded at all. In normal situation, we change charts through .NET drop downs, we change dimensions, and all works well.

We see below screen in error situation. We have dynamic title, and we do see selections in the fields used in title and they should have appeared in the title.

Capture.PNGOne

ErikWetterberg

Hi,

Element queries are included in qlik.js.

The extension load two javascript files lodash (through requirejs) and bootstrap (through adding javascript link). Just from reading the code the bootstrap loading might cause timing issues. If you try a page without the extension, do you still get the error?

Hope this helps

Erik Wetterberg

Digvijay_Singh

Thanks Erik for the insights.

We are working on correcting timing issue as you suggested. Loading require.js quite early and by some code maintenance, we are seeing big improvements.

We are still working on testing it without extensions. Hopefully we will have all the answers before start of next week.

Appreciate all your support.

s29124141
Partner - Creator II
Partner - Creator II
Author

Thanks erik.wetterberg‌ for your response. We tried disabling the extensions and the error still persists.

Below is the network snapshot shows the sequence of js loading.

sequence.PNG

Below is the line in QS.js that loads Qlik.js and throws an error "Uncaught Error: Module name "ResizeSensor" has not been loaded yet for context: _. Use require([])".

code.PNG

QS.js is the custom javascript file that has all the code related to capability apis.

Any help/pointers would be highly appreciated!