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

KB17649: 'Error: SQL Generation Complete QueryEngine encountered error: Fetch failed. Error type: Invalid operation...' error message appears when executing a Freeform SQL report containing a CREATE TABLE statement in MicroStrategy Engine


Community Admin

• Strategy


This article notes an error that can occur with freeformSQL reports containing statements that don't return results

SYMPTOM:
 
When attempting to execute a Freeform SQL report containing a CREATE TABLE statement or other statement which doesn't select results, like the one below, the following error appears in Strategy Engine:
 

ka04W000000ObLaQAK_0EM440000002Exd.jpeg

 
CREATE TABLE TEST100 (COL1 INTEGER)

ka04W000000ObLaQAK_0EM440000002Exq.jpeg

 
Error: SQL Generation Complete QueryEngine encountered error: Fetch failed. Error type: Invalid operation. Attempted to fetch an empty result. Error in Process method of Component: QueryEngineServer, Project Strategy Tutorial, Job 291, Error Code -2147212544.
NOTE: The table is created despite the report execution failure.
 
CAUSE:
 
Freeform SQL reports take custom SQL and execute it against a database, mapping the result set returned to Strategy objects. A CREATE TABLE statement does not return a result set, just a success or failure message, so the report execution fails when the result set comes back empty.
 
ACTION:
 
The CREATE TABLE statement can be placed in a Report Pre Statement VLDB property, which does not expect a result set:
 

ka04W000000ObLaQAK_0EM440000002Exo.jpeg

 


Comment

0 comments

Details

Knowledge Article

Published:

June 2, 2017

Last Updated:

June 2, 2017