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 urgent

Here 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;

Similar Messages

  • CREATE_CASH : ORA-01403: no data found

    While running the AR_RECEIPT_API_PUB.CREATE_CASH to create a receipt with Receipt method of automatic receipt class in R12, i get the error:
    .CREATE_CASH : ORA-01403: no data found
    .ORA-01403: no data found in Package AR_RECEIPT_API_PUB Procedure Create_cash
    The same code works perfectly when choosing a receipt method of Manual class. Also for the automatic type methos, receipts are getting created from the front end. Please advise.
    The sample code:
    AR_RECEIPT_API_PUB.CREATE_CASH(
    P_API_VERSION=> 1.0,
    P_INIT_MSG_LIST=> FND_API.G_TRUE,
    P_COMMIT => FND_API.G_FALSE,
    p_validation_level=> fnd_api.g_valid_level_full,
    X_RETURN_STATUS     => L_RETURN_STATUS,
    x_msg_count => l_msg_count,
    x_msg_data => l_msg_data,
    P_CURRENCY_CODE => 'CAD',
    P_AMOUNT      => 100,
    P_RECEIPT_NUMBER      => 'Test_Rishi23-8',
    P_RECEIPT_DATE      => sysdate-1,
    P_GL_DATE      => sysdate-1,
    P_MATURITY_DATE => sysdate-1,
    P_CUSTOMER_ID      => '15187',--cust_acct
    P_CUSTOMER_BANK_ACCOUNT_ID =>'5991',--cust_acct
    p_payment_trxn_extension_id => 4001,
    P_REMITTANCE_BANK_ACCOUNT_ID => '1000556',
    P_DEPOSIT_DATE      => sysdate-1,
    P_RECEIPT_METHOD_ID      => '7003',
    p_called_from      => 'PL/SQL Script',
    p_comments      => 'PAD receipt',
    p_cr_id      => l_cr_id);
    DBMS_OUTPUT.PUT_LINE(L_RETURN_STATUS);
    DBMS_OUTPUT.PUT_LINE(L_MSG_DATA);
    LOOP
    l_count := l_count+1;
    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;
    DBMS_OUTPUT.PUT_LINE( L_COUNT ||'.'||L_MSG_DATA);
    END LOOP;
    end;

    Please see these docs.
    Ora-01403: No Data Found In Package AR_RECEIPT_API_PUB [ID 459469.1]
    Receipts API Issue: Receipts is Not Created When REMITTANCE_BANK_ACCOUNT_NUM is Passed Instead of REMITTANCE_BANK_ACCOUNT_ID [ID 1323301.1]
    Oracle Receivables: Receipts API Known Issues and Patches [ID 1362066.1]
    Netting Batch Completes In Error when Adding Trading Partner In Inactive Relationship [ID 1315186.1]
    Thanks,
    Hussein

  • ORA-01403: no data found

    I am trying to make Form on a Table with Report.
    And my Form is ok, I can successfully insert data. But the problem is report. When I click
    on EDIT button, when I want to change inserted data, I get error message:
    ORA-01403: no data found
    Error      Unable to fetch row.
    Thanks!!!

    Hi,
    I am getting the following error ORA-01403 no data found. I have a hidden item called Temporary item which i created as i have a report that appears with additional information when clicked on show_detail. I created this item by looking at this:
    http://htmldb.oracle.com/pls/otn/f?p=11933:13:2667331074727537::NO:RP::
    At the top of page 24 i have a text box and a search button Go that presents the report that matches the number that the user will type in the text box. I have created a branch to the same page. In my Report region i have code that will select the information from the database where id = :P24_SEARCH_ID
    P24_SEARCH_ID is the text box.
    I tried inserting in the branch> set TEMPORARY_ITEM to values P24_SEARCH_ID and then insert id=:TEMPORARY_ITEM in the region , but this would not work.
    Sometimes the Go button works but when i log out and log back into apex and try running it, i get the error
    Any suggestions as to how i can make it work always?
    Monica

  • Unable to open SO Form - ORA-01403: No data found error

    Hi All,
    I have created a new OU, a new INV org & sub-inventories under it in the Vision Instance 11.5.10.2. I have linked this OU to the existing LE - Vision Operation & SOB - Vision Operations.
    Then, I have created a new OM responsibility just like OM SuperUser responsibility & have set the MO: Operating Unit profile option to the newly created OU at the responsibility level & finally ran the Replicate Seed Data program for this OU as the parameter.
    When I navigate to the new responsibility & try to open on the Sales Order form, i'm getting an error as "ORA-01403 : no data found in the Package OE_Order_Cache Procedure Load_Set_Of_Books" & the SO form doesn't open at all.
    Can anyone please guide me how to resolve this issue or is there any set-up that I'm missing? The package & package body OE_ORDER_CACHE is 'VALID' in the database.
    Regards,
    Hemanth

    Hi Hemanth,
    Hope by now ur issue is resolved.
    If not pls check the following.
    Pls check all the profile options
    GL set of books
    Mo operating unit
    These are mandatory.
    Apart from that check whether u have set the system parameters in OM and AR.
    If these parameters are not set u cannot open the sales order form.
    Pls check this.
    Regards,
    Madhu

  • ORA-01403 NO DATA FOUND ERROR AFTER SELECTING PORTAL LINK TO CALL FORM

    I have a portal application link that I use to call a form. The field on this
    form gets populated based on a bind variable that is passed in by the link.
    This was working 2 weeks ago but now when I click on the link to call the form
    I am receiving the following error "AN UNEXPECTED ERROR OCCURRED ORA-01403 - NO
    DATA FOUND". This happens in more than one application where I set this type
    of link to call a form. Anyone have any ideas?!!

    Hi Andy,
    Thank you very much for your time!
    The fields in the form are all right. The fields get filled in perfectly in most of the cases, only those few rows don't :(
    However, now that you wrote of the process of row fetching, I think that maybe I have an idea of what is happening. My table has two primary keys (two fields together make the primary key, I don't know how it's called in English), one of them is a date. (I know that this is quite a bad practice, but, much to my regret, I cannot change it.) Now, this date is in YY-MON-DD format, which is used by my language.
    One of this dates is from 1800's. As my report shows it, the year gets truncated to the last two character. APEX passes this value into the field of the form using varchar2, and when it tries to cast it back to YY-MON-DD format, then it supposes it's from 1900's instead of 1800's. With 19xx however it doesn't find my field.
    Does this sound logical? It seems logical to me, but I am a beginner... :(
    Still, if this is the core of the problem, it's most possibly not the only problem, because I have dates from 19xx which can't identify their rows... But I am suspicious because of these date things. If you have any idea then please let me know.
    Thanks,
    Eszter

  • ORA-01403: no data found Error in PLSQL code raised during plug-in processing.

    Hello OTN community,
    We are having the access to APEX problem. a New user was setup to access the APEX application. When I test to login as a new user, I get the message "ORA-01403: no data found Error in PLSQL code raised during plug-in processing.". When click OK to the disply message, the application will take me out of the sstem. I need help to even understand what is happening. I didn't develop the application, there is no documentation for this application, I am just supporting the application whenever there is a problem and I am new to APEX. As you can see I need help to figure this thing out. Your help is dearly appreciated.
    Thank you OTN

    Try to check the query that is executed and check if there is data or not

  • ORA-01403: no data found (WWV-16016) error

    I have a very simple form with two fields. This form is opened in the update mode through a report which pass a parameter to the form. When I press 'Delete' button to delet the record, I get this error message:
    Error: An unexpected error occurred: ORA-01403: no data found (WWV-16016)
    But the record is actually deleted by this action.
    Does anyone know why and how to fix it?
    Thanks!

    I have the same problem when i call form based on procedure in insert mode. However, i can insert one record normally, when i try to insert another one, this error appears.
    This behavior is really extremly annoying and i would really like to know why this error apprears and how to get rid of it.
    Kind regards,
    Damjan
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by sz():
    I have a very simple form with two fields. This form is opened in the update mode through a report which pass a parameter to the form. When I press 'Delete' button to delet the record, I get this error message:
    Error: An unexpected error occurred: ORA-01403: no data found (WWV-16016)
    But the record is actually deleted by this action.
    Does anyone know why and how to fix it?
    Thanks!<HR></BLOCKQUOTE>
    null

  • Oracle error 1403:java.sql.SQLException: ORA-01403: no data found ORA-06512

    My customer has an issue, and error message as below:
    <PRE>Oracle error 1403: java.sql.SQLException: ORA-01403: no data found ORA-06512:
    at line 1 has been detected in FND_SESSION_MANAGEMENT.CHECK_SESSION. Your
    session is no longer valid.</PRE>
    Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
    And customer’s statement is: Upgrade from EBS 11.5.10 to 12.1.3. Login the EBS, open any forms and put it in idle. Then refresh the form, error happens
    Then, I checked ISP, and found two notes:
    Note 1284094.1: Web ADI Journal Upload Errors With ORA-01403 No Data Found ORA-06512 At Line Has Been Detected In FND_SESSION_MANAGEMENT.CHECK_SESSION.Your Session Is No Longer Valid (Doc ID 1284094.1)
    Note 1319380.1: Webadi Gl Journal Posting Errors After Atg R12.1.3 (Doc ID 1319380.1)
    But these two notes are both WebADI.
    Following is the data collection from customer:
    1. Run UNIX command to check .class file version:
    strings $JAVA_TOP/oracle/apps/bne/utilities/BneViewerUtils.class | grep Header--> S$Header: BneViewerUtils.java 120.33.12010000.17 2010/11/21 22:19:58 amgonzal s$
    2. Run SQL to check you patch level:
    SELECT * FROM fnd_product_installations WHERE patch_level LIKE '%BNE%';--> R12.BNE.B.3
    3. Run SQL to check patch '9940148' applied or not:
    SELECT * FROM ad_bugs ad WHERE ad.bug_number = '9940148';--> No Rows returned
    4. Run SQL to check patch '9785477' applied or not:
    SELECT * FROM ad_bugs WHERE bug_number in ('9785477');-->
    BUG_ID APPLICATION_SHORT_NAME BUG_NUMBER CREATION_DATE ARU_RELEASE_NAME CREATED_BY LAST_UPDATE_DATE LAST_UPDATED_BY TRACKABLE_ENTITY_ABBR BASELINE_NAME GENERIC_PATCH LANGUAGE
    576982 11839583 2011/8/7 上午 08:20:36 R12 5 2011/8/7 上午 08:20:36 5 pjt B n US
    516492 9785477 2011/6/12 上午 11:42:45 R12 5 2011/6/12 上午 11:42:45 5 bne B n US
    546109 9785477 2011/6/12 下午 01:17:41 R12 5 2011/6/12 下午 01:17:41 5 bne B n ZHT
    5. Run SQL to check the status of object ‘FND_SESSION_MANAGEMENT’
    SELECT * FROM dba_objects do WHERE do.object_name = 'FND_SESSION_MANAGEMENT';-->
    OWNER OBJECT_NAME SUBOBJECT_NAME OBJECT_ID DATA_OBJECT_ID OBJECT_TYPE CREATED LAST_DDL_TIME TIMESTAMP STATUS TEMPORARY GENERATED SECONDARY NAMESPACE EDITION_NAME
    APPS FND_SESSION_MANAGEMENT 219425 PACKAGE 2004/10/30 下午 01:52:35 2011/8/7 上午 08:18:39 2011-08-07:08:18:26 VALID N N N 1
    APPS FND_SESSION_MANAGEMENT 226815 PACKAGE BODY 2004/10/31 上午 01:05:40 2011/8/7 上午 08:18:54 2011-08-07:08:18:27 VALID N N N 2
    So, my question is: Customer’s BneViewerUtils.java version is already 120.33.12010000.17, which greater than 120.33.12010000.14. Is there any others solutions for this issue? Does customer still need to apply patch '9940148' based on action plan of
    Note 1284094.1: Web ADI Journal Upload Errors With ORA-01403 No Data Found ORA-06512 At Line Has Been Detected In FND_SESSION_MANAGEMENT.CHECK_SESSION.Your Session Is No Longer Valid?
    Customer's EBS version is 12.1.3; OS is HP-UX PA-RISC (64-bit); DB is 11.2.0.2.
    Thanks,
    Jackie

    And customer’s statement is: Upgrade from EBS 11.5.10 to 12.1.3. Login the EBS, open any forms and put it in idle. Then refresh the form, error happens
    Idle for how long? Is the issue with all sessions?
    Please see these docs/links
    User Sessions Get Timed Out Before Idle Time Parameter Values Are Reached [ID 1306678.1]
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Timeout+AND+R12&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Then, I checked ISP, and found two notes:
    Note 1284094.1: Web ADI Journal Upload Errors With ORA-01403 No Data Found ORA-06512 At Line Has Been Detected In FND_SESSION_MANAGEMENT.CHECK_SESSION.Your Session Is No Longer Valid (Doc ID 1284094.1)
    Note 1319380.1: Webadi Gl Journal Posting Errors After Atg R12.1.3 (Doc ID 1319380.1)
    But these two notes are both WebADI.Can you find any details about the error in Apache log files and in the application.log file?
    Any errors in the database log file?
    So, my question is: Customer’s BneViewerUtils.java version is already 120.33.12010000.17, which greater than 120.33.12010000.14. Is there any others solutions for this issue? No.
    Does customer still need to apply patch '9940148' based on action plan ofIf the issue not with Web ADI, then ignore this patch. However, if you use Web ADI you could query AD_BUGS table and verify if you have the patch applied.
    Note 1284094.1: Web ADI Journal Upload Errors With ORA-01403 No Data Found ORA-06512 At Line Has Been Detected In FND_SESSION_MANAGEMENT.CHECK_SESSION.Your Session Is No Longer Valid?
    Customer's EBS version is 12.1.3; OS is HP-UX PA-RISC (64-bit); DB is 11.2.0.2.If you could not find any details in the logs, please enable debug as per (R12, 12.1 - How To Enable and Collect Debug for HTTP, OC4J and OPMN [ID 422419.1]).
    Thanks,
    Hussein

  • Error in standard SIT form : ORA-01403: no data found

    Hi
    I have created a custom responsibility and menu.
    And attached the single seeded function "Enter Person Special Information" to the menu.
    Whenever I try to access the function it opens the FORMS and gives the error.
    ORA-01403: no data found
    FRM-40735: WHEN-NEW-FORM-INSTANCE trigger raised unhandled exception ORA-06502.
    Any ideas?

    Did you do as follows?
    Create a Menu ‘SIT_MENU’:
    Name: SIT_MENU
    User Menu Name: Enter Person Special Information
    Menu Type: Standard
    Desc: (optional)
    Seq: 1
    Prompt: Special Info Types
    Function: Enter Person Special Information
    2. Create Responsibility and attach the Menu as follows:
    Rsponsibility Name: SIT Responsibility
    Application: Human Resources
    Resp. Key: SIT
    Available From: Oracle Applications
    Data Group: Standard
    Application: Human Resources
    Menu: Enter Person Special Information
    Now you can attach this responsibility to a user and test.

  • ORA-01403 - No Data Found - Error processing validation

    Dear all
    I hope to find a solution for this error.
    ORA-01403 - No Data Found - Error processing validation
    Best Regards

    Dear Patrick,
    Thank you for your response.
    I solved or worked around the problem by adding exception handling lines to the end of all PL/SQL validation functions used in this page
    For example, if a function used in equation, it is not allowed to return null so I made it return 0 in case of exceptions (as in below code)
    -- NO_DATA_FOUND is ORA-01403
    EXCEPTION
    WHEN NO_DATA_FOUND THEN return(0);
    Sincerely Yours
    Mahmoud Rabie

  • Ora-01403 no data found cursor error - Please help.

    DECLARE
    name1 talent.candidate_name%TYPE; -- Declare variables
    name2 long; -- Declare variables
    emp_id talent_id.emplid%TYPE;
    NO_DATA_FOUND EXCEPTION;
    CURSOR c1 IS
    select candidate_name,(''''||trim(upper(candidate_name))||'''') as tst from talent ;
    BEGIN
    OPEN c1;
    LOOP
    FETCH c1 INTO name1, name2;
    EXIT WHEN c1%NOTFOUND; -- TRUE when FETCH finds no more rows
    select distinct emplid
    INTO emp_id
    from names a
    where a.name_type = 'PRI'
    and upper(a.last_name)||', '||upper(a.first_name) = name2;
    INSERT INTO talent_id VALUES (emp_id, name1);
    END LOOP;
    CLOSE c1;
    COMMIT;
    Question: Above queries prompt me error msg ora-01403 no data found for emplid. I try but fail to solve it. Please help me. Thank you
    Edited by: user12051088 on Mar 4, 2010 1:38 AM
    Edited by: user12051088 on Mar 4, 2010 1:40 AM

    Yes, this is very helpful :-)
    My testing to insert table where emplid is null but still having error ora-01403 no data found when i remove on dbms_output.put_line as shown below:
    Anyway, if i dint remove the dbms_output.put_line. It is working to insert emp_id is not null. How do I include record which emp_id is null? Thank you.
    begin
    select distinct emplid
    INTO emp_id
    from gdw_names a
    where a.name_type = 'PRI'
    and upper(a.last_name)||', '||upper(a.first_name) = name1;
    IF emp_id is null THEN
    RAISE no_data_found;
    else
    INSERT INTO gdw_talent_id VALUES (emp_id, name1);
    end if;
    exception
    when no_data_found then
    INSERT INTO gdw_talent_id VALUES (null, name1);
    --when too_many_rows then
    -- dbms_output.put_line('too many rows for ' || name1);
    -- when others then
    -- dbms_output.put_line('Unknown error for ' || name1);
    end;
    Edited by: user12051088 on Mar 4, 2010 9:11 PM

  • Error ORA-01403 no data found upgrade database to 10.2.0.3

    Hi,
    I am upgrading a database from 8.1.7.4 to 10.2.0.3. I install the software and i create and configure a new listener. When i am try to execute database upgrading assintant i can see my two databases but when i click one of them, and click next the error appears:
    ORA-01403 no data found
    ORA-06512 at line 1560
    I don´t know the reason.
    Thanks for your help.

    Going by your [earlier thread|http://forums.oracle.com/forums/thread.jspa?threadID=852649&tstart=0], I presume that it is you are now able to connect to a database using the 10.2.0.3 oracle_home.
    Did you run through the pre-upgrade verification steps at the URL provided earlier ?
    If you are encountering an error, surely you can post which script and which procedure is failing ?

  • ORA-01403: no data found while querying View

    Hello,
    I have a problem with querying a View which includes XML-Types.
    If the View is empty I get a white website with the following error-message: ORA-01403: no data found
    How can I implement my own error-website if no data was found??
    This is the way I querying my view:
    http://10.197.178.154:8080/oradb/LARA/ABSVALUES/ROW[VIN="ZHWGE11M14LA00031"]?rowsettag=LARA_DIAGNOSE&contenttype=text/html&transform=/LaRa/xsl/overviewabs1.xsl

    Hi Gourab
    You have posted this request to the wrong forum, so no one here will be able to help you.
    I believe the correct forum for the question you are asking is the EBS Financials forum:
    Financials
    Please try posting your query there, hopefully someone there will be able to help you.
    Regards
    Simon Kissane
    Oracle Support

  • ORA-01403 :no data found in apex

    dear all
    Please, not to view this thread as the contents are same posted in another thread with a different subject.
    i have a form with 6 regions.
    in one of the region i place a button save.
    i have a conditional process to insert the data in the table
    after entering the data into the respective fields when i click the save button
    it is giving this error.
    ORA-01403: no data found
    Error UNABLE TO INSERT
    OK
    what is this error why it is comming?
    how to solve it? if anyone gives solution it would be a bright day for me.
    Message was edited by:
    srikavi

    ORA-01403 occurs when an SQL SELECT statement written inside a PL/SQL proceedure/function etc is expected to return a row (or more) but doesn't.
    So, your code to save might read along the lines of:
    declare
    bar number;
    begin
    select foo into bar from foobar where id=1;
    insert into ... where id=bar;
    end;
    Now, if the SELECT statement didn't return a row (ie, in the example above there are no records with an id of 1) then you will get an ORA-01403 error.
    Look at your proceedure for saving and run any select statements seperately in a SQL editor and check that all return one or more rows.

  • "ORA-01403 no data found" on TableAdapter Update

    I have a C# application with an Oracle TableAdapter with which I am calling an insert function like this:
    mtTestResultsTableAdapter.InsertResults(grp_dscr, grp_id, tst_id, tran_type_dscr, tran_mod_dscr, tst_dts, c_rslt, vb6_rslt, cmp_rslt, c_tm, vb6_tm, tst_errs);
    I am getting Oracle exception "ORA-01403 no data found" on this call. I am not sure why I'm getting the error, this is the SQL it is supposed to run:
    INSERT INTO "TEST_UTIL_RESULTS" ("GRP_DSCR", "GRP_ID", "TST_ID", "TRAN_TYPE_DSCR", "TRAN_MOD_DSCR", "TST_DTS", "C#_RSLT", "VB6_RSLT", "CMP_RSLT", "C#_TM", "VB6_TM", "TST_ERRS") VALUES (:GRP_DSCR, :GRP_ID, :TST_ID, :TRAN_TYPE_DSCR, :TRAN_MOD_DSCR, :TST_DTS, :C#_RSLT, :VB6_RSLT, :CMP_RSLT, :C#_TM, :VB6_TM, :TST_ERRS)
    I ran the SQL directly from TOAD, and it worked fine with no issues. Maybe the TableAdapter is running some other sort of query before calling Insert?
    Everything I tried still gave me the same error. I posted this on MSDN but got no reply. It is very frustrating, has anyone encountered this, or does anyone have any idea how to debug this? Thank you in advance.

    I changed my function to use a Stored Procedure instead of direct sql, but that made no difference. I think the problem has something to do with the fact that 4 of the fields (C#_RSLTS, VB6_RSLTS, CMP_RSLTS, and TST_ERRS) are of type "Clob" in the DB. What do I need to do to get it to work with my Clob fields?

Maybe you are looking for

  • HElP!! BBM and Internet NOT working :(:(

    I recently upgraded my bbm about 3 days ago and ever since i rebooted my blackberry my bbm messages aren't sending they just come up with a red X! my bbm is also messed up it looks as if it has some glitches! I rebooted my blackberry took the battery

  • Opening a Somat .sie file in DIAdem takes forever

    Hi All, I'm new to DIAdem but know LabVIEW well. I am trying to open a Somat .sie file. I have the Somat .sie data plugin installed and DIAdem sees the file fine but it takes forever to load. The file opens fine using SoMat InField (and very quickly)

  • So many MBs!!!  The download bar for the Adobe Photoshop CS6 Design and Web Premium is 4,565 MB!

    Can the Adobe Photoshop Trial Version of CS6 Design and Web Premium really take up over 4500 MB of space and take 2 hours to download???

  • Can I back up if my iphone 4s has frozen in recovery mode?

    This might be a dumb question but before I restore factory settings is there anyway i can back up my data ? At the moment my phone is frozen on the itunes screen and itunes (on my PC) is saying 'detected iphone in recovery mode. You must restore this

  • IPad Message App Slow Response

    Hello there, My iPad Air 2 (iOS 8.3) is having an issue with the Messages app. When I open the app to look at the messages I have, it becomes very slow and there is a lag when you click around and try and view my message threads. I've had this issue