IBM Cognos Cloud FP7 upgrade- Issue with Native SQL Comments

Issue:
Native SQL based report against Oracle DB giving error:

XQE-DAT-0001
    Data source adapter error: java.sql.SQLSyntaxErrorException: ORA-00907: missing right parenthesis

Symptoms:
Reports have multiple native sqls against Oracle DB. It is using Master details, Page set as well

Cause:
Cognos 10.2.2 FP7 upgrade from FP3

Analysis and Solution:

  • Run query in Tabular data and see error coming from specific queries
  • On analysis, it was found that there is comment statement in the end of query and it's not able to handle in FP7. It should have omitted it for evaluation.
  • After removing the commented line, error disappeared.

Comments:

If we use standard comments /* */  or we move last commented line to in between query, it is able to parse sql correctly and send to Oracle as well.


This is possible issue in supporting Oracle comments for this scenario in FP7.


Popular posts from this blog

Cognos Excel Text Wrapping Issue - Row Merge and Column Merge

Cognos: How to replace an existing report without breaking links?

How to change package for a report in IBM Cognos Analytics (ICA)?