When the env is upgraded fom 12.1.1.4 to OAS 7 , some reports are failing due to evaluate function not working. The same report is working fine in OBIEE 12c but not working in OAS 7.
Error Codes: OPR4ONWY:U9IM8TAC:U9IM8TAC:U9IM8TAC:U9IM8TAC:OI2DL65P. State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred.
State: HY000. Code: 43275. [nQSError: 43275] Message returned from OBIS [ecid:995efb47-134f-452e-9da5-7ee96d7e30e1-000b880a,0:1:2:6 ts:2023-09-12T16:45:40.113-04:00].
State: HY000. Code: 43119. [nQSError: 43119] Query Failed: State: HY000. Code: 42015. [nQSError: 42015] Cannot function ship the following expression: EVALUATE.
Error Codes: OPR4ONWY:U9IM8TAC:U9IM8TAC:U9IM8TAC:U9IM8TAC:OI2DL65P
This report have some dimensions and some case statements with evaluate in the column logics. What aggregation settings or Case statements enforcements or evaluate settigns are changed in OAS ?
Product version using : OAS 7, let me know if any other information is required?
Case logic that seems failing:
CASE WHEN CAST(COUNT(DISTINCT "Journals"."JE Header ID" by "- DFF - Recurring Journals"."Recurring Journal ID") AS INT) > 1 THEN 'Y'
WHEN MAX(TIMESTAMPADD(SQL_TSI_HOUR,-5, "Journals"."Journal Posted Date")) < EVALUATE('trunc(last_day(add_months(sysdate, -1)) +1)') THEN
case when CAST(evaluate('XXPRUWH.SPGETGLBUSINESSDAYS(%1)',MAX(TIMESTAMPADD(SQL_TSI_HOUR, -5, "Journals"."Journal Posted Date"))) AS INT) -(CAST(evaluate('XXPRUWH.SPGETGLBUSINESSDAYS(%1)',EVALUATE('last_day(add_months(sysdate, -1))')) AS INT)) > CAST("- DFF - Recurring Journals"."Expected Business Day" AS INT) THEN 'Y' else 'N' end when CAST(evaluate('XXPRUWH.SPGETGLBUSINESSDAYS(%1)',MAX(TIMESTAMPADD(SQL_TSI_HOUR, -5, "Journals"."Journal Posted Date"))) AS INT) > CAST("- DFF - Recurring Journals"."Expected Business Day" AS INT) THEN 'Y' ELSE 'N' END