Troubleshooting
Problem
When changing from CQM to DQM, existing reports get error : XQE-DAT-0001 Data source adapter error: java.sql. SQLSyntaxErrorException: ORA-01722: invalid number
Symptom
During DQM Migration,
Existing reports with Oracle datasource start failing with error
XQE-DAT-0001 Data source adapter error: java.sql.
SQLSyntaxErrorException: ORA-01722: invalid number
Cause
in CQM, parameters were internally converted as number which is not the case in DQM.
Environment
Cognos BI 10.2.2
Oracle
DQM
Diagnosing The Problem
If there is some calculation based on the parameter which requires typecasting, this issue occurs. In DQM, parameter needs to be converted to number before using it.
Resolving The Problem
Instead of parameter ?parameter1? use the expression to_number(?parameter1?) in order to get rid of this issue.
Eg:
to_char({sysdate} + ?DaysUntillExpire?,'YYYY-MM-DD')
To
to_char({sysdate} + to_number(?DaysUntillExpire?),'YYYY-MM-DD')
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21964350