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

KB40177: “Unspecified exception caught in Query Engine” errors occurs using SQL Global Optimization level 2 or 3 or 4 having custom group element link to a Rank-metric report in MicroStrategy 9.4.x


Community Admin

• Strategy


“Unspecified exception caught in Query Engine” errors occurs using SQL Global Optimization level 2 or 3 or 4 having custom group element link to a Rank-metric report in MicroStrategy 9.4.x

SYMPTOM:
 
In Strategy 9..4.x, report errors with SQL Global Optimization level 2 or 3 or 4, but executes successfully with Level 0 or level 1 as shown below:
 

ka04W000000OdVaQAK_0EM440000002CCN.png

 
Following entries are caught in the DSSErrors.log:
 
 


QueryEngine encountered error: Unspecified exception caught in Query Engine..
(SQL Generation CompleteQueryEngine encountered error: Unspecified exception caught in Query Engine.. Error in Process method of Component: QueryEngineServer, Project Strategy Tutorial, Job 516, Error Code= -2147212544.) 

 
To expose the issue, following conditions need to be met:
 
     1.    Report has custom group element link to report
     2.    The linked report has a rank metric
     3.    VLDB property "SQL Global Optimization" level 2 or 3 or 4 is selected
 
 
REPRODUCING IN TUTORIAL PROJECT:
 
     1.    In Strategy Desktop, create two reports:
          a.    One report to get Top 5 region by revenue in Year 2010 called R1
With Region in row and metric Revenue in column, add a set qualification filtering top 5 revenue and an attribute qualification limiting to year 2010 as shown below:
 

ka04W000000OdVaQAK_0EM440000002CCV.png

 
          b.    Another report to get all region by revenue in Year 2010 called R2. {A duplicate of the first report without the ranking metric}
With Region in row and metric Revenue in column, add an attribute qualification limiting to year 2010 as shown below:
 

ka04W000000OdVaQAK_0EM440000002CCS.png

 
     2.    Create a custom Group called CG.
          a.    Create 2 elements
          b.    Add shortcut to report R1 to Element 1 (Display Individual Item Only)
Right mouse click the Element 1, select Show Display Options>check “Show only the individual items within this element”
          c.    Include Report R2 to Element 2 (Display Element Name Only)
Right mouse click the Element 2, select Show Display Options>check “Show only the element names on the report”
 

ka04W000000OdVaQAK_0EM440000002CCR.png

 
 
     3.    Insert the custom group created in step 2 into a new report called R3. Include Sales Amount to report template and Year 2010 to the report filter. Make sure the VLDB property "SQL Global Optimization" level 2 or 3 or 4 is selected. Execute the report get below error: 
 

ka04W000000OdVaQAK_0EM440000002CCN.png

 
     4.    However if report set to be with Global Optimization level 1, report executes successfully as shown below:
 

ka04W000000OdVaQAK_0EM440000002CCU.png

 
 
 
 
 
 
CAUSE:
 
This is a known issue with Strategy 9.x
 
 
 
ACTION:
 
 
Please contact Strategy Technical Support for an update with this issue.
 
 
 
WORKAROUND:
 
Set VLDB property "SQL Global Optimization" level 1 or 0 at report level.
 
The Strategy Internal Reference Number for the issue discussed in this technical note is 424006. 
 
 
 
 
 
 
 


Comment

0 comments

Details

Knowledge Article

Published:

April 13, 2017

Last Updated:

April 13, 2017