Please check the below Cursor Procedure and correct that code Please

Hai Every One.
Please check the below code I have two issues in that code
1. Invalid cursor
2. Record must be enter
Please correct this code and send me pls its urgent.I cont understand where i done mistake
PROCEDURE fetch_detail_PROC IS
cursor c1 is select * from quota_mast where quota_mast.divn=:quota_mast.divn and quota_mast.QUOT_tyPE=:quota_mast.QUOT_tyPE and quota_mast.INQNO=:quota_mast.INQNO;
cursor c6 is select * from quota_det
where quota_det.divn=:quota_mast.divn AND quota_det.QUOT_TYPE=:quota_mast.QUOT_tyPE and quota_det.enq_num=:quota_mast.INQNO
ORDER BY quota_det.quot_no;
--cursor c5 is select * from acc_mst where cdp=:quota_mast.ccdp and divn=:quota_mast.divn;
--vn acc_mst%rowtype;
i quota_mast%rowtype;
detail1 quota_det%rowtype;
BEGIN
     GO_BLOCK('quota_mast');
for i in c1 LOOP
          :quota_mast.INQNO:=i.INQNO;
                    :quota_mast.DIVN:=i.DIVN;
               :quota_mast.QUOT_NO:=i.QUOT_NO;
                    :quota_mast.quot_type:=i.quot_type;
                    :quota_mast.CCDP:=i.CCDP;
                    select nm into :QUOTA_MAST.PARTY_NAME from acc_mst where acc_mst.DIVN=:QUOTA_MAST.DIVN AND acc_mst.cdp=:ccdp;
                    :quota_mast.pak_for:=i.pack_for_PER;
                    :quota_mast.exc_duty:=i.exc_duty_PER;
                    :quota_mast.vat:=i.vat_PER;
                    :quota_mast.cst:=i.cst_PER;
                    :quota_mast.wct:=i.wct_PER;
                    :quota_mast.ser_tax:=i.ser_tax_PER;
                    :quota_mast.insu:=i.insu_PER;
                    :quota_mast.tot_tax:=i.tot_tax;
                    :quota_mast.tot_val:=i.tot_val;
               :quota_mast.value:=i.value;
                              next_record;
end loop;
     first_record;
GO_BLOCK('quota_det');
               for detail1 in c6
          loop
                    :quota_det.quot_no:=detail1.quot_no;
          :quota_det.ENQ_NUM:=detail1.enq_num;
          :quota_det.item_code:=detail1.item_code;
          SELECT ITNM into :NM FROM itm_MST WHERE DIVN=:quota_mast.DIVN AND iCDP=:ITEM_CODE;
          :quota_det.price:=detail1.price;
          :quota_det.qty:=detail1.qty;
          :quota_det.DISC_PER:=detail1.DISC_PER;
               next_record;
END LOOP;
     first_record;
close c6;
--close c1;
exception
when others then
message(sqlerrm);
message(' ');
END;
Thank you..

Oracle Forms is closely tied to the database meaning you can base your data blocks on your tables and Forms will handle fetching the data. I agree with Christian, your tables lend themselves to using a master - detail configuration and if you need to filter your block then you can use the Data Block WHERE Clause property.
Please correct this code and send me pls its urgent.As to the urgency of your request, the forum is a community of "Volunteers." Enough said.
Regarding your code, I see a several potential problems.
First, how are your QUOTA_MAST and QUOTA_DET blocks synchronized? Are you using a block relationship? Are you using a combination of triggers to synchonize the QUOTA_DET block when you user navigates to a different record in the QUOTA_MAST block?
Second, your Procedure name is "Fetch_Detail_Proc" but you are also fetching Master data as well. What is the purpose of your procedure and where do you call this procedure?
Third, you're using SELECT * in your cursor queries. You should always explicitly name each column. What happens when your table changes and you need to search your code for a column that was dropped?
Fourth, your cursor queries are referencing the same data blocks you are fetching data to populate. This gives the impression that you already have data in your block. This doesn't make sense - could you explain what you are trying to accomplish?
Fifth, with respects to your code, the "Invalid Cursor" error (is this really the error you're getting?) is most likely caused by your explicit call to close the C1 cursor. As Andreas stated, when using a CURSOR FOR LOOP, the cursor is automatically opened, fetched and closed using this construct. There is no need to explicitly close the cursor, in fact - doing so will result in an invalid cursor error.
As to the "Record must be entered" error, is sounds like you have required items in your block or your QUOTA_MAST block is not synchronized with your QUOTA_DET block, so when you attempt to navigate to a different block or record within your the same block the navigation cursor can't move because you haven't entered data that is required.
Please tell us what you are attempting to do with this code so we can tell you if you are using the correct method.
Craig...

Similar Messages

  • An unexpected error occurred processing your request. Check the logs for details and correct the problem.

    Hi All,
    I am configuring RSS Viewer webpart to SP 2013. 
    But i am getting an error "An unexpected error occurred processing your request. Check the logs for details and correct the problem."
    I looked for solution of this error. i got to know, we need to set proxy server in web.config file.
    So, in order to resolve this i put the following set of code in web.config and save the file
    <system.net>
        <defaultProxy>
          <proxy usesystemdefault="True" proxyaddress="http://myproxyserver" bypassonlocal="True" />      
        </defaultProxy>
      </system.net>
    But, still i am getting the error. 
    What could be the problem now. 
    Any help is much appreciated. 
    Thanks,
    Rakesh

    Hi Rakesh,
    According to your description, my understanding is that you got an error when you used RSS viewer web part in SharePoint 2013.
    The RSS viewer web part uses authentication delegation and is using the current user's credentials to access the proxy. However, the RSS viewer only supports anonymous and Kerberos authentication. So if you are using NTLM authentication, the RSS viewer will
    not be able to authenticate the user through the proxy. More information, please refer to the link:
    http://kalsing.blogspot.com/2007/11/troubleshooting-rss-viewer-web-part.html
    Also see:
    http://blogs.technet.com/b/sharepointdse/archive/2007/04/13/fun-with-rss.aspx
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Help-Task not found - Please check the Task Type, Name and Location are cor

    HI all,
    i have upgraded my owb from version 11gr1 to 11gr2. the installation is complete and all my mappings and objects are imported successfully.
    i was able to execute the mappings using the sql code:
    @/oracle/product/11.2.0/owb/rtp/sql/sqlplus_exec_template.sql
    by logging into sqlplus as the user in whose schema mappings are deployed.
    hOwever, suddenly i am getting the error since sometime back - not sure what might have happened or what might have gone wrong. can someone please help me understand what might be wrong - how to decode this?
    Here is my error:
    @/oracle/product/11.2.0/owb/rtp/sql/sqlplus_exec_template.sql
    Role set.
    Enter value for 1: WSODS
    Call completed.
    Enter value for 2: ODS_SCHEMA
    Enter value for 3: PLSQLMAP
    Enter value for 4: MAPPING_1
    Enter value for 6: ","
    Enter value for 5: ","
    Stage 1: Decoding Parameters
    |  location_name=ODS_SCHEMA
    |  task_type=PLSQLMAP
    |  task_name=MAPPING_1
    Stage 2: Opening Task
    begin
    ERROR at line 1:
    ORA-20001: Task not found - Please check the Task Type, Name and Location are
    correct.
    ORA-06512: at "OWBSYS.WB_RT_API_EXEC", line 759
    ORA-06512: at "OWBSYS.WB_RT_SCRIPT_UTIL", line 910
    ORA-06512: at line 2When i execute this: i get the result as follows:
    SELECT warehouse_object_id, store_id, object_type_id, object_type_name, object_name FROM owb$wb_rt_warehouse_objects
    where object_name = 'MAPPING_1';
    WAREHOUSE_OBJECT_ID     STORE_ID                OBJECT_TYPE_ID          OBJECT_TYPE_NAME                                                 OBJECT_NAME                                                     
    15947                   15325                   769                     PLSQLMap                                                         MAPPING_1                                                       
    1 rows selectedEdited by: Chaitanya on Mar 5, 2012 3:33 AM

    Hi Chaitanya,
    Did you get any resolution for this error? I'm facing the same error while trying to execute OWB mapping through this command.
    Any help would be much appreciated. Thanks.
    Regards,
    Jagari

  • Hello my name is vicky i have an ipod classic 160 gb  when im syncing songs to ipod classic it is get stucked and a small noise is coming from back endof the ipod  i even checked the number of reallocs and pending sectors so please help me......for t

    hello my name is vicky i have an ipod classic 160 gb  when im syncing songs to ipod classic it is get stucked and a small noise is coming from back endof the ipod  i even checked the number of reallocs and pending sectors so please help me......for this

    Make an appointment at the genius bar.
    If you went without an appointment, then it would make sense that you could be turned away.

  • I resets my iphone without disabling touch ID lock, it restarts, apple logo appears, and it stays like that, it never starts till now, just the apple logo appears and stays that way, please give a solution???

    I resets my iphone without disabling touch ID lock, it restarts, apple logo appears, and it stays like that, it never starts till now, just the apple logo and stays that way, please give a solution???

    Hi ahmedsgh,
    I'm sorry to hear you are having issues with your iPhone. If it isn't responding or starting up past the Apple logo screen, you may find the troubleshooting steps outlined in the following article helpful, in particular this portion:
    If your device gets stuck during startup
    When starting up, you might see the Apple logo or a red or blue screen for a long time, or your device might restart again. Try these steps:
    Make sure that you have iTunes 12 or later on your computer.
    Put your device in recovery mode.
    When you get the option to restore or update, select Update. This will reinstall iOS without erasing your data.
    If your iPhone, iPad, or iPod touch doesn't respond or doesn't turn on - Apple Support
    Regards,
    - Brenden

  • Please check the LIVE CHAT Record and return my money back.

    This is the situation.
    My 2-year contract ended on 1-15-2015, and I ordered a new device iphone 6 plus (64G) on 1-13-2015 and selected Edge plan (I line, 1GB data, unlimited call and message from 1-15-2015, totally price $80/ month). I had a live chat with a lady and a man, and also confirmed it with call. 
    Now I found that the bill became $183 !!!  6GB data is stead of 1GB. The stupid thing is that I paid the same amount ($183) last month as I thought first month charged more because of handing fee.... Now this month It also 183. So I contact with LIVE chat person and ask them to check the LIVE CHAT record to compensate the losses. They told me that they can't enter the record and can't make this remedy. 
    So, why do I need take resposible for this mistake? Why do I need pay $200 more? Why can't your guys see the record and find the evidences? Actually I only use 20% data of 1GB, why you HELP me order 6GB? 
    Solved!
    Go to Solution.

    Welcome to the forums.  You're talking to other users here.  Further, your talking to users of Verizon's fixed location residential services including FiOS, DSL and telephone.  Your issue is with Verizon Wireless.  Visit their web site for support options.
    http://www.verizonwireless.com/
    Good Luck.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.

  • BAM Connection in 12C -  Failed to establish a connection to localhost at port 7004.Please verify the Bam server host and JNDI port.

    Hi,
    BAM server is running on 7004 in our local system.
    We need o connect to BAM server from OSB service.
    We tried to use the BAM adapter in the pipeline in 12c, We received Failed to establish a connection to localhost at port 7004.Please verify the Bam server host and JNDI port.
    Please let us know the resolution to this issue.
    Also please provide some links/steps to connect from OSB service to BAM server in 12c.
    Thanks,

    In BAM 12c, you can send data via JMS by configuring an EMS in BAM using the "self-described" payload. Make sure the date formats match correctly. You can configure an error queue which will show you any data parsing problems.
    For example,
    <msgRoot dataObjectName="Student" operationType="insert" keys="RequestId">
       <RequestId>R1000</RequestId>
       <StudentId>S12345</StudentId>
       <RequestType>Admission</RequestType>
       <RequestStatus>Open</RequestStatus>
       <RequestMessage>Please Admin</RequestMessage>
       <RequestCode>3</RequestCode>
       <SubmitTime>2015-03-17 18:23:07</SubmitTime>
       <ApprovalTime>2015-02-18 18:23:07</ApprovalTime>
    </msgRoot>

  • SharePoint PPS 2013 Dashboard Designer error "Please check the data source for any unsaved changes and click on Test Data Source button"

    Hi,
    I am getting below error in SharePoint PPS 2013 Dashboard Designer. While create the Analysis Service by using "PROVIDER="MSOLAP";DATA SOURCE="http://testpivot2013:9090/Source%20Documents/TestSSource.xlsx"
    "An error occurred connecting to this data source. Please check the data source for any unsaved changes and click on Test Data Source button to confirm connection to the data source. "
    I have checked all the Sites and done all the steps also. But still getting the error.Its frustrating like anything. Everything is configured correctly but still getting this error.
    Thanks in advance.
    Poomani Sankaran

    Hi Poomani,
    Thanks for posting your issue,
    you must have to Install SQL Server 2012 ADOMD.Net  on your machine and find the browse the below mentioned URL to create SharePoint Dashboard with Analysis service step by step.
    http://www.c-sharpcorner.com/UploadFile/a9d961/create-an-analysis-service-data-source-connection-using-shar/
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • Dynamic Calc processor cannot lock more than [100] ESM blocks during the calculation, please increase CalcLockBlock setting and then retry(a small data cache setting could also cause this problem, please check the data cache size setting).

    Hi,
    Our Environment is Essbase 11.1.2.2 and working on Essbase EAS and Shared Services components.One of our user tried to run the Cal Script of one Application and faced this error.
    Dynamic Calc processor cannot lock more than [100] ESM blocks during the calculation, please increase CalcLockBlock setting and then retry(a small data cache setting could also cause this problem, please check the data cache size setting).
    I have done some Google and found that we need to add something in Essbase.cfg file like below.
    1012704 Dynamic Calc processor cannot lock more than number ESM blocks during the calculation, please increase CalcLockBlock setting and then retry (a small data cache setting could also cause this problem, please check the data cache size setting).
    Possible Problems
    Analytic Services could not lock enough blocks to perform the calculation.
    Possible Solutions
    Increase the number of blocks that Analytic Services can allocate for a calculation:
    Set the maximum number of blocks that Analytic Services can allocate to at least 500. 
    If you do not have an $ARBORPATH/bin/essbase.cfg file on the server computer, create one using a text editor.
    In the essbase.cfg file on the server computer, set CALCLOCKBLOCKHIGH to 500.
    Stop and restart Analytic Server.
    Add the SET LOCKBLOCK HIGH command to the beginning of the calculation script.
    Set the data cache large enough to hold all the blocks specified in the CALCLOCKBLOCKHIGH setting. 
    Determine the block size.
    Set the data catche size.
    Actually in our Server Config file(essbase.cfg) we dont have below data  added.
    CalcLockBlockHigh 2000
    CalcLockBlockDefault 200
    CalcLockBlocklow 50
    So my doubt is if we edit the Essbase.cfg file and add the above settings and restart the services will it work?  and if so why should we change the Server config file if the problem is with one application Cal Script. Please guide me how to proceed.
    Regards,
    Naveen

    Your calculation needs to hold more blocks in memory than your current set up allows.
    From the docs (quoting so I don't have to write it, not to be a smarta***:
    CALCLOCKBLOCK specifies the number of blocks that can be fixed at each level of the SET LOCKBLOCK HIGH | DEFAULT | LOW calculation script command.
    When a block is calculated, Essbase fixes (gets addressability to) the block along with the blocks containing its children. Essbase calculates the block and then releases it along with the blocks containing its children. By default, Essbase allows up to 100 blocks to be fixed concurrently when calculating a block. This is sufficient for most database calculations. However, you may want to set a number higher than 100 if you are consolidating very large numbers of children in a formula calculation. This ensures that Essbase can fix all the required blocks when calculating a data block and that performance will not be impaired.
    Example
    If the essbase.cfg file contains the following settings:
    CALCLOCKBLOCKHIGH 500  CALCLOCKBLOCKDEFAULT 200  CALCLOCKBLOCKLOW 50 
    then you can use the following SET LOCKBLOCK setting commands in a calculation script:
    SET LOCKBLOCK HIGH; 
    means that Essbase can fix up to 500 data blocks when calculating one block.
    Support doc is saying to change your config file so those settings can be made available for any calc script to use.
    On a side note, if this was working previously and now isn't then it is worth investigating if this is simply due to standard growth or a recent change that has made an unexpected significant impact.

  • Why does it say my coupon code is "Invalid coupon code. Please check the coupon code and re-enter."

    When I enter my coupon code to get my serial number it says "Invalid coupon code. Please check the coupon code and re-enter." It is the correct coupon code. And I have just deactivated my lisence on my old computer.

    If you had not deactivated it on the old computer and it is a Windows machine there would have been a chance of getting it using Belarc Advisor
    (http://www.belarc.com/free_download.html).  I do not know if you can still do so.
    You can try contacting Adobe support via chat and see if they can help.
    Serial number and activation chat support (non-CC)
    http://helpx.adobe.com/x-productkb/global/service1.html ( http://adobe.ly/1aYjbSC )

  • There was a problem connecting to the server "Time Capsule".  The share does not exist on the server. Please check the share name, and then try again.

    The following error pop's up as an [OK] dialogue box after logging in the iMac,
    There was a problem connecting to the server "Time Capsule".
    The share does not exist on the server. Please check the share name, and then try again."
    As it happens, a connection to the Time Capsule is established usually, anyway. On occasion it doesn't.
    I have a Volume, Data, on the capsule, which similarly, usually mounts, but occassionally doesn't, with access permissions denied.
    Any suggestions on how begin to work out how to achieve networking seamlesness?

    First, restart the Time Capsule by disconnecting the power adapter and reconnecting it. If other devices on the network can see it, you can skip this step.
    From the menu bar, select
     ▹ System Preferences ▹ Network
    Click the lock icon in the lower left corner of the window and authenticate to unlock the settings, if necessary. Click the Advanced button, then select the TCP/IP tab in the sheet that drops down. Click Renew DHCP lease.
    Try again to back up.
    If you still can't, open the Time Machine preference pane and delete the TC from the list of backup destinations. You may have to unlock the settings by clicking the lock icon in order to do this. Then add it back.

  • An error occurred while sending mail. The mail server responded: Administrative prohibition. Please check the message and try again.

    An error occurred while sending mail. The mail server responded: Administrative prohibition. Please check the message and try again.
    Somtimes it says it spam also......

    The error message is being generated by your email provider's server. Best to ask them what they do not like about your messages and how to solve the problem.

  • What does this mean? The mail server responded: Too many messages. Please check the message and try again.

    I use BT yahoo mail with Thunderbird 24.6.0 in the last few days i've started getting this message when sending messages:
    An error occurred while sending mail. The mail server responded: Too many messages. Please check the message and try again.
    Now sometimes the messages are sent anyway and sometimes not. If I re-send sometimes it works and sometimes not. I've contacted BT 'tech support' who tell me there is nothing wrong with them or their servers and as webmail works ok they won't help. I strongly suspect it IS a BT issue, Any clues to fix this?

    The message means BT are lying basically. I have just spent the best part of an hour on chasing what limits BT place on mail sending... the internet contains a void.
    The closest thing I can locate is a BT rep here https://community.bt.com/t5/Email/E-Mail-message-limit/m-p/1045228/highlight/true#M17523 refusing to identify what limits they impose but advising their switch to critical path has more stringent controls. AFAIK Critical path is ca mail software solution sold by OpenWave Messaging http://owmessaging.com/
    So your paying for a totally undefined service. Congratulations!

  • I just purchased a Canon 7D Mark II, new DellXPS and the Lightroom 5.2.  The Lighthouse is not openinging the 7DMark II but does open the older 7D that I imported.  I checked the Abode update page and do not see one for the 7D Mark II.  Please say it is t

    I just purchased a Canon 7D Mark II, new DellXPS and the Lightroom 5.2.  The Lighthouse is not openinging the 7DMark II but does open the older 7D that I imported.  I checked the Abode update page and do not see one for the 7D Mark II.  Please say it is there - if not when.  I am "on hold till its done.  Thanks.

    Update to the current release, which is Lightroom 5.7.1. You can do this from the Lightroom help menu and choosing updates.

  • HT4972 Hi! I have tried to update OS from 4.3.5 to latest on Ipod touch but every time after 70% completing an error is prompted and say update cannot be completed. Please check the setting. Please guide in this respect to be updated.

    Hi!
    I have tried to update OS from 4.3.5 to latest on Ipod touch but every time after 70% completing an error is prompted and say update cannot be completed. Please check the setting. Please guide in this respect to be updated.

    Disable the computer's firewall and antivirus during the download and update.

Maybe you are looking for