EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB18724: Reports based on SAP BW query cubes with variables produce errors when loading prompts in MicroStrategy 8.1.2


Community Admin

• Strategy


SYMPTOM:
A query cube is imported into Strategy from SAP BW and reports are constructed based on the cube. The cube contains SAP variables, which are imported into Strategy as prompts. When executing reports on the cube, prompts are unable to load because of errors retrieving attribute elements.
Strategy Desktop:

ka04W000000OhY1QAK_0EM440000002ErA.gif


Status: Execution failed
Error: Unable to Start Execution

 

Strategy Web:

ka04W000000OhY1QAK_0EM440000002ErD.gif

Element fetching failed, possible reason: block count might exceed the project governing limit. 
The DSSErrors.log may contain errors such as the following: 


2008-06-04 16:55:32.109-05:00 ExecQuery failed. MDX Execution failed. Error type: JCO layer error. JCOStatement.executeQuery failed. java.lang.Exception: Error during MDX Query Execution
Error during Bapi Execution: Unknown error when executing MDX
at com.Strategy.Database.JCO.JCOStatement.executeQuery(JCOStatement.java:85)
. Connection String: N/A;. Connection String: N/A;. SQL Statement: with set as '{..members}'
member . as 'Count({}, INCLUDEEMPTY)'
select {.} on columns
from

CAUSE:
This behavior is the result of a new feature in Strategy 8.1.2, incremental fetch for OLAP Cube attribute elements, combined with a specific feature of the query cube's design in SAP. In SAP Business Explorer Query Designer, it is possible to design a query cube including variables whose characteristics (which roughly correspond to attributes in Strategy) are not part of the cube's template. For example, a query cube could include Geography and Time dimensions on the template but also include a restriction on the Product dimension.
Query cube template:

ka04W000000OhY1QAK_0EM440000002Er5.gif

Query cube filter:

ka04W000000OhY1QAK_0EM440000002ErF.gif

If this query is run in SAP Business Explorer Analyzer, the user will be asked which item to report on, and the results are broken down by Geography and Time but pre-filtered for only those items. In Strategy, the variable must be presented to the user as a prompt, and to show the prompt, Strategy has to retrieve the attribute elements from the SAP system. Up to and including Strategy 8.1.1, a "schema rowset" call is used to fetch the elements. For this call to succeed, it is sufficient for the attribute to exist in the InfoCube on which the query cube is built. It does not have to be part of the query cube's template.
Beginning with Strategy 8.1.2, large element sets are fetched incrementally from the data source. Incremental fetch requires a count of attribute elements before retrieving any elements, and the only way to obtain this count is by executing an MDX statement against the query cube. MDX cannot query against objects that are not part of the query cube template. Consequently, the query fails and attribute elements cannot be loaded.
ACTION:
All characteristics that are used in SAP variables should be present in either the rows, columns or "free characteristics" sections of the cube definition. If these characteristics are added to the free characteristics section, they will not affect the appearance of the query in Business Explorer Analyzer, but they will be available to Strategy for MDX statements. The cube structure must be updated in the Strategy OLAP cube catalog. Also, if the SAP schema is preloaded, an update schema operation should be performed before running reports against the modified cube.
Here, Item (the characteristic used in the variable) has been added to the free characteristics section:

ka04W000000OhY1QAK_0EM440000002Er8.gif

After updating the cube structure in Strategy, the prompt loads successfully and the report may be executed without issue.

ka04W000000OhY1QAK_0EM440000002ErK.gif

 
 


Comment

0 comments

Details

Knowledge Article

Published:

May 16, 2017

Last Updated:

May 16, 2017