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

KB17941: "Syntax error: expected something between ',' and the end of the request" error occurs when executing a report in MicroStrategy 9.x against a Teradata warehouse


Community Admin

• Strategy


SYMPTOM:
When running a report in Strategy 9.x, the SQL errors with the following message:
 

ka04W000000OcCKQA0_0EM440000002EzU.jpeg

 
Error: SQL Generation Complete
QueryEngine encountered error: Execute Query failed. Error type: Odbc error. Odbc operation attempted: SQLExecDirect. Syntax error: expected something between ',' and the end of the request.
Error in Process method of Component: QueryEngineServer, Project Strategy Tutorial, Job 189, Error Code= -2147212544.
Running the report SQL in DB Query Tool does not result in an error.
 
STEPS TO REPRODUCE:
In this situation, the user desires to include the report name in the report SQL and is accomplishing this through the use of the VLDB setting SQL Hint and SQL Wildcard !o with the following syntax:
 

ka04W000000OcCKQA0_0EM440000002EzL.gif

 
/* !o */
Refer to the following Strategy Knowledge Base technical note for additional information on SQL Wildcards:
 
KB10940: What SQL generation wildcards are implemented in Strategy Engine 9.x?
 
With only the Region attribute on the grid, and the report named "My ' Report" the Report SQL is as follows:
 
select /* My ' Report */ a11.REGION_ID REGION_ID,
a11.REGION_NAME REGION_NAME
from LU_REGION a11
Note that a single apostrophe appears within the SQL comments and therefore should be ignored.
 
When running the report, it errors out:
 

ka04W000000OcCKQA0_0EM440000002EzU.jpeg

 
Error: SQL Generation Complete
QueryEngine encountered error: Execute Query failed. Error type: Odbc error. Odbc operation attempted: SQLExecDirect. Syntax error: expected something between ',' and the end of the request.
Error in Process method of Component: QueryEngineServer, Project Strategy Tutorial, Job 189, Error Code= -2147212544.
CAUSE:
The error, SQL-3706 is a generic error message relating to the syntax of the SQL. In this example, the issue is caused by having an odd number of apostrophes in the report SQL and is specific to Teradata.
 
ACTION:
This issue may be resolved by modifying the following Teradata driver setting 'Disable Parsing':
 

  • Open up the ODBC Manager, and edit the Teradata ODBC DSN, as shown below:
ka04W000000OcCKQA0_0EM440000002EzW.jpeg
  • Select 'Options' to expand the Teradata Driver Options and uncheck the 'Disable Parsing' option to resolve this issue, as shown below:
ka04W000000OcCKQA0_0EM440000002EzJ.jpeg

Comment

0 comments

Details

Knowledge Article

Published:

May 17, 2017

Last Updated:

May 17, 2017