Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

BI Publisher,,

Avatar of SandeepTheeda
SandeepTheeda asked on
DatabasesOracle Database
1 Comment1 Solution1672 ViewsLast Modified:
Hi, I am using BI Publisher with source os OBIEE. When I try to run this query, I am getting an error.

java.io.IOException: prepare query failed[nQSError: 27002] Near : Syntax error [nQSError: 26012] .

But when I remove this :
("- Nx_PAG0_Projects (Projects Views)"."Project_Number" = "- Nx_PAG0_Proj_User_Define_Attrs (Projects Views)"."Project_Number"

the query worls fine.


SELECT "- Nx_PAG0_Projects (Projects Views)".Operating_Unit_Name saw_0, "- Nx_PAG0_Projects (Projects Views)".Carrying_Out_Organization saw_1, "- Nx_PAG0_Projects (Projects Views)".Project_Number saw_2, "- Nx_PAG0_Projects (Projects Views)".Project_Name saw_3, CAST("- Nx_PAG0_Proj_User_Define_Attrs (Projects Views)"."D_Ext$Activity_date" AS DATE) saw_4, "- Nx_PAG0_Proj_User_Define_Attrs (Projects Views)"."C_Ext$Rig_number" saw_5, "- Nx_PAG0_Proj_User_Define_Attrs (Projects Views)"."C_Ext$Shift" saw_6, "- Nx_PAG0_Proj_User_Define_Attrs (Projects Views)"."C_Ext$Hole_number" saw_7, CASE WHEN "- Nx_PAG0_Proj_Drilling_Attributes (Projects Views)"."C_Ext$Billable" ='Y' THEN 'Yes' ELSE 'No' END saw_8, "- Nx_PAG0_Proj_User_Define_Attrs (Projects Views)"."N_Ext$Total_depth" saw_9, "- Nx_PAG0_Tasks (Projects Views)".Task_Number saw_10, "- Nx_PAG0_Tasks (Projects Views)".Task_Name saw_11, "- Nx_PAG0_Tasks (Projects Views)".Task_Description saw_12, CASE WHEN "- Nx_PAG0_Tasks (Projects Views)".Billable_Flag ='Y' THEN 'Yes' ELSE 'No' END saw_13, "- Nx_PAG0_Proj_Billing_Attributes (Projects Views)"."C_Ext$Non_labor_resource" saw_14, "- Nx_PAG0_Proj_Billing_Attributes (Projects Views)"."C_Ext$Bit_type" saw_15, "- Nx_PAG0_Proj_Drilling_Attributes (Projects Views)"."N_Ext$From_depth" saw_16, "- Nx_PAG0_Proj_Drilling_Attributes (Projects Views)"."N_Ext$To_depth" saw_17, ("- Nx_PAG0_Proj_Drilling_Attributes (Projects Views)"."N_Ext$To_depth"-"- Nx_PAG0_Proj_Drilling_Attributes (Projects Views)"."N_Ext$From_depth") saw_18, "- Nx_PAG0_Proj_Billing_Attributes (Projects Views)"."C_Ext$UOM" saw_19, "- Nx_PAG0_Proj_Billing_Attributes (Projects Views)"."N_Ext$Bill_rate" saw_20, ("- Nx_PAG0_Proj_Drilling_Attributes (Projects Views)"."N_Ext$To_depth"-"- Nx_PAG0_Proj_Drilling_Attributes (Projects Views)"."N_Ext$From_depth")*"- Nx_PAG0_Proj_Billing_Attributes (Projects Views)"."N_Ext$Bill_rate" saw_21 FROM "[Operational] eBS_Projects"

WHERE ("- Nx_PAG0_Proj_Billing_Attributes (Projects Views)"."C_EXT$TASK_NUMBER" = "- Nx_PAG0_Tasks (Projects Views)"."Task_Number") AND ("- Nx_PAG0_Proj_Billing_Attributes (Projects Views)"."C_EXT$TASK_NUMBER" = "- Nx_PAG0_Proj_Drilling_Attributes (Projects Views)"."C_EXT$TASK_NUMBER") AND ("- Nx_PAG0_Proj_User_Define_Attrs (Projects Views)"."N_EXT$DAILY_ACTIVITY_ID"= "- Nx_PAG0_Proj_Drilling_Attributes (Projects Views)"."N_EXT$DAILY_ACTIVITY_ID") AND ("- Nx_PAG0_Proj_User_Define_Attrs (Projects Views)"."C_Ext$ATTR_GROUP_ID" = 204) AND ("- Nx_PAG0_Projects (Projects Views)"."Project_Number" = "- Nx_PAG0_Proj_User_Define_Attrs (Projects Views)"."Project_Number"

"- Nx_PAG0_Projects (Projects Views)"."Operating_Unit_Name"=:P_Region and
"- Nx_PAG0_Projects (Projects Views)"."Carrying_Out_Organization"=:P_Branch and
"- Nx_PAG0_Projects (Projects Views)"."Project_Name"=:P_Project

ORDER BY saw_0, saw_1, saw_2, saw_3, saw_4, saw_5, saw_6, saw_7, saw_8, saw_9, saw_10, saw_11, saw_12, saw_13, saw_14, saw_15, saw_16, saw_17, saw_18, saw_19, saw_20, saw_21, saw_22, saw_23, saw_24

Please help.

Thanks in Advance


Avatar of Helena Marková
Helena MarkováFlag of Slovakia imageprogrammer-analyst

Our community of experts have been thoroughly vetted for their expertise and industry experience.

This problem has been solved!
Unlock 1 Answer and 1 Comment.
See Answers