ERROR ST22 ORA-1001
Please, I am trying to identify the following problem:
ST22
Database error text........: "ORA-01001: invalid cursor"
Triggering SQL statement...: "CX_SY_OPEN_SQL_DB=============CP "
Internal call code.........: "[REPO/*/43/LOAD/CX_SY_OPEN_SQL_DB=============CP
I wait aid
Juliano
Hi,
which version of the BusinessObjects software are you using ? which version from SAP system ?
what is the workflow where this happens ?
Ingo
Similar Messages
-
hi,
my report is giving error REP-1401:'cf_1formula': Fatal PL/SQL error occured,
ORA-01403: no data found
There are two table emp1 and emp2 created from employees table from HR schema
I have deleted some records from table emp2 where department id is 110
main query is
select employee_id, first_name, department_id from emp1
now i created a foumula column
function CF_1Formula return Number is
dept number;
begin
select department_id into dept from emp2 where employee_id = :employee_id;
return(dept);
end;
the above error is given when report is run. i tried
exception
when_no_data_found then
dept:=000
but problem is not solved
i want to disply any number in this foumula column if the record is not foundM. Khurram Khurshid wrote:
exception
when_no_data_found then
dept:=000try this code in formula
function CF_1Formula return Number is
dept number;
begin
select department_id into dept from emp2 where employee_id = :employee_id;
if dept is not null then
return(dept);
else
return 0;
end if;
end; Hope this will help you...
If someone response is helpful or correct please, mark is accordingly. -
Hi everyone.
Can anyone tell me what is wrong in this code below?
Code:
function NO_DAYSFormula return Number is
begin
IF TO_CHAR(TO_DATE(:P_FR_DT, 'DD-MM-RRRR'), 'RRRR') =TO_CHAR(TO_DATE(:ACCT_OPN_DT, 'DD-MM-RRRR'), 'RRRR')
AND :P_TO_DT<:MATURITY_DATE
AND :ACCT_OPN_DT>:P_FR_DT
THEN RETURN (:P_TO_DT-:ACCT_OPN_DT+1);
ELSIF TO_CHAR(TO_DATE(:P_FR_DT, 'DD-MM-RRRR'), 'RRRR') =TO_CHAR(TO_DATE(:ACCT_OPN_DT, 'DD-MM-RRRR'), 'RRRR')
AND :P_TO_DT<:MATURITY_DATE
AND :ACCT_OPN_DT<:P_FR_DT
THEN RETURN (:P_FR_DT-:P_TO_DT+1);
ELSIF TO_CHAR(TO_DATE(:P_FR_DT, 'DD-MM-RRRR'), 'RRRR') =TO_CHAR(TO_DATE(:ACCT_OPN_DT, 'DD-MM-RRRR'), 'RRRR')
AND :P_TO_DT>:MATURITY_DATE
AND :ACCT_OPN_DT<:P_FR_DT
THEN RETURN (:P_FR_DT-:MATURITY_DATE+1);
END IF;
END;
It gets compiled successfully but when i run the report, i get 2 errors.
Error 1:
REP-1401: 'no_daysformula':Fatal PL/SQL error occurred.
ora-06503: PL/SQL : Function returned without value.
Error 2:
REP-0619: You cannot run without a layout.
Should i use only 1 return statement?
Can i use as many return statements as i want?
What is the exact mistake? Please let me know.
Thank You.Let me clear you the first thing...
If you get any fatal errors while running the report (e.g., function returned without value,no value etc.,) the report will show
REP-0619: You cannot run without a layout.
So you just correct the function 'no_daysformula' .
First of all you run the report without that formula column.
If it works fine then , Check the return value of your formula column (Your formula column properties --> Return value --> value (It will be DATE as i think so).
As function will always return a single value, Check your formula 'no_daysformula' returns the same.
declare a return variable say for example..
DECLARE
V_DATE DATE;
BEGIN
--YOUR CODE---
RETURN V_DATE := (RETURN VALUE)
END;
Last but not least ... use Else condition to return (NULL or any value ) in your code and check..
If any Problem persists let me know
Regards,
Soofi. -
Error Message - ORA-01722 Invalid Number
Hello:
I have the following situation. When I create an organization, a record is inserted into the following table, AGREEMENTS, and populates four fields.
I have an update form which selects the organization from the AGREEMENTS table so the user can populate the rest of the table. In addition, on this form, there is a drop-down box which allows the user to select the name of a legal document along with the version of the document in which the user needs to select. This select list is created via an LOV joining three tables. The item name for this select list is :P6_DOCUMENT.
The code for the LOV is:
SELECT S.DOC_NAME||' - '|| O.VERSION_NO AS DOC, O.ORG_DOC_CURR_KEY
FROM SUPPORTING_DOCS S,
ORG_DOC_CURR_VER O,
AGREEMENTS H
WHERE
S.DOC_TYPE = 'HISA'
AND S.SUPPORTING_DOC_KEY = O.SUPPORTING_DOC_KEY
AND H.ORG_KEY_LE = O.ORG_KEY
AND O.ORG_KEY=:P6_ORG_KEY_LEWhen the user completes the form, the SUBMIT process is a PL/SQL block consisting of an UPDATE statement to update the AGREEMENTS table based on the selected organization and an INSERT statement to insert a record into the AGREEMENTS_DOC table to store the value stored in :P7_DOCUMENT.
Ok, now here is where my problem starts.
When I first bring up the form and I select the organization I want to update, I click the Search button to find the organization and I receive the following error message: ORA-01722 Invalid Number.
At this point all I'm doing is a basic search. There is no insert/update or anything going on. I'm not understanding why I would be receiving this error message.
The search is based on the database column ORG_KEY_LE whose datatype is NUMBER.
In my application, the item assigned to ORG_KEY_LE is P6_ORG_KEY_LE.
I have a PL/SQL block process created (On Load-Before Header) in the Page Rendering area of my page definition. The PL/SQL code that is written is:
BEGIN
IF :P6_SEARCH_ORG != '0' THEN
:P6_ORG_KEY_LE := :P6_SEARCH_ORG;
END IF;
END;I then have an Item created, :P6_SEARCH_ORG, which is a Select List. In the LOV portion of the page for this item, I have the following:
select ORG_KEY_LE display_value, ORG_KEY_LE return_value
from AGREEMENTS
order by 1The reason for using this table is because this table contains the newly created organization which needs to be updated with the remaining columns of data.
I then have a Search button in the Button area which has the following settings:
Button Position: Region Template Position #CHANGE#.
Condition Type: Value of Item in Express 1 is NULL.
Expression 1: :P6_ORG_KEY_LE.
To troubleshoot this problem, I created two pages, one page to do the UPDATE and the second page to do the INSERT.
The SEARCH functionality in both pages are identical.
When I run my UPDATE page, which only involves updating the missing fields, the process works. I have my search box, I'm able to search for the organization, make my updates, and I'm good.
When I run my INSERT page, which involves inserting the record with the assigned document, I receive the error message after I click the SEARCH button. In order to INSERT the record into this table, I first need to SELECT the organization that was UPDATED in the AGREEMENTS table (using the UPDATE page described in above paragraph). When I select the organization, the user can then assign the appropriate legal document to the organization and insert the record into the AGREEMENTS_DOC table.
Can someone help me with this error message? I'm not sure why I am able to perform my SEARCH on a page with the UPDATE statement, not able to perform the SEARCH on the page with my INSERT statement, and not be able to perform the SEARCH on the page that combines the UPDATE and INSERT statements.
I did some more troubleshooting and I do believe my SUBMIT process which contains the INSERT statement is the issue. I created a fourth page which doesn't have a SUBMIT process. I brought up the form, searched for my organization and the information for that organization appeared. The problem is definately with my UPDATE/INSERT process.
The PL/SQL block for the Submit process is the following:
BEGIN
update
MDD.HISA_AGREEMENTS
set
LAST_UPDATED_BY=V('APP_USER'),
APPROVER_SALUTATION=:P6_APPROVER_SALUTATION,
APPROVER_FIRST_NAME=:P6_APPROVER_FIRST_NAME,
APPROVER_MIDDLE_INITIAL=:P6_APPROVER_MIDDLE_INITIAL,
APPROVER_LAST_NAME=:P6_APPROVER_LAST_NAME,
APPROVER_NAME_SUFFIX=:P6_APPROVER_NAME_SUFFIX,
APPROVER_EMAIL_ADDR=:P6_APPROVER_EMAIL_ADDR,
SPONSOR_EMAIL_ADDR=:P6_SPONSOR_EMAIL_ADDR,
APPROVER_TITLE=:P6_APPROVER_TITLE
where
ORG_KEY_LE=:P6_ORG_KEY_LE
INSERT INTO
HISA_AGREEMENT_DOCS
(HISA_AGREEMENT_DOC_KEY,
ORG_KEY_LE,
APPLICATION_KEY,
STATUS,
STATUS_DATE,
CREATED_BY,
ORG_DOC_CURR_KEY)
VALUES
(HISA_AGREEMENT_DOC_KEY_SEQ.NEXTVAL,
:P6_ORG_KEY_LE,
:P6_APPLICATION_KEY,
'C',
SYSDATE,
V('APP_USER'),
:P6_DOCUMENT)
END;There is something wrong with the above statement and I do not understand what it could be. Can someone help?
Thanks for the help.Hi,
I believe you are on to something.
The select list for item :P6_DOCUMENT appears when I first bring up the form. When I select my organization and receive the error message, I clicked on the Session in the Developer's bar. The value in item/field :P6_DOCUMENT shows %null%.
This is the path in which my user would like to accomplish her task:
1. Select an organization
2. Display the information for that organization from the AGREEMENTS table
3. Enter the data for the remaining fields in the AGREEMENTS table
4. Select the document (:P6_DOCUMENT) from the drop-down.
5. Click Submit
6. Update the AGREEMENTS table with data entered in #3.
7. Insert a record into the AGREEMENTS_DOC table with the selection from #4.
Somehow I need the :P6_DOCUMENT field not to show the %null% during the SEARCH functionality. I think that is causing the problem.
How do I fix this? -
Error Message (ORA-01722: invalid number) when add amount into Number field
I am using VB.net, trying to insert data into a field called amt with Data Type 'Number'.
my vb.net code is as follows
Dim oradb As String = DatabaseConnectionString
Dim AmountValue As Decimal = 123.45
'get the connection
Dim conn As New OracleConnection(oradb)
'open the database connection
conn.Open()
'create oracle command
Dim cmd As New OracleCommand("INSERT INTO TBL1 (AMT) VALUES (:AMT)", conn)
cmd.CommandType = CommandType.Text
cmd.Parameters.Add(":AMT", OracleDbType.Decimal, AmountValue, ParameterDirection.Input)
'Execute
cmd.ExecuteNonQuery()
I got error message "ORA-01722: invalid number". Please helpDid you also change the below line before inserting Integer 123:
cmd.Parameters.Add(":AMT", OracleDbType.Decimal, AmountValue, ParameterDirection.Input)
to
cmd.Parameters.Add(":AMT", OracleDbType.Integer, AmountValue, ParameterDirection.Input) -
While creating a simple VIEW Error comes ORA-00604,ORA-00001
I am using
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Prod
a simple view statement gives an error.
ORA-00604: error occurred at recursive SQL level 1
ORA-00001: unique constraint (SYS.I_COL1) violated
what may be the reasonHi,
It seems that SHORT_NAME cause problem.
SQL> CREATE OR REPLACE FORCE VIEW V_META_IMAGELIST
2 AS
3 SELECT A.SEQ_NUM, A.SHORT_NAME, A.DESCRIPTION, A.MULTISELECT, A.ENTITY_SEQ_NUM, A.SECTION_TYPE_
SEQ_NUM,
4 B.SHORT_NAME, A.ACTIVE, A.ENTERED_BY,
5 A.ENTRY_DATE, A.IMAGELIST_LEVEL, A.STARTINGSENTENCE, A.SEPARATOR, A.CONJUNCTION, A.ENDINGSENTEN
CE,
6 A.META_IMAGELIST_ELEMENT_SEQ_NUM
7 FROM meta_imagelist A, SECTION_TYPES B
8 WHERE A.SECTION_TYPE_SEQ_NUM = B.SEQ_NUM(+) ;
B.SHORT_NAME, A.ACTIVE, A.ENTERED_BY,
ERROR at line 4:
ORA-00604: error occurred at recursive SQL level 1
ORA-00001: unique constraint (SYS.I_COL1) violated
SQL> ed
Wrote file afiedt.buf
1 CREATE OR REPLACE FORCE VIEW V_META_IMAGELIST
2 AS
3 SELECT A.SEQ_NUM, A.SHORT_NAME, A.DESCRIPTION, A.MULTISELECT, A.ENTITY_SEQ_NUM, A.SECTION_TYPE_
4 B.SHORTNAME, A.ACTIVE, A.ENTERED_BY,
5 A.ENTRY_DATE, A.IMAGELIST_LEVEL, A.STARTINGSENTENCE, A.SEPARATOR, A.CONJUNCTION, A.ENDINGSENTEN
6 A.META_IMAGELIST_ELEMENT_SEQ_NUM
7 FROM meta_imagelist A, SECTION_TYPES B
8* WHERE A.SECTION_TYPE_SEQ_NUM = B.SEQ_NUM(+)
SQL> /
Warning: View created with compilation errors. --this is because I haven't any tables
SQL> show error
No errors.
SQL> Try to rename SHORT_NAME to an other word.
Nicolas. -
REP-1401 Fatal PL/SQL error occur ORA-06502 numeric or value error
Hi,
I am getting following error in reports 6i
REP-1401 Fatal PL/SQL error occur ORA-06502 numeric or value error.
I have added a formula column based on other formula column
function CF_1FORMULA0005 return varchar2 is
CF_CREDIT varchar2(38);
begin
:CF_CREDIT:= :D_CARRY_F_CR+:D_HD_SUM_REP_CR;
RETURN (:CF_CREDIT);
end;
Oracle Standard formula coulmn:
function D_CARRY_F_DRFormula return VARCHAR2 is
l_dr VARCHAR2(38);
l_dr_disp VARCHAR2(38);
begin
SRW.REFERENCE(:C_FUNC_CURRENCY);
SRW.REFERENCE(:C_CARRY_F_DR);
if (:C_CARRY_F_DR = 0) THEN
ax_globe_package.g_dr_cf := TRUE;
--l_dr:= '0.00';
l_dr_disp := '0.00';
l_dr := ax_currency_pkg.display_char(:C_FUNC_CURRENCY,l_dr_disp,38);
else
-- return(ax_currency_pkg.display_char(:C_FUNC_CURRENCY,:C_CARRY_F_DR,ax_page_pkg.f_maxlength));
-- Bug2239881. Setting the carried forward totals.
IF (:P_GLOBAL_ATTR_CAT = 'JE.GR.GLXSTBKS.BOOKS' AND ax_globe_package.g_dr_cf = FALSE) THEN
ax_globe_package.g_dr_cf := TRUE;
ax_globe_package.g_dr_total := :C_CARRY_F_DR;
END IF;
srw.message(999,'G_DR_TOTAL = ' || ax_globe_package.g_dr_total );
l_dr := ax_currency_pkg.display_char(:C_FUNC_CURRENCY,to_char(ax_globe_package.g_dr_total),38);
/*select to_number(l_dr, '999G999G999G999G990D00')
into l_dr_disp
from dual;
end if;
srw.message(999,'l_dr = ' || l_dr );
return l_dr;
--return ltrim(to_char(l_dr_disp,'999G999G999G999G990D00','nls_numeric_characters=,.'));
end;
both formula column return types are character.Please help me ASAP.
Thanks,
sriharsha.Hi,
First of all: when you should use concatenation operator (||) instead of plus sign when working with strings. So, instead of
:CF_CREDIT:= :D_CARRY_F_CR+:D_HD_SUM_REP_CR; you should use
:CF_CREDIT:= :D_CARRY_F_CR||:D_HD_SUM_REP_CR; If :D_CARRY_F_CR and :D_HD_SUM_REP_CR are both numbers then consider to use to_char function before you assign value to :CF_CREDIT.
I wonder, why your CF's returns varchar's if they operates on numbers?
regards
kikolus
Edited by: kikolus on 2012-11-30 08:03 -
Getting Error - CREATE_CASH : ORA-01403: no data found
When i use api AR_RECEIPT_API_PUB.CREATE_CASH in loop then i get error 'CREATE_CASH : ORA-01403: no data found' for second record.
AR_RECEIPT_API_PUB.CREATE_CASH(p_api_version => 1.0
,p_init_msg_list => fnd_api.g_true
,p_commit => fnd_api.g_true
,p_receipt_number => i_receipt_number
,p_receipt_date => TRUNC(SYSDATE)
,p_gl_date => TRUNC(SYSDATE)
,p_amount => i_receipt_amount
,p_currency_code => g_currency_code
,p_receipt_method_id => i_receipt_method_id
,p_customer_id => i_customer_id
,p_cr_id => l_cr_id
,p_org_id => i_org_id
,x_return_status => l_return_status
,x_msg_count => l_msg_count
,x_msg_data => l_msg_data
I run it for different org. First org it's running fine but for second it's fail -
Here is output -
Start, Org ID - 84
l_receipt_number - 43164
l_receipt_amount - 74.55
g_currency_code - USD
l_receipt_method_id - 4000
l_customer_id - 7040
l_cr_id -
l_return_status -
l_msg_count -
l_msg_data -
Status - S
Start, Org ID - 81
l_receipt_number - 43166
l_receipt_amount - 30
g_currency_code - USD
l_receipt_method_id - 4000
l_customer_id - 7047
l_cr_id -
l_return_status -
l_msg_count -
l_msg_data -
Error count/msg - 2-
Error msg - CREATE_CASH : ORA-01403: no data found
Error msg - ORA-01403: no data found in Package AR_RECEIPT_API_PUB Procedure Create_cash
PLease help it's urgentHere is code which i am using...
IF l_ar_pay_rec > 0 THEN
l_receipt_number := ar_cash_receipts_s.NEXTVAL;
FOR r_ar_org_records IN cr_ar_org_records
LOOP
IF r_ar_org_records.org_id = 81 THEN
l_resp_id := 50677;
ELSE
l_resp_id := 50681;
END IF;
MO_GLOBAL.INIT('AR');
MO_GLOBAL.SET_POLICY_CONTEXT('S',r_ar_org_records.org_id);
FND_GLOBAL.APPS_INITIALIZE(g_user_id,l_resp_id,l_appl_id,0);
DBMS_OUTPUT.PUT_LINE('User,Resp,App,Org - '||g_user_id||','||l_resp_id||','||l_appl_id||','||r_ar_org_records.org_id);
-- Derive Receipt Method ID
BEGIN
SELECT receipt_method_id
INTO l_receipt_method_id
FROM ar_receipt_methods
WHERE name = g_receipt_method;
EXCEPTION
WHEN OTHERS THEN
g_ar_error := 'Y';
g_ar_error_msg := g_ar_error_msg||'Receipet Method Not Found, ';
FND_FILE.PUT_LINE(FND_FILE.LOG,'Error While Derive Receipt Method ID');
END;
-- Derive Customer ID
BEGIN
SELECT customer_id
,SUM(AMOUNT_PAID)
INTO l_customer_id
,l_receipt_amount
FROM xxar_third_party_validation
WHERE raf_code = i_raf
AND receipt_date = i_date_paid
AND org_id = r_ar_org_records.org_id
AND customer_id is not null
GROUP BY customer_id;
EXCEPTION
WHEN OTHERS THEN
g_ar_error := 'Y';
g_ar_error_msg := g_ar_error_msg||' Customer ID Not Found, ';
FND_FILE.PUT_LINE(FND_FILE.LOG,'Error While Customer ID');
END;
fnd_msg_pub.initialize;
l_return_status := NULL;
l_msg_count := NULL;
l_msg_data := NULL;
l_cr_id := NULL;
g_currency_code := 'USD';
DBMS_OUTPUT.PUT_LINE('Start, Org ID - '||r_ar_org_records.org_id);
-- Create Cash for Customer
DBMS_OUTPUT.PUT_LINE('l_receipt_number - '||l_receipt_number);
DBMS_OUTPUT.PUT_LINE('l_receipt_amount - '||l_receipt_amount);
DBMS_OUTPUT.PUT_LINE('g_currency_code - '||g_currency_code);
DBMS_OUTPUT.PUT_LINE('l_receipt_method_id - '||l_receipt_method_id);
DBMS_OUTPUT.PUT_LINE('l_customer_id - '||l_customer_id);
DBMS_OUTPUT.PUT_LINE('l_cr_id - '||l_cr_id);
DBMS_OUTPUT.PUT_LINE('l_return_status - '||l_return_status);
DBMS_OUTPUT.PUT_LINE('l_msg_count - '||l_msg_count);
DBMS_OUTPUT.PUT_LINE('l_msg_data - '||l_msg_data);
AR_RECEIPT_API_PUB.CREATE_CASH(p_api_version => 1.0
,p_init_msg_list => fnd_api.g_true
,p_receipt_number => l_receipt_number
,p_receipt_date => TRUNC(SYSDATE)
,p_gl_date => TRUNC(SYSDATE)
,p_amount => l_receipt_amount
,p_currency_code => g_currency_code
,p_receipt_method_id => l_receipt_method_id
,p_customer_id => l_customer_id
,p_cr_id => l_cr_id
,p_org_id => r_ar_org_records.org_id
,x_return_status => l_return_status
,x_msg_count => l_msg_count
,x_msg_data => l_msg_data
DBMS_OUTPUT.PUT_LINE('Status - '||l_return_status);
IF l_return_status <> 'S' THEN
g_ar_error := 'Y';
DBMS_OUTPUT.PUT_LINE('Error count/msg - '||l_msg_count||'-'||l_msg_data);
IF l_msg_count = 1 THEN
g_ar_error_msg := g_ar_error_msg||l_msg_data;
DBMS_OUTPUT.PUT_LINE('Error msg - '||l_msg_data);
ELSIF l_msg_count > 1 THEN
LOOP
l_msg_data := fnd_msg_pub.get (fnd_msg_pub.g_next
,fnd_api.g_false);
IF l_msg_data IS NULL THEN
EXIT;
END IF;
g_ar_error_msg := g_ar_error_msg||l_msg_data;
DBMS_OUTPUT.PUT_LINE('Error msg - '||l_msg_data);
END LOOP;
END IF;
xxar_log_error(r_ar_org_records.record_id,SUBSTR(g_ar_error_msg,1,120));
ELSE
DBMS_OUTPUT.PUT_LINE('Status - '||l_return_status);
FOR r_ar_records IN cr_ar_records(r_ar_org_records.org_id)
LOOP
fnd_msg_pub.initialize;
l_return_status := NULL;
l_msg_count := NULL;
l_msg_data := NULL;
l_cr_id := NULL;
l_receipt_amount := r_ar_records.amount_paid;
l_trx_number := r_ar_records.transaction_number;
g_currency_code := r_ar_records.currency_code;
l_receipt_date := SYSDATE;
l_gl_date := SYSDATE;
-- Apply payments for the RAF and Date Paid
AR_RECEIPT_API_PUB.APPLY(p_api_version => 1.0
,p_init_msg_list => fnd_api.g_true
,p_commit => fnd_api.g_false
,x_return_status => l_return_status
,x_msg_count => l_msg_count
,x_msg_data => l_msg_data
,p_receipt_number => l_receipt_number
,p_trx_number => l_trx_number
,p_amount_applied => l_receipt_amount
,p_org_id => r_ar_org_records.org_id
IF l_return_status <> 'S' THEN
g_ar_error := 'Y';
IF l_msg_count = 1 THEN
g_ar_error_msg := g_ar_error_msg||l_msg_data;
ELSIF l_msg_count > 1 THEN
LOOP
l_msg_data := fnd_msg_pub.get (fnd_msg_pub.g_next
,fnd_api.g_false);
IF l_msg_data IS NULL THEN
EXIT;
END IF;
g_ar_error_msg := g_ar_error_msg||l_msg_data;
END LOOP;
END IF;
xxar_log_error(r_ar_records.record_id,SUBSTR(g_ar_error_msg,1,240));
ELSE
DBMS_OUTPUT.PUT_LINE('Sucess 2 - ');
NULL;
/* -- Call Adjustment API for Contractual Allowance
IF NVL(r_ar_records.contractual_allowance_amt,0) > 0 THEN
xxar_third_party_rcpt_adj(r_ar_records.record_id
,r_ar_records.transaction_number
,r_ar_records.contractual_allowance_amt
,i_user_id
END IF; */
END IF;
END LOOP;
END IF;
DBMS_OUTPUT.PUT_LINE('Error Flag AR - '||g_ar_error);
IF g_ar_error = 'Y' THEN
xxar_log_error(r_ar_org_records.record_id,SUBSTR(g_ar_error_msg,1,240));
END IF;
END LOOP; -
I am getting this error message "ORA-01006: bind variable does not exist.
My code works fine like this:
DECLARE
v_JOBTYPE varchar2(8);
v_STATUS varchar2(8);
v_FAILURE varchar2(8);
v_CAUSE varchar2(8);
v_ACTION varchar2(8);
BEGIN
SELECT EVT_STATUS, EVT_FAILURE, EVT_CAUSE, EVT_ACTION, EVT_JOBTYPE
INTO v_STATUS, v_FAILURE, v_CAUSE, v_ACTION, v_JOBTYPE
FROM R5EVENTS WHERE ROWID = :ROWID;
IF NVL(v_STATUS, 'X') = 'C' AND NVL(v_JOBTYPE , 'X') IN ('BRKD','UNPLBRKD','FILTRA', 'LUB', 'FAC') AND (v_FAILURE IS NULL OR v_CAUSE IS NULL OR v_ACTION IS NULL) THEN
RAISE_APPLICATION_ERROR( -20001, 'FAILURE, CAUSE AND ACTION FIELDS MUST BE POPULATED');
END IF;
END;
But I want to change the code to include a record (ACT_TRADE) from another table(R5ACTIVITIES). I am getting this error message "ORA-01006: bind variable does not exist - POST-UPDATE 200Before Binding". Any help would be appreciated.
DECLARE
v_STATUS varchar2(8);
v_FAILURE varchar2(8);
v_CAUSE varchar2(8);
v_ACTION varchar2(8);
V_CODE varchar2(8);
V_EVENT varchar2(8);
V_TRADE varchar2(8);
BEGIN
SELECT R5EVENTS.EVT_STATUS, R5EVENTS.EVT_FAILURE, R5EVENTS.EVT_CAUSE, R5EVENTS.EVT_ACTION, R5EVENTS.EVT_CODE, R5ACTIVITIES.ACT_EVENT, R5ACTIVITIES.ACT_TRADE
INTO v_STATUS, v_FAILURE, v_CAUSE, v_ACTION, V_CODE, V_EVENT, V_TRADE
FROM R5EVENTS, R5ACTIVITIES WHERE V_CODE = :V_EVENT;
IF NVL(v_STATUS, 'X') = 'C' AND NVL(v_TRADE , 'X') IN ('MTM','MTL','MTMGT', 'FTM', 'FTL', 'FTMGT', 'R5') AND (v_FAILURE IS NULL OR v_CAUSE IS NULL OR v_ACTION IS NULL) THEN
RAISE_APPLICATION_ERROR( -20001, 'FAILURE, CAUSE AND ACTION FIELDS MUST BE POPULATED');
END IF;
END;Thank you for your responses. Your feedback was helpful. This is what I ended up doing for a solution:
DECLARE
v_JOBTYPE varchar2(8);
v_STATUS varchar2(8);
v_FAILURE varchar2(8);
v_CAUSE varchar2(8);
v_ACTION varchar2(8);
v_GROUP varchar2(30);
BEGIN
SELECT EVT_STATUS, EVT_FAILURE, EVT_CAUSE, EVT_ACTION, EVT_JOBTYPE, USR_GROUP
INTO v_STATUS, v_FAILURE, v_CAUSE, v_ACTION, v_JOBTYPE, v_GROUP
FROM R5EVENTS, R5USERS WHERE R5EVENTS.ROWID = :ROWID
AND USR_CODE = O7SESS.CUR_USER;
IF NVL(v_STATUS, 'X') = 'C' AND NVL(V_GROUP,'X') IN ('MTM','MTL','MTMGT','FTL','FTMGTS','PLANNER','DISPATCH','PMCOOR','R5') AND (v_FAILURE IS NULL OR v_CAUSE IS NULL OR v_ACTION IS NULL) THEN
RAISE_APPLICATION_ERROR( -20001, 'FAILURE, CAUSE AND ACTION FIELDS MUST BE POPULATED');
END IF;
END; -
I have two questions:
1. If I have only single organization, Do I need to set up multi-org? We will be using AR, AP, and GL modules only.
2. Is there any step-by-step process to set up multi-org?
I am getting error: "Oracle error -20001 ORA-20001 APP-FND-02901. You do not have access to any operating unit. Please check if your profile option MO:Security Profile includes any operating unit or the profile option MO: operating unit is set has been detected in MO_GLOBAL_INIT" when I access any form for Entry.
Thanks1. If I have only single organization, Do I need to set up multi-org? We will be using AR, AP, and GL modules only.Yes.
2. Is there any step-by-step process to set up multi-org?https://forums.oracle.com/forums/search.jspa?threadID=&q=MultiOrg&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
I am getting error: "Oracle error -20001 ORA-20001 APP-FND-02901. You do not have access to any operating unit. Please check if your profile option MO:Security Profile includes any operating unit or the profile option MO: operating unit is set has been detected in MO_GLOBAL_INIT" when I access any form for Entry.Does this happen to all responsibilities?
Please see the steps in (ORA-20001: APP-FND-02901 Errors Encountered When "Requests" Tab is Selected from PFT or EPF [ID 859072.1]) to set the profile option at the responsibility level for the responsibility you are trying to access.
Thanks,
Hussein -
I want to mirror a schema to a existing schema by creating DDL and recreate on the other schema with same name.
I wrote the code below:
create or replace
PROCEDURE SCHEMA_A."MAI__DWHMIRROR"
AS
v_sqlstatement CLOB:='bos';
str varchar2(3999);
BEGIN
select
replace(
replace(replace(
replace(DBMS_METADATA.GET_DDL('TABLE','XXXX','SCHEMA_A'),'(CLOB)',''),';','')
,'SCHEMA_A'
,'SCHEMA_B'
into v_sqlstatement
from dual;
select CAST(v_sqlstatement AS VARCHAR2(3999)) into str from dual;
execute immediate ''||str;
END;
And Executing this block with below code:
set serveroutput on
begin
SCHEMA_A.MAI__DWHMIRROR;
end;
But still getting the following error code:
Error report:
ORA-01031: insufficient privileges
ORA-06512: at "SCHEMA_A.MAI__DWHMIRROR", line 47
ORA-06512: at line 2
01031. 00000 - "insufficient privileges"
*Cause: An attempt was made to change the current username or password
without the appropriate privilege. This error also occurs if
attempting to install a database without the necessary operating
system privileges.
When Trusted Oracle is configure in DBMS MAC, this error may occur
if the user was granted the necessary privilege at a higher label
than the current login.
*Action: Ask the database administrator to perform the operation or grant
the required privileges.
For Trusted Oracle users getting this error although granted the
the appropriate privilege at a higher label, ask the database
administrator to regrant the privilege at the appropriate label.user5199319 wrote:
USER has DBA Role
when all else fails Read The Fine Manual
DBMS_METADATA -
Persistent Layer Error Message: ORA-01729 database link name expected
Hi,
I've done a series of loads from DB2 into Oracle, initially importing the database objects from DB2 and Oracle, then creating the mappings, deploying and executing. It all worked and I had no problems. For some reason now whenever I tried to import a new Database Object (table) from the DB2 I enter the password, test it and it successfully connects but then I get the error message on a popup box:
SQL Exception
Persistent Layer Error: SQL Exception
Class Name: CacheMediator
Method Name: getSQLResult
Persistent Layer Error Message: ORA-01729 database link name expected
If I create a new location for the same database it works and I can import new objects. The only difference I can think from the initial imports is that I’ve moved the repository from one server to another. Might be the case where some information got corrupted in the metadata.
Has anyone seen this kind of problem before? Can you please help me out with this issue?
Thanks in advance for your help.
Regards,
LeoI found it.When I look at the db links there is something missing.When I correct it everything works fine.
-
Err 62007: SQL Error: 99999 ORA-24338: Statement Handle not Executed
Hi,
I am facing a problem while adding a new parameter n my JSP Report JDBC query based on a ref-cursor from a stored procedure define in a package in database.
No problem at database level, I have added the new parameter in package specification and Package body for that procedure and compile my package, it complies without any error and warning.
but when I open the report and add parameter in the report JDBC query window, then it is generating a error message,
"Err 62007: SQL Error: 99999 ORA-24338: Statement Handle not Executed "
and I am unable to add the new parameter in report.
e.g.
Actual which was working is:
My-package.My-procedure(:P1,:P2,:P3 ,:P4,:P5,:P6,:P7)
I want to do this:
My-package.My-procedure(:P1,:P2,:P3 ,:P4,:P5,:P6,:P7,:P8)
but unable to do due to this error message:
("Err 62007: SQL Error: 99999 ORA-24338: Statement Handle not Executed ")
Reports Builder 10g:
Database 10g:
Operating system windows XP:
using JDBC Query base on ref-cursor coming from the stored procedure define in the Package.
Regards,
Khanand compile my package, it complies without any error and warning.That doesn't mean anything in this case. You are getting a runtime error, not a compilation error. The error is coming when you execute your procedure.
Did you test your modified procedure in sqlplus or SQL Developer? -
How to update more than 5 million records without error message ORA-00257:
Hi ,
I need to update some columns in my table which is contains about 5 million records
I 've already tried this
Update AAA_CDR
Set RoamFload = Null ;
but the problem is I've got the error message ("ORA-00257: archiver error. Connect internal only,until freed.) and the update consuming about 6 hours with no results ,
then I do the commands ( Alter system set db_recovery_file_dest_size=50G) and the problem solved .
but I need to update about 15 columns of this table to be null ,what I should do to overcome this message and update the table in reasonable time
Please Help Me ,The best way would be to allocate sufficient disk space for your archive log destination. Your database is not sized properly. NOLOGGING option will not do much for you because it' only applies to direct load operations when the data inserted into nologging table is selected from another table. UPDATE will be be logged, regardless of the NOLOGGING status. Here is the quote from the manual:
<quote>
LOGGING|NOLOGGING
LOGGING|NOLOGGING specifies that subsequent Direct Loader (SQL*Loader) and direct-load
INSERT operations against a nonpartitioned index, a range or hash index partition, or
all partitions or subpartitions of a composite-partitioned index will be logged (LOGGING)
or not logged (NOLOGGING) in the redo log file.
In NOLOGGING mode, data is modified with minimal logging (to mark new extents invalid
and to record dictionary changes). When applied during media recovery, the extent
invalidation records mark a range of blocks as logically corrupt, because the redo data
is not logged. Therefore, if you cannot afford to lose this index, you must take a backup
after the operation in NOLOGGING mode.
If the database is run in ARCHIVELOG mode, media recovery from a backup taken before an
operation in LOGGING mode will re-create the index. However, media recovery from a backup
taken before an operation in NOLOGGING mode will not re-create the index.
An index segment can have logging attributes different from those of the base table and
different from those of other index segments for the same base table.
</quote>
If you are really desperate, you can try the following undocumented/unsupported command:
ALTER DATABASE ARCHIVELOG COMPRESS ENABLE;
That will cause database to compress your archive logs and consume less space. This command is not documented or supported, not even in the version 11.2.0.3 and causes the database to start spewing ORA-0600 in version 10G. DO NOT USE IN A PRODUCTION ENVIRONMENT!!!! -
Hello all!
I need urgent help!!
I'm trying to start Oracle 8.1.6 i on Solaris 8. But there are lot of error:
1. During initialising the database with dbassist, the error Code Error Codes: ORA 01034-"ORACLE not available" and ORA-01012-"not logged on" were shown.
2. I'm trying to start Oracle 8i on Sun Solaris 8 by typing svrmgrl-connect interal-startup. But the following was shown on by screen:
passau% svrmgrl
Oracle Server Manager Release 3.1.6.0.0 - Production
Copyright (c) 1997, 1999, Oracle Corporation. All Rights Reserved.
Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production
With the Partitioning option
JServer Release 8.1.6.0.0 - Production
SVRMGR> connect internal
Connected.
SVRMGR> startup
LRM-00109: could not open parameter file '?/dbs/[email protected]'
ORA-01078: failure in processing system parameters
Please help me!!
My e-mail Adress: [email protected]I am pretty sure this has to do with the SGA..
what you may have to do is adjust you
system file
Here the values for /etc/system file: for more info look under
Oracle specific parameters (documetation) set shmsys:shminfo_shmmax=122496729 set semsys:seminfo_semmap=150 set semsys:seminfo_semopm=100 set semsys:seminfo_semvmx=12767 set semsys:seminfo_semmni=200 set semsys:seminfo_semmns=200 set semsys:seminfo_semmsl=200 set semsys:seminfo_semmnu=200 set semsys:seminfo_semume=100 set shmsys:shminfo_shmmin=100 set shmsys:shminfo_shmmni=100 set shmsys:shminfo_shmseg=100
good luck
[email protected]
null
Maybe you are looking for
-
Portrait photos will not sync to iPod Touch!
Hello- When I recently synced my iPhoto library to my 1st generation iPod Touch, it would not sync SOME recent portrait-orientation photos. The photos not synced appeared to be only very recent ones (within the last week or so). Older events and impo
-
Adobe Photoshop CS5 3D Menu missing, need solution ASAP
I recently made a 3D Wallpaper and when im gonna make one again the 3D menu is gone. I don't know if it is because of update or something, but when i searched for an answer or a solution in Google, i've found multiple comments regarding the license
-
How was this effect created?
Hi, Can anyone tell me what was done to create the cool effect at this site? www.robbiecrawford.com When the links on the left are rolled-over an image appears in a small window that follows the cursor. Very cool. I was hoping to learn how to do that
-
Tree using oops....
hi abapers , i wuld like to know about the tree concept. my reqiurement is like that below: 1lvl> Bulk Batch Purchase Order Delivery GR Date 2lvlProd.Ord Material Prod Batch Batch Rec: Date:Time how i can make 1st l
-
This happened very suddenly. I have gone through Preferences carefully twice, checking all settings. Safari is not giving me similar problems so I assume the problem is with Firefox. Running an iMac with OS X, 10.5.8