Knowage-Server icon indicating copy to clipboard operation
Knowage-Server copied to clipboard

Javascript error at OLAP template building when trying to select another measure

Open samueldc opened this issue 1 year ago • 4 comments

Describe the bug

I'm new to Knowage. Not sure if it's a bug. But mondrian squema works fine at Pentaho BI Server. Trying to follow the documentation about OLAP template building. When trying to select another query measure and apply, the page freezes. Inspecting we see the following javascript error messages in the console:

TypeError: Cannot read properties of null (reading 'wrappedObject')
    at Proxy.loadLevelValues (OlapFilterDialog.vue:69:64)
    at Proxy.loadLevels (OlapFilterDialog.vue:66:18)
    at Proxy.loadFilter (OlapFilterDialog.vue:53:18)
    at Proxy.propFilter (OlapFilterDialog.vue:44:18)
    at Pe (runtime-core.esm-bundler.js:154:22)
    at Ie (runtime-core.esm-bundler.js:163:21)
    at Array.b (runtime-core.esm-bundler.js:2032:17)
    at st (runtime-core.esm-bundler.js:329:31)
    at F (runtime-core.esm-bundler.js:5303:9)
    at runtime-core.esm-bundler.js:5231:21
TypeError: Cannot read properties of null (reading 'wrappedObject')
    at Proxy.updateOlapDesignerMDXQueryParameters (Olap.vue:816:40)
    at Olap.vue:805:22
    at c (runtime.js:63:40)
    at Generator._invoke (runtime.js:293:22)
    at Generator.next (runtime.js:118:21)
    at r (asyncToGenerator.js:3:20)
    at s (asyncToGenerator.js:25:9)

After refreshing the page, the measure is added and page returns to normal (refreshing only works at open designer page). After refreshing on execution page all changes are lost.

The same error occurs both at the open designer page and the execution page.

To Reproduce

Steps to reproduce the behavior:

  1. Edit a OLAP document and click on open designer or execute it.
  2. Click on the measures filter icon and try to add another measure.
  3. Check if the page freezes.
  4. Inspect the page and check javascript error at the console.

Expected behavior

Add another measure to the query without errors nor freezing the page.

Screenshots

Screenshots attached.

KnowageScreen01

KnowageScreen02

KnowageScreen03

Desktop (please complete the following information):

  • OS: Windows 10 | WSL2 | Docker
  • Browser: Chrome
  • Version: Knowage 8.1

otrs-olap.zip

Additional context

Mondrian schema and document template also attached.

samueldc avatar Jul 21 '22 15:07 samueldc

Hi, thank you for the detailed issue, we will investigate and let you know. Based on the console you shared I suppose it's a bug.

Redjaw avatar Jul 21 '22 15:07 Redjaw

This issue is stale because it is related to an old version or it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Aug 21 '22 00:08 github-actions[bot]

This issue is stale because it is related to an old version or it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Sep 23 '22 00:09 github-actions[bot]

Was the issue solved in a newer version?

samueldc avatar Sep 24 '22 17:09 samueldc

This issue is stale because it is related to an old version or it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Oct 25 '22 00:10 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Oct 31 '22 00:10 github-actions[bot]