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

KB13666: How to add a prompt to a Freeform SQL report in MicroStrategy Developer 10.x


Stefan Zepeda

Salesforce Solutions Architect • Strategy


KB13666: How to add a prompt to a Freeform SQL report in MicroStrategy Developer 10.x

To add a prompt to a Freeform SQL report in Strategy Developer 10.x, first open the Freeform SQL report Editor to create a new report.
 
Enter a SQL statement and click on the 'Add prompt' button, as shown below:
 

ka044000000kULYAA2_0EM440000002FWu.gif

 
The prompt element will be added automatically, as shown below:
 

ka044000000kULYAA2_0EM440000002FWn.gif

 
Execute the report and the following error message will appear:
 

ka044000000kULYAA2_0EM440000002FWr.gif

 
QueryEngine encountered error: Execute Query failed. Error type: Odbc error. Odbc operation attempted: SQLExecDirect. In operator without [] in query expression 'year_id in 2003, 2004, 2005'.
In order to execute the report correctly, the user must put the prompt element within brackets in the SQL Statement, as shown below:
 

ka044000000kULYAA2_0EM440000002FWp.gif

 
Now the report will execute correctly, as shown below:
 

ka044000000kULYAA2_0EM440000002FXB.gif

 
13666


Comment

0 comments

Details

Knowledge Article

Published:

May 31, 2017

Last Updated:

March 29, 2019