Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 16 Oracle Analytics Lounge
- 216 Oracle Analytics News
- 43 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 79 Oracle Analytics Trainings
- 15 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P

Hello
I am new at OBI. I am creating a report and I am getting the next error
Odbc driver returned an error (SQLExecDirectW).
This happens once I used a formula in two columns.I have columns A and B, they are very similar, almost the same except for one value ("Submission Dates"."Offer Accepted Date" against "Submission Dates"."Hire Start Date").
Column A
(SUM(SUM(CASE WHEN "Requisition Status - Current"."Current Status" = 'Filled' THEN (TIMESTAMPDIFF(SQL_TSI_DAY,(CASE WHEN "Requisition Identification"."Req. Identifier" IN ('1004932','1004933'','1100495') THEN TO_DATETIME('2010-01-01','yyyy-mm-dd') ELSE "Requisition Dates"."Req. Creation Date" END), "Submission Dates"."Offer Accepted Date")+1)-"Requisition Aging"."Time On Hold Since Creation" END) BY "Requisition Identification"."Req. Identifier"))/(CASE WHEN "Submission CSW Status - Current"."Current Status Name" = 'Cleared for Hire/Proceed to OnBoarding'THEN COUNT("Submission General Info"."Submission Identifier") END)
Column B
(SUM(SUM(CASE WHEN "Requisition Status - Current"."Current Status" = 'Filled' THEN (TIMESTAMPDIFF(SQL_TSI_DAY,(CASE WHEN "Requisition Identification"."Req. Identifier" IN ('1004932','1004933'','1100495') THEN TO_DATETIME('2010-01-01','yyyy-mm-dd') ELSE "Requisition Dates"."Req. Creation Date" END), "Submission Dates"."Hire Start Date")+1)-"Requisition Aging"."Time On Hold Since Creation" END) BY "Requisition Identification"."Req. Identifier"))/(CASE WHEN "Submission CSW Status - Current"."Current Status Name" = 'Cleared for Hire/Proceed to OnBoarding'THEN COUNT("Submission General Info"."Submission Identifier") END)
If I run the report with those formulas the report runs, but without results. If I change the last part of the formula after the / and put this :
(SUM(COUNT(CASE WHEN "Submission CSW Status - Current"."Current Status Name" = 'Cleared for Hire/Proceed to OnBoarding' THEN "Submission General Info"."Submission Identifier" END) BY "Submission General Info"."Submission Identifier" )) it runs and I get results, but only If a put that in one column. If I want to put that in column A and B at the same time it will give me the error you saw at the begging.
Answers
-
You need to look at
TIMESTAMPDIFF(SQL_TSI_DAY,
(CASE WHEN "Requisition Identification"."Req. Identifier" IN ('1004932','1004933'','1100495') THEN
TO_DATETIME('2010-01-01','yyyy-mm-dd') ELSE "Requisition Dates"."Req. Creation Date" END), "Submission Dates"."Offer Accepted Date")+1)
validate this first
0 -
I validate that and It works, alone. Actually what it is wear is that If I put the formula of column A in both columns (A and
, it shows me the same error. Which is weird because I am applying the same formula in the the two columns.
0 -
Whats the return type from this expression? looks like date !!
DateType/NumberType !!
(SUM(SUM(CASE WHEN "Requisition Status - Current"."Current Status" = 'Filled' THEN (TIMESTAMPDIFF(SQL_TSI_DAY,(CASE WHEN "Requisition Identification"."Req. Identifier" IN ('1004932','1004933'','1100495') THEN TO_DATETIME('2010-01-01','yyyy-mm-dd') ELSE "Requisition Dates"."Req. Creation Date" END), "Submission Dates"."Offer Accepted Date")+1)-"Requisition Aging"."Time On Hold Since Creation" END) BY "Requisition Identification"."Req. Identifier"))
0 -
The return is a normal number. Like 240 or 235.
0 -
hmm i dont think so
can you explain by splitting the function?
0