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

KB38159: “ORA-00904: "RIGHT": invalid identifier” when running a report in MicroStrategy 10.x and using Oracle as Warehouse.


Community Admin

• Strategy


Executing a report that contains an attribute with a form based on ApplySimple making reference to an internal database function “Right”, an error message is thrown.

SYMPTOM:
Executing a report that contains an attribute with a form based on ApplySimple making reference to an internal database function “Right”, the following error message is thrown:
 

ka04W000000OhdzQAC_0EM440000002JGG.jpeg

 
 
Sample Code/Error
QueryEngine encountered error: Execute Query failed.
Error type: Odbc error. Odbc operation attempted: SQLExecDirect.
ORA-00904: "RIGHT": invalid identifier
 
 
 
CAUSE:
 
The internal database function “Right” is a Microsoft SQL Server internal function that does not exist in Oracle. In this referred scenario, the warehouse had been recently migrated from Microsoft SQL Server to Oracle, so the ApplySimple statement still contained this function as shown:
 

ka04W000000OhdzQAC_0EM440000002JGE.jpeg

 
 
ACTION:
 
Replace the Microsoft SQL Server internal function reference “Right” by an equivalent Oracle function. Contact the Database Administrator in order to obtain further information about internal Oracle function.  
 
 
 
 
 


Comment

0 comments

Details

Knowledge Article

Published:

May 4, 2017

Last Updated:

May 4, 2017