Bind variables are not used in select statement
Hello all of you,
I have two parameters in Report 6i.
1) Department
2) Section
There are many section in a single department. Both parameters are selected from list. The list for department name is as follows -
select deptname from department_master order by deptname
It works very well. The value is stored in :p_dept_name.
I want to display section of selected department only using following code :-
select sectname from section_master a, department_master b where a.deptcode = b.deptcode and b.deptname = :p_dept_name
The value is stored in :p_sect_name.
But it does not work. bind variables are not allowed in select statement, then how can I do this???
Please suggest me.
Thanx,
Regards,
Vikas,
the forum is full of threads about that.
Dependent Parameters in Reports are possible out-of-the-box in Reports.
If you're running your report on the web, have a look at Metalink Note:185951.1
Regards
Rainer
Similar Messages
-
Bind Variables are not allowed in select statement
I created a lov to one parameter field in a report using select statement.
select distinct mtrl_group||' - '||grup_desc
from mtrl_mast a , grup_mast b
where financial_year||financial_month = :P_cutofff_period)
and a.mtrl_group = b.grup_code
this is my select statement & i got the above error.
how can i fix bind variables in this.
Pls help me......Hi,
have a look at Metalink-Note 185951.1
SAMPLE - How to create a parameter LOV based on another parameter value?
Regards
Rainer -
How to find out if a SQL is using a bind variable or not?
In order to make a SQL use consistent execution plan, I want to create a profile for a SQL. But I need to know if a SQL is using bind variable or not to create a profile for all the same SQLs except the literal value. How can I do that?
Thanks in advanceYou can tell if an SQL statement uses a bind variable by looking at the SQL statement.
If you look in the program that submits the SQL statement you can see how it constructs, prepares, and executes the statement.
If you are just looking at the SQL in the shared pool then depending on how the statement is written and the setting of database parameters like cursor sharing then it can be more difficult but if you see a constant (actual value) that is a constant. A bind variable would appear as a name in the where clause where that name does not exist any of the tables referenced in the query. Note it is technically possible to create pl/sql variables with the same name as columns in the query but that is poor coding and leads to issues.
Note - To Oracle two versions of the otherwise same query where one has a constant and the other has a bind variable are not the same query and often produce different plans. This is a common error made by developers new to Oracle when using explain plan. To explain a query that uses bind variables place a ":" in front of the variable name in the SQL submitted to explain plan.
HTH -- Mark D Powell -- -
ADF BC / Why bind variables are mandatory in the sql query
I got this error during view object excecution in the component browser :
(oracle.jbo.SQLStmtException) JBO-27122: Erreur SQL lors de la préparation d'une instruction. Instruction : SELECT * FROM (Select distinct(socialgroup.socialgroup_i) from socialgroup, socialgroupmember, lodgingallocation, lodge
where socialgroup.socialgroup_i = socialgroupmember.socialgroup_i and socialgroupmember.t_socialgrouprole_i = t_rolegroup_ipar.fgetflextypologyclassitem_i(t_rolegroup_ipar.fisbeneficiary) and socialgroupmember.datefrom <= :DateTo and nvl(socialgroupmember.dateto, :DateFrom) >= :DateFrom and socialgroupmember.requester_i = lodgingallocation.requester_i and lodgingallocation.datefrom <= :DateTo and nvl(lodgingAllocation.DateTo, :DateFrom) >= :DateFrom and lodgingallocation.lodge_i = lodge.lodge_i) QRSLT ORDER BY "SOCIALGROUP_I"
----- LEVEL 1: DETAIL 0-----
(java.sql.SQLException) Tentative de définition d'un nom de paramètre qui ne se trouve pas dans le SQL: T_SICategory_I
The bind variables T_SICategory_I is not yet use in the sql query but will be used later so i defined it for the view object.
Is it a reason that the run time check this ? It would be more convenient to set the bind variables early when defining the view object and add them later during the development iteration.Design-time defined named bind variables can be marked as required, or not.
This is decided by the use in the where clause or in view criteria. In my case the bind variable was not used in where clause neither in view criteria and that causes the error.
May be i would be nice to add a check box (a flag) that enable or disable the bind variables for this checking so we will be able to let it defined even we removed some part of the query corresponding to the corresponding restriction or we defined it earlier for a part of the query that is not yet defined.
In my current case i fully defined the bind variables but would refine my query later ... in that cause i would have to remove this bind variable and loose all the definitions to run this view object.
sorry for my english ... -
Error: State cannot be saved as variables are not submitted in WAD (Portal)
Hi Gurus,
I am getting the following error :
After opening the report and selecing the free characteristics if I want to go back one screen by right click(context menu)-> Back->Back one Navigation Step it is throwing the following below short dump in the EP portal,please help ASAP:
The initial exception that caused the request to fail was:
Error: State cannot be saved as variables are not submitted
Currently I am on support pack 17.
Thanks to all.hi sunita,
please check ur bi java pack,
BIJava patch SPS16p30 fixes the problem,
such problem can be solved by upgrading java patched.
hope it will help u.
thanks. -
Can I put a SQL query into a bind variable and then use it to output report
Hi,
Can I put a SQL query into a bind variable and then use it to output report?
I want to create a report and an item "text area" (say P1_TEXT) which can let user to input a SQL query(they are all technical users and knows SQL very well). Then, I use a bind variable (that text area) to store the SQL statement. Then, I add a submit button and I want to use the following to output the report:
select * from (:P1_TEXT);
Do you think it is possible to do that? Any known limitations for APEX in this area?
Thanks a lot,
AngelaYou can, but make sure it's what you really want to do. Make sure you are VERY familiar with SQL Injection. Most people who know what it is, go out of their way to prevent SQL Injection. You're going out of your way to allow it.
You can try using &P1_TEXT. instead of bind variable syntax. Bind variables are one of the best ways to prevent SQL Injection, which is why it's not working for you.
Once again, I strongly urge you to consider the implications of your app, but this suggestion should get it working.
Tyler -
Hi, it is my first attempt to modify a rdf file.
I run into a problem while trying to add an additional user parameter in an existing rdf file. While I am successful in adding a new FREQUENCY user parameter and I am able to update the form to show this new parameter, I am not able to run the report.
I have updated the SQL query in the report editor, under data view to use this new parameter :FREQUENCY. (select ... from table where frequency= :FREQUENCY) There was no error here.
Whenever I run the report, I will always get an error saying:
"REP-0730: The following bind variable is not defined: "(nothing behind this error message)
The program will have a memory error and it exits itself.
I had tried many methods trying to solve this problem to no avail.
I am using Oracle 9i Reports Builder 9.0.2.0.3.
I would appreciate any help given on this matter.
Thank you :)
Message was edited by:
LeionIn Object Navigator Under Layout ->User parameters are you able to see your bind variable FREQUENCY?
-
About ora-01006 :bind variable does not exist
Hi all of you,i have this dynamic sql :
DECLARE
v_query clob;
cpt number;
begin
v_query:='
SELECT
count(TBA.ANT_ID)
FROM
WHERE TBA.ANT_FUT_ID = TFT.FUT_ID
AND TBA.ANT_KATEGORIE_CODE_ID = TAKCL.ANT_KATEGORIE_CODE_ID(+)
AND TBA.ANT_KFZ_REIHEN_ID = TKR.KFZ_REIHEN_ID(+)
AND TBA.ANT_ID = F1.ANT_ANT_ID(+)
AND TBA.ANT_ID = F2.ANT_ANT_ID(+)
AND TBA.ANT_ID = F3.ANT_ANT_ID(+)
AND TBA.ANT_ID = ERS.ers_bdk(+)
AND TBA.ANT_ID = F1_2.ANT_ANT_ID(+)
AND TBA.ANT_ID = F2_3.ANT_ANT_ID(+)
AND TBA.ANT_ID = MFU.MFU_ANT_ID(+)
AND MFU.MFU_NIETGEOMETRIE_ID = NG.NG_ID(+)
AND MFU.MFU_MATRIZEN_BEICHNUNG_ID = MZB.MZB_ID(+)
-- Suchkriterien: --
--Ersteller
AND DECODE( ERS.ers_id, NULL, ''%'', ERS.ers_name ) LIKE DECODE('':1'',NULL,''%'','''')||''''|| :1 ||''''||DECODE('':1'',NULL,''%'','''')
--Fahrzeug
AND DECODE( TKR.NAME, NULL, ''%'', TKR.NAME ) LIKE DECODE('':2'',NULL,''%'','''')||''''|| :2 ||''''|| DECODE('':2'',NULL,''%'','''')
--BDK
AND DECODE( fuege_db.bdk_nummer( TBA.ANT_ID,''.'' ), NULL, ''%%'',
fuege_db.bdk_nummer( TBA.ANT_ID,''.'' ) ) LIKE ''%''||:3||''%''
--Technologie
AND TBA.ANT_FUT_ID LIKE DECODE('':4'',NULL,''%'','''')||''''|| :4 ||''''||DECODE('':4'',NULL,''%'','''')
--Art
AND ((TBA.ANT_WFP_ID is null and 1=DECODE('':5'',NULL,1,1,1) ) or (TBA.ANT_WFP_ID is not null and 2=DECODE('':5'',NULL,2,2,2)))
--VTA
AND TBA.ANT_VTA = decode('':6'',1,1,TBA.ANT_VTA) ';
execute immediate v_query
into cpt USING
'Dominik Hussmann',
'AU736_Q7_SUV' ,
'WPS Stahl',
'0';
end ;
In the execution,i have this error :ora-01006 :bind variable does not exist, after analyzing,i have found that the problem is with parameters :5 and :6 ,i don't understand they have the same syntax
as bind variables 1,2,3 and 4.
Than you for any suggestion.I hope you do realise that there are 13 bind-variables in your sql, not 6?
Variables are bound by position. You cannot use the same bind variable twice, they will be 2 distinct bind variables.
For example, you use :1 three times, so you need to provide three arguments, in this case three times the same value. -
How do I find out what features are not useful in my Classifier?
How do I find out what features are not useful in my Classifier? I am trying to trim down the number of features to speed up the training of my data, I have about 3700 features. I have found the Filter Based Feature Selection Module and have not been successful
in using it. I have looked through all the examples and have not been able to find any examples using the module. Will the Filter Based Feature Selection Module help me to trim features. If so how do I use it?One way to do this would be is to use a random forest classifier. Feature/variable importance can be obtained relatively easily with random forests.
Here is how you may do it in R.
> install.packages('randomForest') #install randomForest package in R if it is not already there
> library(randomForest) # reference the library
> data(mtcars) # load motor cars data that ships with
#train a random forest
> mtcars.rf <- randomForest(mpg ~ ., data=mtcars, ntree=1000,keep.forest=FALSE, importance=TRUE)
> importance(mtcars.rf)
> importance(mtcars.rf)
#You will see an output like below
%IncMSE IncNodePurity
cyl 16.168645 169.96741
disp 18.672188 260.08722
hp 17.584375 184.95007
drat 6.948743 63.54528
wt 17.818509 254.30347
qsec 4.772889 33.25546
vs 5.303058 24.39064
am 5.210181 17.36626
gear 4.619161 21.55450
carb 8.577037 28.46715
# or plot the importance as follows
> varImpPlot(mtcars.rf)
What this tells you is how important predictors/features/variables like horsepower(hp), weight(wt), no. of cylinders (cyl) is in predicting miles per gallon (mpg).
If you are wondering how the data looks like. Try this
head(mtcars) # gives first few lines of the data set.
mpg cyl disp hp drat wt ...
Mazda RX4 21.0 6 160 110 3.90 2.62 ...
Mazda RX4 Wag 21.0 6 160 110 3.90 2.88 ...
Datsun 710 22.8 4 108 93 3.85 2.32 ...
. Try this
Here is a few useful resources:
Random Forest documentation (Check out the pages on variable importance and variable importance plot)
http://cran.r-project.org/web/packages/randomForest/randomForest.pdf
Motor cars data: http://stat.ethz.ch/R-manual/R-devel/library/datasets/html/mtcars.html -
Bind variable does not exist...
Hi,
I have an Access UI which is calling an Oracle package. The package has a simple command:
INSERT INTO Table1 SELECT * from Table2
The above query runs fine in Oracle directly, but when I run it through the package, I get the error "Bind variable does not exist". What does that mean? The query does not have any parameters. Similar queries running thgough the package that insert into other tables work fine.
Something with structure of Table2 (this is a new table)?
Thanks.
Edited by: markk2 on Jan 12, 2009 9:59 PM
Edited by: markk2 on Jan 12, 2009 10:10 PMI am not sure what's package you were talking about. Is it a package designed in Access?
Access to Oracle is using ODBC, some of the SQL syntax specific to Oracle may not work. You might also check how table1 and table2 defined in Access. Are they all linked Oracle tables or one of them is Access table?
Do you have any Oracle error message like ORA-xxxx ? -
ORA-01006:bind variable does not exist for the QUERY
Dear All,
Please help on below query :
DECLARE
P_ROTATION_NO GCH_VSL_REGN.ROTATION_NO%TYPE :=21;
P_VESL_NO GCH_VSL_MASTER.VESL_NO%TYPE := NULL;
P_VESL_NAME GCH_VSL_MASTER.VESL_NAME%TYPE:= NULL;
P_FROM_REG_DATE GCH_VSL_MASTER.CREATED_DATE%TYPE:= NULL;
P_TO_REG_DATE GCH_VSL_MASTER.CREATED_DATE%TYPE:= NULL;
P_FROM_ARRIVAL_DATE GCH_VSL_REGN.ARRIVAL_DATE%TYPE:= NULL;
P_TO_ARRIVAL_DATE GCH_VSL_REGN.ARRIVAL_DATE%TYPE:= NULL;
P_CLOSE_TYPE GCH_VSL_CLOSE_DTLS.CLOSE_TYPE%TYPE:= NULL;
P_RESULT_LIST SYS_REFCURSOR;
P_TOTAL_LENGTH NUMBER;
P_ERROR_MESSAGE VARCHAR2(1000);
lv_sql1 VARCHAR2(5000);
lv_sql2 VARCHAR2(5000);
lv_whereClause VARCHAR2(5000);
pv_text VARCHAR2(1000);
BEGIN
pv_text := NULL;
lv_whereClause := ' WHERE GVM.VESL_MASTER_NUM = GVR.VESL_MASTER_NUM
AND GVR.ROTATION_NO = GVCH.ROTATION_NO
AND GVCH.CLOSE_HDR_ID = GVCD.CLOSE_HDR_ID(+)
AND (:P_ROTATION_NO IS NULL OR
(:P_ROTATION_NO IS NOT NULL AND
GVR.ROTATION_NO LIKE % :P_ROTATION_NO %))
AND GVM.IS_VALID = 1';
lv_sql1 := 'SELECT COUNT(gvr.rotation_no)
FROM gch_vsl_close_hdr gvch,
gch_vsl_master gvm,
gch_vsl_regn gvr,
gch_vsl_close_dtls gvcd'||lv_whereClause;
dbms_output.put_line (lv_sql1);
EXECUTE IMMEDIATE lv_sql1 INTO :P_TOTAL_LENGTH
USING P_ROTATION_NO;
END;
I am getting below error when running the above query
ORA-01006: bind variable does not existwhy (date datatype assumed for variables with names containing DATE)
PROCEDURE XVY(P_ROTATION_NO IN GCH_VSL_REGN.ROTATION_NO%TYPE,
P_VESL_NO IN GCH_VSL_MASTER.VESL_NO%TYPE,
P_VESL_NAME IN GCH_VSL_MASTER.VESL_NAME%TYPE,
P_CM_REGN_NO IN GCH_VSL_REGN.CM_REGN_NO%TYPE,
P_FINAL_CLOSE_STA IN GCH_VSL_CLOSE_HDR.FINAL_CLOSE_STA%TYPE,
P_FROM_REG_DATE IN GCH_VSL_MASTER.Created_Date%TYPE,
P_TO_REG_DATE IN GCH_VSL_MASTER.CREATED_DATE%TYPE,
P_FROM_ARRIVAL_DATE IN GCH_VSL_REGN.ARRIVAL_DATE%TYPE,
P_TO_ARRIVAL_DATE IN GCH_VSL_REGN.ARRIVAL_DATE%TYPE,
P_RESULT_LIST OUT SYS_REFCURSOR,
P_TOTAL_LENGTH OUT NUMBER,
P_ERROR_MESSAGE OUT VARCHAR2
) AS
lv_sql1 VARCHAR2(4000);
lv_sql2 VARCHAR2(4000);
lv_whereClause VARCHAR2(4000);
BEGIN
-- pv_text := NULL;
lv_whereClause := ' WHERE gvm.vesl_master_num = gvr.vesl_master_num '||
' AND GVR.ROTATION_NO(+) = GVCH.ROTATION_NO '||
' AND (:P_ROTATION_NO IS NULL '||
' OR (:P_ROTATION_NO IS NOT NULL '||
' AND gvch.rotation_no LIKE ''%'' || :P_ROTATION_NO || ''%'' ' ||
' ) '||
' ) '||
' AND (:P_CM_REGN_NO IS NULL '||
' OR (:P_CM_REGN_NO IS NOT NULL '||
' AND gvr.cm_regn_no LIKE ''%'' || :P_CM_REGN_NO || ''%'' '||
' ) '||
' ) '||
' AND (:P_VESL_NAME IS NULL '||
' OR (:P_VESL_NAME IS NOT NULL '||
' AND gvm.vesl_name LIKE ''%'' || :P_VESL_NAME || ''%'' '||
' ) '||
' ) '||
' AND (:P_VESL_NO IS NULL '||
' OR (:P_VESL_NO IS NOT NULL '||
' AND GVM.vesl_no LIKE ''%'' || :P_VESL_NO || ''%'' '||
' ) '||
' ) '||
' AND (:P_FINAL_CLOSE_STA IS NULL '||
' OR (:P_FINAL_CLOSE_STA IS NOT NULL '||
' AND gvch.imp_close_sta LIKE ''%'' || :P_FINAL_CLOSE_STA || ''%'' '||
' ) '||
' ) '||
' AND (:P_FROM_REG_DATE IS NULL '||
' OR (:P_FROM_REG_DATE IS NOT NULL '||
' AND gvch.created_date >= :P_FROM_REG_DATE '||
' ) '||
' ) '||
' AND (:P_TO_REG_DATE IS NULL '||
' OR (:P_TO_REG_DATE IS NOT NULL '||
' AND gvch.created_date <= :P_TO_REG_DATE '||
' ) '||
' ) '||
' AND (:P_FROM_ARRIVAL_DATE IS NULL '||
' OR (:P_FROM_ARRIVAL_DATE IS NOT NULL '||
' AND gvch.arrival_date >= :P_P_FROM_ARRIVAL_DATE '||
' ) '||
' ) '||
' AND (:P_TO_ARRIVAL_DATE IS NULL '||
' OR (:P_TO_ARRIVAL_DATE IS NOT NULL '||
' AND gvch.arrival_date <= :P_TO_ARRIVAL_DATE '||
' ) '||
' ) '||
' AND gvm.is_valid = 10 ';
lv_sql1 := 'SELECT COUNT(gvr.rotation_no) '||
' FROM xvz gvch, '||
' zxsc gvm, '||
' dsae gvr, '||
' vvsd gvcd '|| lv_whereClause;
lv_sql2 := ' SELECT gvch.close_hdr_id, '||
' gvch.rotation_no, '||
' gvr.cm_regn_no, '||
' gvm.vesl_no, '||
' gvm.vesl_name, '||
' gvch.final_close_sta, '||
' gvr.arrival_date, '||
' gvch.close_date, '||
' gvr.created_date '||
' FROM xvz gvch, '||
' zxsc gvm, '||
' dsze gvr '|| lv_whereClause || 'ORDER BY gvch.rotation_no';
EXECUTE IMMEDIATE lv_sql1 INTO P_TOTAL_LENGTH
USING P_ROTATION_NO,P_ROTATION_NO,P_ROTATION_NO,
P_CM_REGN_NO,P_CM_REGN_NO,P_CM_REGN_NO,
P_VESL_NAME,P_VESL_NAME,P_VESL_NAME,
P_VESL_NO,P_VESL_NO,P_VESL_NO,
P_FINAL_CLOSE_STA,P_FINAL_CLOSE_STA,P_FINAL_CLOSE_STA,
P_FROM_REG_DATE,P_FROM_REG_DATE,P_FROM_REG_DATE,
P_TO_REG_DATE,P_TO_REG_DATE,P_TO_REG_DATE,
P_FROM_ARRIVAL_DATE,P_FROM_ARRIVAL_DATE,P_FROM_ARRIVAL_DATE,
P_TO_ARRIVAL_DATE,P_TO_ARRIVAL_DATE,P_TO_ARRIVAL_DATE;
OPEN P_RESULT_LIST
FOR lv_sql2 USING P_ROTATION_NO,P_ROTATION_NO,P_ROTATION_NO,
P_CM_REGN_NO,P_CM_REGN_NO,P_CM_REGN_NO,
P_VESL_NAME,P_VESL_NAME,P_VESL_NAME,
P_VESL_NO,P_VESL_NO,P_VESL_NO,
P_FINAL_CLOSE_STA,P_FINAL_CLOSE_STA,P_FINAL_CLOSE_STA,
P_FROM_REG_DATE,P_FROM_REG_DATE,P_FROM_REG_DATE,
P_TO_REG_DATE,P_TO_REG_DATE,P_TO_REG_DATE,
P_FROM_ARRIVAL_DATE,P_FROM_ARRIVAL_DATE,P_FROM_ARRIVAL_DATE,
P_TO_ARRIVAL_DATE,P_TO_ARRIVAL_DATE,P_TO_ARRIVAL_DATE;
END;instead of (the where clauses should be equivalent)
PROCEDURE XVY(P_ROTATION_NO IN GCH_VSL_REGN.ROTATION_NO%TYPE,
P_VESL_NO IN GCH_VSL_MASTER.VESL_NO%TYPE,
P_VESL_NAME IN GCH_VSL_MASTER.VESL_NAME%TYPE,
P_CM_REGN_NO IN GCH_VSL_REGN.CM_REGN_NO%TYPE,
P_FINAL_CLOSE_STA IN GCH_VSL_CLOSE_HDR.FINAL_CLOSE_STA%TYPE,
P_FROM_REG_DATE IN GCH_VSL_MASTER.Created_Date%TYPE,
P_TO_REG_DATE IN GCH_VSL_MASTER.CREATED_DATE%TYPE,
P_FROM_ARRIVAL_DATE IN GCH_VSL_REGN.ARRIVAL_DATE%TYPE,
P_TO_ARRIVAL_DATE IN GCH_VSL_REGN.ARRIVAL_DATE%TYPE,
P_RESULT_LIST OUT SYS_REFCURSOR,
P_TOTAL_LENGTH OUT NUMBER,
P_ERROR_MESSAGE OUT VARCHAR2
) AS
lv_sql1 VARCHAR2(4000);
lv_sql2 VARCHAR2(4000);
lv_whereClause VARCHAR2(4000);
BEGIN
SELECT COUNT(gvr.rotation_no)
INTO P_TOTAL_LENGTH
FROM xvz gvch,
zxsc gvm,
dsae gvr,
vvsd gvcd
WHERE gvm.vesl_master_num = gvr.vesl_master_num
AND GVR.ROTATION_NO(+) = GVCH.ROTATION_NO
AND (P_ROTATION_NO IS NULL
OR (P_ROTATION_NO IS NOT NULL
AND gvch.rotation_no LIKE '%' || P_ROTATION_NO || '%'
AND (P_CM_REGN_NO IS NULL
OR (P_CM_REGN_NO IS NOT NULL
AND gvr.cm_regn_no LIKE '%' || P_CM_REGN_NO || '%'
AND (P_VESL_NAME IS NULL
OR (P_VESL_NAME IS NOT NULL
AND gvm.vesl_name LIKE '%' || P_VESL_NAME || '%'
AND (P_VESL_NO IS NULL
OR (P_VESL_NO IS NOT NULL
AND GVM.vesl_no LIKE '%' || P_VESL_NO || '%'
AND (P_FINAL_CLOSE_STA IS NULL
OR (P_FINAL_CLOSE_STA IS NOT NULL
AND gvch.imp_close_sta LIKE '%' || P_FINAL_CLOSE_STA || '%'
AND (P_FROM_REG_DATE IS NULL
OR (P_FROM_REG_DATE IS NOT NULL
AND gvch.created_date >= P_FROM_REG_DATE
AND (P_TO_REG_DATE IS NULL
OR (P_TO_REG_DATE IS NOT NULL
AND gvch.created_date <= P_TO_REG_DATE
AND (P_FROM_ARRIVAL_DATE IS NULL
OR (P_FROM_ARRIVAL_DATE IS NOT NULL
AND gvch.arrival_date >= P_P_FROM_ARRIVAL_DATE
AND (P_TO_ARRIVAL_DATE IS NULL
OR (P_TO_ARRIVAL_DATE IS NOT NULL
AND gvch.arrival_date <= P_TO_ARRIVAL_DATE
AND gvm.is_valid = 10;
OPEN P_RESULT_LIST
FOR SELECT gvch.close_hdr_id,
gvch.rotation_no,
gvr.cm_regn_no,
gvm.vesl_no,
gvm.vesl_name,
gvch.final_close_sta,
gvr.arrival_date,
gvch.close_date,
gvr.created_date
FROM xvz gvch,
zxsc gvm,
dsze gvr
WHERE gvm.vesl_master_num = gvr.vesl_master_num
AND GVR.ROTATION_NO(+) = GVCH.ROTATION_NO
AND gvch.rotation_no LIKE '%' || nvl(P_ROTATION_NO,gvch.rotation_no) || '%'
AND gvr.cm_regn_no LIKE '%' || nvl(P_CM_REGN_NO,gvr.cm_regn_no) || '%'
AND gvm.vesl_name LIKE '%' || nvl(P_VESL_NAME,gvm.vesl_name) || '%'
AND gvm.vesl_no LIKE '%' || nvl(P_VESL_NO,gvm.vesl_no) || '%'
AND gvch.imp_close_sta LIKE '%' || nvl(P_FINAL_CLOSE_STA,gvch.imp_close_sta) || '%'
AND gvch.created_date BETWEEN nvl(P_FROM_REG_DATE,gvch.created_date) AND nvl(P_TO_REG_DATE,gvch.created_date)
AND gvch.arrival_date BETWEEN nvl(P_FROM_ARRIVAL_DATE,gvch.arrival_date) AND nvl(P_TO_ARRIVAL_DATE,gvch.arrival_date)
AND gvm.is_valid = 10;
ORDER BY gvch.rotation_no;
END;Regards
Etbin
Edited by: Etbin on 8.4.2012 14:37
In order not to waste your time in the future:
Don't execute dynamic SQL until it works !!!
Write out what you managed to put together using dbms_output.
Paste that into the SQL window of your client tool (SQL Developer ...)
Convert parameters to bind variables (replace p_ with :p_)
Try to run it.
If errors are thrown correct them, adjust the procedure/function set up to write your dynamic SQL accordingly
Repeat the cycle until no errors are thrown
Comment out the dbms_output. ... line
Uncomment the execute immediate ... line -
Update_Task results in ORA-01006: bind variable does not exist - bug?
Hi,
I have successfuly created projects/tasks, and updated projects. However, when I tried to call pa_project_pub.update_task, I get an error
U(nexpected):
PROCEDURE_NAME update_one_task
PKG_NAME PA_PROJECT_PVT
FND FND_AS_UNEXPECTED_ERROR
ERROR_TEXT ORA-01006: bind variable does not exist
As far as I can see, this must be a bug, because the API must have created an excecute immediate/dbms_sql statement with at least one extra bind variable (i.e. execute '... :a, :b' using a, b, c)
I've tried with different combinations of arguments to the API, all resulting in the same error:
The id's and data are taken from a an already created project/task in my apps-instance:
pa_project_pub.update_task(
p_api_version_number => 1.0
,p_commit => xxpa_opop2pa_interface_utils.g_FALSE
,p_msg_count => l_msg_count
,p_msg_data => l_msg_data
,p_return_status => l_return_status
,p_pm_product_code => l_pm_product_code
,p_pm_project_reference => '100394'
,p_pm_task_reference => 'add_task_1.0'
-- ,p_ref_task_id => ''
,p_task_number => 4
-- ,p_pa_task_id => '19079'
,p_task_name => 'add_task_1.0'
,p_long_task_name => 'p_task_name'
,p_task_start_date => p_start_date
,p_task_completion_date => p_completion_date
,p_task_description => 'update-task:'||p_description
,p_out_pm_task_reference => l_out_pm_task_reference
,p_out_pa_task_id => p_task_id_out
Am I missing anything, or this really must be a bug in the API?
Does anyone have any other idea?
I have looked at the API implementation, and found a use of dbms_sql, a long code constructing a statement then binding variables in if-then clauses.
Regards,
ps: ->
system info
Database Server
RDBMS : 11.1.0.6.0
Oracle Applications : 12.0.6
System Date : 11-MAY-2009 10:41:50
Forms Server
Current Form
Form Application : Application Object Library
Form Name : FNDPOMPO
Form Version : 12.0.2
Form Last Modified : $Date: 2006/03/23 13:54 $
Forms
APPSTAND : 12.0.6.12000000.3
FNDPOMPO : 12.0.2
FNDSCSGN : 12.0.14.12000000.3
Form Menus
FNDMENU : 12.0.2
Forms PL/SQL
APPCORE : 12.0.21.12000000.13
CUSTOM : 12.0.0
FNDSQF : 12.0.3
GHR : 12.0.22.12000000.26
GLOBE : 12.0.62.12000000.13
GMS : 12.0.42.12000000.11
IGILUTIL2 : 12.0.24.12000000.3
IGILUTIL : 12.0.1.12000000.3
OPM : 12.0.7.12000000.2
PQH_GEN : 12.0.7
PSA : 12.0.17
PSAC : 12.0.4.12000000.2
PSB : 12.0.2
VERT1 : 12.0.0
VERT2 : 12.0.0
VERT3 : 12.0.0
VERT4 : 12.0.0
VERT5 : 12.0.0
VERT : 12.0.0
**********************Hello,
This issue is fixed in the bug 4692368. So you can get a patch from Oracle.
Hope this helps !
Thanks,
Sathish
www.projectsaccounting.com -
Error: Bind Variable Does not Exist
Hello,
I am getting a bind error, Although I have only one bind variable, the debug output shows three bind parameters exist. Please let me know why this happens ?
04/08/11 17:02:50 [5341] SELECT Property.PID, Property.CID, Property.REO, Property.MLS, Property.ADDRESS, Property.CITY, Property.STATE, Property.ZIP, Property.FAX, Property.TEL, Property.STYLE, Property.NROOMS, Property.NBEDS, Property.NBATHS, Property.SQFT, Property.AGE, Property.LPRICE, Property.LDATE, Property.EXPDATE, Property.FCDATE, Property.REDEMPTIONDATE, Property.MORTGAUGER, Property.FNAME, Property.FID, Property.BPOVALUE, Property.BPODATE, Property.WDATE, Property.TRASHOUT, Property.LAWNCARE, Property.REKEYED, Property.VACANCYSTATUS, Property.LOCKBOX, Property.PROPSTATUS, Property.LAGENT, Property.ENTRY, Property.USERID, Property.CONTACTID, Property.TAXID, Property.COBORR, Property.BORCONTACT FROM PROPERTY Property WHERE (Property.USERID = :1)
04/08/11 17:02:50 [5342] Bind params for ViewObject: PropertyView1
04/08/11 17:02:50 [5343] Binding param 1: 10097
04/08/11 17:02:50 [5344] Binding param 2: 10097
04/08/11 17:02:50 [5345] Binding param 3: 10097
04/08/11 17:02:50 [5346] ViewObject: PropertyView1 close single-use prepared statements
04/08/11 17:02:50 [5347] QueryCollection.executeQuery failed...
04/08/11 17:02:50 [5348] java.sql.SQLException: ORA-01006: bind variable does not existsetWhereClauseParams must have been called on this VO to set more than required number of parameters. Could you check for that possibility?
-
Java.sql.SQLException: ORA-01006: bind variable does not exist
The java code is given below...
/*UPDATE D9T652_DISBRSMNT_PRMTR
SET
Stmnt_Page_Wgt_Ozs = wtStatementStockSheet,
Chk_Page_Wgt_Ozs = wtCheckStockSheet,
Flat_Envelope_Wgt_Ozs = wtFlatEnv,
Half_Fold_Envelope_Wgt_Ozs = wtHalfFoldEnv,
Last_Chngd_By = TRIM(userId),
Last_Chngd_Dt = sysdate
WHERE
Ins_Sys_Id = Ins_Sys_Id_Constant_For_Compass AND
Last_Chngd_Dt = SELECT MAX(Last_Chngd_Dt)
FROM D9T652_DISBRSMNT_PRMTR
WHERE Ins_Sys_Id = Ins_Sys_Id_Constant_For_Compass
updateDbPmtr= new StringBuffer(" UPDATE ")
.append(SqlConst.PARAM)
.append(" SET ")
.append(SqlConst.PARAM).append(".").append(SqlConst.PARAM_DSBRSMNT_PRMTR_ID).append(" = 100, ")
.append(SqlConst.PARAM).append(".").append(SqlConst.PARAM_MIN_DSBRSMNT_AMT).append(" = ? ").append(",")
.append(SqlConst.PARAM).append(".").append(SqlConst.PARAM_OVRRD_MIN_DSBRSMNT_DT).append(" = ").append(currentTimeStamp).append(",")
.append(SqlConst.PARAM).append(".").append(SqlConst.PARAM_SPCL_HNDLG_AMT).append(" = ? ").append(", ")
.append(SqlConst.PARAM).append(".").append(SqlConst.PARAM_STMNT_DT).append(" = ").append(currentTimeStamp).append(" , ")
.append(SqlConst.PARAM).append(".").append(SqlConst.PARAM_LAST_CHNGD_BY).append(" ='?' ").append(" , ")
.append(SqlConst.PARAM).append(".").append(SqlConst.PARAM_LAST_CHNGD_DT).append(" = ").append(currentTimeStamp)
.append(" WHERE ")
.append(SqlConst.PARAM).append(".").append(SqlConst.PARAM_INS_SYS_ID).append(" = ? ")
.append(" AND ")
.append(SqlConst.PARAM).append(".").append(SqlConst.PARAM_LAST_CHNGD_DT)
.append(" = ")
.append(" ( SELECT ")
.append(" MAX( ").append(SqlConst.PARAM_LAST_CHNGD_DT).append(" ) ")
.append(" FROM ").append(SqlConst.PARAM)
.append(" WHERE ")
.append(SqlConst.PARAM_INS_SYS_ID).append(" = ? )").toString();
conn = SqlUtil.getConnection();
conn.setAutoCommit(false);
prepStmtDsbrsmntPmtr = conn.prepareStatement(updateDbPmtr);
prepStmtStckWght = conn.prepareStatement(updateStkWght);
String minDsbrsmntAmount = parametersListForm.getParametersForm().getMinDisbursementAmt();
String specialHndlAmount = parametersListForm.getParametersForm().getSpecialHandlingAmt();
String statementDt = parametersListForm.getParametersForm().getStatementDate();
String overrideCycleDt = parametersListForm.getParametersForm().getOverrideCycleDate();
String lastMdfdBy = parametersListForm.getParametersForm().getLastModifiedBy();
String lastMdfdDt = parametersListForm.getParametersForm().getLastModifiedDate();
String wtStmtStkSheet = parametersListForm.getParametersForm().getWtStatementStockSheet();
String wtHlfFoldEnvelope = parametersListForm.getParametersForm().getWtHalfFoldEnv();
String wtFltEnvelope = parametersListForm.getParametersForm().getWtFlatEnv();
String wtChkStkSheet = parametersListForm.getParametersForm().getWtCheckStockSheet();
prepStmtDsbrsmntPmtr.setLong(1,Integer.parseInt(minDsbrsmntAmount));
prepStmtDsbrsmntPmtr.setLong(2, Long.parseLong(specialHndlAmount));
prepStmtDsbrsmntPmtr.setString(3,lastMdfdBy);
prepStmtDsbrsmntPmtr.setLong(4,1);
prepStmtDsbrsmntPmtr.setLong(5,1);
int rUpdtInParam = prepStmtDsbrsmntPmtr.executeUpdate();
========================================================================
I am getting following errors...
[8/6/04 19:17:14:286 GMT+05:30] 19192340 SystemErr R java.sql.SQLException: ORA-01006: bind variable does not exist
[8/6/04 19:17:14:302 GMT+05:30] 19192340 SystemErr R at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:314)
[8/6/04 19:17:14:317 GMT+05:30] 19192340 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:117)
[8/6/04 19:17:14:349 GMT+05:30] 19192340 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:306)
[8/6/04 19:17:14:364 GMT+05:30] 19192340 SystemErr R at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:43)
[8/6/04 19:17:14:380 GMT+05:30] 19192340 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:41)
[8/6/04 19:17:14:411 GMT+05:30] 19192340 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:941)
[8/6/04 19:17:14:427 GMT+05:30] 19192340 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:662)
[8/6/04 19:17:14:442 GMT+05:30] 19192340 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:214)
[8/6/04 19:17:14:474 GMT+05:30] 19192340 SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:135)
[8/6/04 19:17:14:489 GMT+05:30] 19192340 SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:227)
[8/6/04 19:17:14:505 GMT+05:30] 19192340 SystemErr R at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:72)
[8/6/04 19:17:14:536 GMT+05:30] 19192340 SystemErr R at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:190)
[8/6/04 19:17:14:552 GMT+05:30] 19192340 SystemErr R at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:406)
[8/6/04 19:17:14:567 GMT+05:30] 19192340 SystemErr R at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:57)
[8/6/04 19:17:14:583 GMT+05:30] 19192340 SystemErr R at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:461)
[8/6/04 19:17:14:614 GMT+05:30] 19192340 SystemErr R at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:414)
[8/6/04 19:17:14:630 GMT+05:30] 19192340 SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:614)
[8/6/04 19:17:14:661 GMT+05:30] 19192340 SystemErr R at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:57)
[8/6/04 19:17:14:677 GMT+05:30] 19192340 SystemErr R at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:461)
[8/6/04 19:17:14:692 GMT+05:30] 19192340 SystemErr R at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:414)
[8/6/04 19:17:14:708 GMT+05:30] 19192340 SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:614)
[8/6/04 19:17:14:739 GMT+05:30] 19192340 SystemErr R at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:414)
[8/6/04 19:17:14:755 GMT+05:30] 19192340 SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:614)
[8/6/04 19:17:14:770 GMT+05:30] 19192340 SystemErr R at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:414)
[8/6/04 19:17:14:802 GMT+05:30] 19192340 SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:614)
[8/6/04 19:17:14:817 GMT+05:30] 19192340 SystemErr R at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:414)
[8/6/04 19:17:14:833 GMT+05:30] 19192340 SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:614)
[8/6/04 19:17:14:864 GMT+05:30] 19192340 SystemErr R at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:190)
[8/6/04 19:17:14:880 GMT+05:30] 19192340 SystemErr R at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:406)
[8/6/04 19:17:14:896 GMT+05:30] 19192340 SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:614)
========================================================================
Database Table:-
Desc D9T651_DSBRSMNT_PRMTR:
Name Null? Type
DSBRSMNT_PRMTR_ID NOT NULL NUMBER(38)
INS_SYS_ID NUMBER(38)
MIN_DSBRSMNT_AMT NUMBER(15,2)
OVRRD_MIN_DSBRSMNT_DT DATE
SPCL_HNDLG_AMT NUMBER(15,2)
STMNT_DT DATE
CRTD_BY VARCHAR2(30)
CRTD_DT DATE
LAST_CHNGD_BY VARCHAR2(30)
LAST_CHNGD_DT DATEWhat exactly are you trying to do? If you're trying to run an update statement, it's simpler if you do this:
PreparedStatement pstmt = null;
Connection conn = ?????;
String updateStr = "UPDATE D9T652_DISBRSMNT_PRMTR " +
"SET " +
"Stmnt_Page_Wgt_Ozs = ?, " +
"Chk_Page_Wgt_Ozs = ?, " +
"Flat_Envelope_Wgt_Ozs = ?, " +
"Half_Fold_Envelope_Wgt_Ozs = ?, " +
"Last_Chngd_By = TRIM(?), " +
"Last_Chngd_Dt = ? " +
"WHERE " +
"Ins_Sys_Id = Ins_Sys_Id_Constant_For_Compass AND " +
"Last_Chngd_Dt = (SELECT MAX(Last_Chngd_Dt) " +
"FROM D9T652_DISBRSMNT_PRMTR " +
"WHERE Ins_Sys_Id = Ins_Sys_Id_Constant_For_Compass) "
From the String constructed above, the first ? mark will be bind to 1, second to 2..... etc and you can set the appropriate types.
pstmt = conn.prepareStatement(updateStr);
pstmt.setString(1, request.getParameter("formValue1")); // this is assuming you want to store string value in DB field
pstmt.setInt(2, Integer.parseInt(request.getParameter("formValue2"))); // this is assuming you want to store int value in DB field
pstmt.setTimestamp(3, new java.sql.Timestamp(new java.util.Date().getTime())); // this is assuming you want to store current time in DB Date field
..... etc
..... etc
...... etc
int rows = pstmt.executeUpdate();
Hope this helps!! -
Job Lov Extension ORA-01006: bind variable does not exist
Hello All,
I have extended the VO and CO for USJobovVO and i am getting the error as --> ORA-01006: bind variable does not exist.
Please let me know.
I have extended the US Job LOV VO as follows
SELECT
pj.job_id,
pj.name job,
pj.business_group_id,
pj.date_from,
pj.date_to,
hlc.meaning flsa_status,
pj.attribute3 xxatc_job_dff
FROM
per_jobs_v pj,
hr_leg_lookups hlc
WHERE hlc.lookup_code(+)= pj.job_information3
and hlc.lookup_type(+)='US_EXEMPT_NON_EXEMPT'
Extended the controller and passing the parameter to the VO
OAApplicationModule oaapplicationmodule = pageContext.getApplicationModule(webBean);
OAViewObject oaviewobject = (OAViewObject)oaapplicationmodule.findViewObject("UsJobLovVO");
String s = (String)dictionary.get("HrBusinessGroupId");
oracle.apps.fnd.framework.server.OADBTransaction oadbtransaction = oaapplicationmodule.getOADBTransaction();
SSHRParams sshrparams = new SSHRParams(oadbtransaction);
String s1 = sshrparams.getEffectiveDate();
String p = pageContext.getParameter("searchText");
pageContext.putParameter("searchText", "%" + p + "%");
String p1 = pageContext.getParameter("searchText");
// oaviewobject.setWhereClause("(xxatc_job_dff like :1 or job like :1)");
oaviewobject.setWhereClause(" xxatc_job_dff like :1");
oaviewobject.setWhereClauseParam(1, p1);
pageContext.writeDiagnostics(this, "RS p new param:" + p1, 3);
Standard CO is as follows
public void processRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
super.processRequest(oapagecontext, oawebbean);
initVO(oapagecontext, oawebbean);
public void initVO(OAPageContext oapagecontext, OAWebBean oawebbean)
Dictionary dictionary = oapagecontext.getLovCriteriaItems();
OAApplicationModule oaapplicationmodule = oapagecontext.getApplicationModule(oawebbean);
OAViewObject oaviewobject = (OAViewObject)oaapplicationmodule.findViewObject("UsJobLovVO");
String s = (String)dictionary.get("HrBusinessGroupId");
oracle.apps.fnd.framework.server.OADBTransaction oadbtransaction = oaapplicationmodule.getOADBTransaction();
SSHRParams sshrparams = new SSHRParams(oadbtransaction);
String s1 = sshrparams.getEffectiveDate();
oaviewobject.setWhereClause("business_group_id = :1 and to_date( :2 , 'RRRR/MM/DD') between date_from and nvl" +
"(date_to, to_date( :3 , 'RRRR/MM/DD'))"
oaviewobject.setOrderByClause("job");
oaviewobject.setWhereClauseParam(0, s);
oaviewobject.setWhereClauseParam(1, s1);
oaviewobject.setWhereClauseParam(2, s1);
The Log shows as follows, i am not sure where the param 4 is being picked from
WHERE (business_group_id = :1 and to_date( :2 , 'RRRR/MM/DD') between date_from and nvl(date_to, to_date( :3 , 'RRRR/MM/DD')) AND ( UPPER(JOB) like :4 )) ORDER BY job
I am getting the error as follows
[488]:ERROR:[fnd.framework.about.webui.OAAboutPGCO]:oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT
pj.job_id,
pj.name job,
pj.business_group_id,
pj.date_from,
pj.date_to,
hlc.meaning flsa_status,
pj.attribute3 xxatc_job_dff
FROM
per_jobs_v pj,
hr_leg_lookups hlc
WHERE hlc.lookup_code(+)= pj.job_information3
and hlc.lookup_type(+)='US_EXEMPT_NON_EXEMPT') QRSLT WHERE (JOB like :1 AND ( UPPER(JOB) like :4 AND (JOB like :5 OR JOB like :6 OR JOB like :7 OR JOB like :8))) ORDER BY job
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormData(OAPageBean.java:2555)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1677)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430)
at oa_html._OA._jspService(_OA.java:84)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
at org.apache.jserv.JServConnection.run(JServConnection.java:294)
at java.lang.Thread.run(Thread.java:534)
## Detail 0 ##
java.sql.SQLException: ORA-01006: bind variable does not exist
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:590)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1973)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1119)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2566)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2963)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:658)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:584)
at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:631)
at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:518)
at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3375)
at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:828)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4507)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544)
at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619)
at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3339)
at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3326)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:441)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.initQuery(OAViewObjectImpl.java:716)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.setCriteriaOnVO(OAWebBeanHelper.java:2314)
at oracle.apps.fnd.framework.webui.OAMessageLovInputHelper.handleValidateEventPrivate(OAMessageLovInputHelper.java:1229)
at oracle.apps.fnd.framework.webui.OAMessageLovInputHelper.handleValidateEvent(OAMessageLovInputHelper.java:2546)
at oracle.apps.fnd.framework.webui.LovUtils.handleLovValidate(LovUtils.java:250)
at oracle.apps.fnd.framework.webui.LovUtils.handleLovEventInPFD(LovUtils.java:170)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormData(OAPageBean.java:2531)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1677)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430)
at oa_html._OA._jspService(_OA.java:84)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
at org.apache.jserv.JServConnection.run(JServConnection.java:294)
at java.lang.Thread.run(Thread.java:534)
java.sql.SQLException: ORA-01006: bind variable does not exist
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:590)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1973)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1119)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2566)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2963)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:658)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:584)
at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:631)
at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:518)
at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3375)
at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:828)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4507)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544)
at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619)
at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3339)
at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3326)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:441)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.initQuery(OAViewObjectImpl.java:716)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.setCriteriaOnVO(OAWebBeanHelper.java:2314)
at oracle.apps.fnd.framework.webui.OAMessageLovInputHelper.handleValidateEventPrivate(OAMessageLovInputHelper.java:1229)
at oracle.apps.fnd.framework.webui.OAMessageLovInputHelper.handleValidateEvent(OAMessageLovInputHelper.java:2546)
at oracle.apps.fnd.framework.webui.LovUtils.handleLovValidate(LovUtils.java:250)
at oracle.apps.fnd.framework.webui.LovUtils.handleLovEventInPFD(LovUtils.java:170)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormData(OAPageBean.java:2531)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1677)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430)
at oa_html._OA._jspService(_OA.java:84)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
at org.apache.jserv.JServConnection.run(JServConnection.java:294)
at java.lang.Thread.run(Thread.java:534)
Edited by: Rakesh S on Oct 27, 2009 7:16 PM
Edited by: Rakesh S on Oct 27, 2009 8:54 PMHi Pratap,
I think it should work now right as i am using UNION in extended VO and assigning the attribute3 to Job. As per the querybean it will create where clause based on JOB,so it should handle right.
Seeded VO
SELECT
pj.job_id,
pj.name job,
pj.business_group_id,
pj.date_from,
pj.date_to,
hlc.meaning flsa_status
FROM
per_jobs_v pj,
hr_leg_lookups hlc
WHERE hlc.lookup_code(+)= pj.job_information3
and hlc.lookup_type(+)='US_EXEMPT_NON_EXEMPT'
Extended VO
SELECT
pj.job_id,
pj.name job,
pj.business_group_id,
pj.date_from,
pj.date_to,
hlc.meaning flsa_status,
pj.attribute3 xxatc_job_dff
FROM
per_jobs_v pj,
hr_leg_lookups hlc
WHERE hlc.lookup_code(+)= pj.job_information3
and hlc.lookup_type(+)='US_EXEMPT_NON_EXEMPT'
union
SELECT
pj.job_id,
pj.attribute3 job,
pj.business_group_id,
pj.date_from,
pj.date_to,
hlc.meaning flsa_status,
pj.attribute3 xxatc_job_dff
FROM
per_jobs_v pj,
hr_leg_lookups hlc
WHERE hlc.lookup_code(+)= pj.job_information3
and hlc.lookup_type(+)='US_EXEMPT_NON_EXEMPT'
and pj.attribute3 is not null
Maybe you are looking for
-
Could someone please tell me what is wrong. I am trying to sync a episode of lost onto my ipod and I can see that it is trying to sync the program but when it gets about a quarter to half way through it stops and I get various error messages. One if
-
This is not an iCal or Calendar problem. It is more related to CalDAV, but the tools I'm using are Apple based: iCal, Calendar, and BusyCal. I'm migrating from one Exchange server to another without access to the "back end." All the tools and access
-
Gurus, Can you advise if you have used EDI and IDocs to receive messages into GTS. Requirement is to update GTS customs declaration based on this IDoc data. Is there a standard BAPI or function module that can for example post CUSRES or CUSDEC mess
-
Pic comes out blue when using flash!!! :(
Ok so when the flash is on "auto" or "on" when I take a picture it comes out blue. Does anybody have the same issues here. I see that some of the posts here have kind of like the same problem except that the pics have yellow/orange spots. Can anybody
-
Is it possible to pause a for loop?
Hi all! I wonder if it's possible in anyway, without using any timelines, to "pause" a for loop.for a couple of second if some statement returns true during the loop? I.e. like this sketch up of a code example: Thanks for any help :)