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

KB422277: "Error: SQL Generation Complete. QueryEngine encountered error: ExecQuery failed. MDX Execution failed... " shows when using transformation in the compound metric in MicroStrategy Developer 9.x / 10.x against a SAP BW cube


Stefan Zepeda

Salesforce Solutions Architect • Strategy


This article explains a situation whereby users trying to apply KB16096 fails with an "ExecQuery failed. MDX Execution failed" error and explains what to do about it.

SYMPTOM:
When users try to create a custom metric formula in MDX to implement a transformation by the following the technical note below,
KB16096:How to write a custom metric formula in MDX to implement a transformation in MicroStrategy Engine
it fails with the error message as below.
Error: SQL Generation Complete QueryEngine encountered error: 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: Invalid MDX command with , at com.Strategy.Database.JCO.JCOStatement2.executeQuery(Unknown Source). Connection String: N/A;. Connection String: N/A;. SQL Statement: with member . as '(,.CurrentMember.PrevMember)' set as '{..members}' select {.} on columns, non empty on rows from cell properties CELL_ORDINAL, FORMATTED_VALUE, VALUE, FORMAT_STRING ..  Error in Process method of Component: QueryEngineServer, Project Strategy Tutorial, Job 350, Error Code= -2147212544.
CAUSE:
One possible cause is that  the wrong usage of the hierarchy name of the SAP BW cube. Like the example above, the metric is defined as below.
"(,.CurrentMember.PrevMember)" {~} 
Note: Technical Names of the hierarchy is required to be used.
ACTION:
Click on the "Show Technical Names" to get the technical name for compound metric creation.

ka02R000000kV4qQAE_0EM440000002HOb.png

For example, the metric to return previous date value should be defined as below.
"(.,.CurrentMember.PrevMember)" {~}
 
KB422277


Comment

0 comments

Details

Knowledge Article

Published:

May 23, 2017

Last Updated:

November 29, 2018