Invalid cursor. dont understand why

i keep getting invalid cursor near the fetch. i dont understand why. appreicate any help.
declare
  -- Local variables here
  o_errorcode NUMBER;
  o_errortext VARCHAR2(1000);
  i_CustomerLoop NBK.Pkgcommon.T_CUSTOMERLOOPTYPE;
  o_loopid number;
  FUNCTION createCustomerLoopObj(in_Loopid  IN NUMBER,
                                 inTestCAse IN VARCHAR2)
    RETURN NBK.Pkgcommon.T_CUSTOMERLOOPTYPE IS
    J_CustomerLoop NBK.Pkgcommon.T_CUSTOMERLOOPTYPE;
    co_clli        open_interface.WDN_segment.co_clli%type;
    termsysid      open_interface.WDN_segment.termsysid%type;
    cable          open_interface.WDN_segment.cable%type;
    pair           open_interface.WDN_segment.low_pair%type;
    v_cntLoops     number := 0;
    CURSOR v_CustomerLoops IS
      select seg_f1.termsysid,
             seg_f1.cable,
             round((seg_f1.low_pair + seg_f1.high_pair) / 2),
             seg_f1.co_clli
        FROM open_interface.WDN_segment                  seg_f1,
             open_interface.WDN_loop_segment_association assoc_f1,
             open_interface.WDN_potential_loop_makeup    loop_f1
       where seg_f1.segment_id = assoc_f1.segment_id
         and assoc_f1.loopid = loop_f1.loopid
         and loop_f1.loopid = in_Loopid -- 44441549
       order by assoc_f1.segment_number asc;
  BEGIN
    loop
      fetch v_CustomerLoops
        into termsysid, cable, pair, co_clli;
      exit when v_CustomerLoops%notfound;
      begin
        v_cntLoops := v_cntLoops + 1;
        J_CustomerLoop(v_cntLoops).Cable := cable;
        J_CustomerLoop(v_cntLoops).Pair := pair;     
        J_CustomerLoop(v_cntLoops).CentralOfficeName := co_clli;
        J_CustomerLoop(v_cntLoops).TerminalDeviceID := termsysid;
      exception
        WHEN no_data_found THEN
          dbms_output.put_line('no data found loopid ' || in_Loopid ||
                               ' TestCASE' || inTestCAse);
        WHEN OTHERS THEN
          dbms_output.put_line('OTHER ERROR  loopid ' || in_Loopid || ' ' ||
                               SQLERRM || SQLCODE || 'TestCASE' ||
                               inTestCAse);
      end;
    end loop;
    close v_CustomerLoops;
    RETURN J_CustomerLoop;
  end createCustomerLoopObj;
begin
  i_CustomerLoop := createCustomerLoopObj(44441549, 'tc');
end;

10 Points to you. ;)
Regards.
Satyaki De.

Similar Messages

  • When I click on apps in Creative Cloud (via taskbar icon) it shows only Photoshop CC as installed and Lightroom as something to be installed!  I already have LR 5.7 installed and this has been updated through CC.  I dont understand why it's now showing as

    When I click on apps in Creative Cloud (via taskbar icon) it shows only Photoshop CC as installed and Lightroom as something to be installed!  I already have LR 5.7 installed and this has been updated through CC.  I dont understand why it's now showing as it needs to be installed!?!?  It wasn't like this the last time I looked.

    Hi,
    Please refer to the help document:
    Apps panel doesn't show installed Creative Cloud apps
    Regards,
    Sheena

  • Entire days of pictures are not loaded on iCloud, while most of the days are loaded. Weeks has passed, while I was connected to wireless, so I dont understand why still emtire days are missing...

    Entire days of pictures are not loaded on iCloud, while most of the days are loaded. Weeks has passed, while I was connected to wireless, so I dont understand why still entire days are missing...

    I noticed an entire series of its always sunny in philadelphia is missing from my apple tv "purchased" section where i can stream it directly from itunes...I just purchased the new season and not showing at all

  • Why cant apple track my stolen iphone if it connects to the internet after reset. the IMEI number stays the same so i dont understand why they just dont shut it off and call me and the police to inform me about the whereabouts of the phone

    Hi, my iphone was stolen around a month ago. After the phone popped up on find my iphone in central london the police decided to be really helpful and instead going to get it they closed my case. Since then it has been offline because the "lovely" individual who stole it obviously reset it. I was just wondering why doesnt apple track phones through the IMEI number. The number stays the same, so if the phone connects to the network they should be able to know that its my stolen iphone. I just dont understand why they dont do that. They have a huge ecosystem, and if someone signs in to my iphone with their itunes account (which they pretty much have to in order to use most of the phones features) the IMEI number gets associated with that perticular account. Would it not be possible for them to realize that its my stolen phone?
    Thanks to anyone that answers.

    Your carrier can lock the IMEI number, try contacting them. At least you'll have the satifsaction of knowing the theif can't use it anymore. My guess is Apple doesn't block IMEI numbers because they don't want someone selling a phone without record, and then reporting it stolen and causing problems that way. But that's just a guess, I feel for ya. Good luck either way, if it's a locked phone you should be able to call the carrier it's locked to and have the IMEI blocked.

  • I dont understand why my ipod says it has 8gb but holds 6.36gb capacity and it always says over capacity by 35.4mb and i deleted lots of my apps but it keeps doing the same thing soo annoying .

    I dont understand why my ipod says it has 8gb but holds 6.36gb capacity and it always says over capacity by 35.4mb and i deleted lots of my apps but it keeps doing the same thing soo annoying . ANYONE KNOWS WHY?!

    I had a similar problem and after deleting endlessly...and weeks of frustration I (without even realizing what I was on to) deleted my text messages. I had been letting them add up since it seemed easier to text someone if it were readily available. Needless to say, I ended up with nearly double the space/memory available.

  • I dont understand why i cant download this album when i payed

    i dont understand why i cant download this album when i payed

    i payed 12.99 & its telling me purchased ? but it takes forever to download even with wifi ? .

  • In the attached VI I dont understand why data from the inner case structures are not being transmitted to the array.

    In the attached VI I don't understand why data from the inner case structures are not being transmitted to the array.
    Thank you.
    Solved!
    Go to Solution.
    Attachments:
    TEMP.vi ‏25 KB

    It took me some time to figure what you are trying to do but I think I have it now.
    The SR is still required.
    What is happening is your "Bundle By Name" is replacing all of the fields of the cluster, not just the value coming out of the case structure. So to maintain the cluster stuff you do in earlier iterations you can either...
    1) Put the "Index array, Bundle by name, and Replace array" inside the case structure and ONLY bundle the value you are setting in that iteration. (as you will see Tim post shortly)
    OR
    2) Move the Index array before the Case, unbundle all of the fields and feed teh case structure and run them across the case so that ALL of your output tunnels come from the coresponding input tunnel EXCEPT for the filed you are trying to set.
    Ben
    Message Edited by Ben on 05-05-2010 01:31 PM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Automatic payments refused (dont understand why)

    Dear all,
    I have a problem in paying for my skype fee. I have entered a valid credit card (master card) and it has always worked.Since it was refused, I entered the same credit card number again and nothing seems to change. I am lost, do not understand why my credit card number is refused and see no other ways to pay for it.
    My skype name: [Removed for privacy]

    please contact Skype customer service
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • Dont Understand Why This Text Wont Load .....

    Hi All
    I'm having trouble loading a text document and cant understand why ... Any thoughts please ?
    Code:
    <s:NavigatorContent xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/mx"
    xmlns:v="Views.*"
    width="900" height="100%"
    creationComplete="loadTXT(event)">
    <fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <fx:Metadata>
    [Event(name="", type="")]
    </fx:Metadata>
    <fx:Script>
    <![CDATA[
    import mx.controls.Alert;
    private function loadTXT(event:Event):void
    var loader:URLLoader = new URLLoader();
    loader.load(new URLRequest("Data/Text/WT_Intro.txt"));
    loader.addEventListener(Event.COMPLETE, onComplete);
    private function onComplete(event:Event):void
    var myData:String = new String(event.target.data)
    whitetimeIntroTXT.text = myData;
    ]]>
    </fx:Script>
    <s:layout>
    <s:HorizontalLayout horizontalAlign="center" verticalAlign="middle" />
    </s:layout>
    <s:BorderContainer width="100%" height="100%">
    <s:layout>
    <s:VerticalLayout verticalAlign="top" horizontalAlign="center" paddingBottom="10" paddingTop="10" />
    </s:layout>
    <s:TextArea id="whitetimeIntroTXT" width="400" height="100%"/>
    </s:BorderContainer>
    <s:BorderContainer width="275" height="100%">
    <s:layout>
    <s:VerticalLayout verticalAlign="top" horizontalAlign="center" />
    </s:layout>
    </s:BorderContainer>
    </s:NavigatorContent> 
    Many Thanks

    Perhaps you can try a higher depth depth=10.  This will work if the text is actually loading, but behind another object.  If the text is actually not loading, then this won't help.
    Good luck.

  • Dont' Understand Why getURL is not working

    When testing my Flash movie on my computer, all of the getURL
    links work perfectly, and worked on exported movie .swf which was
    loaded onto server and veiwed by another on their system. Now that
    it has been added to web page, the animation is running fine, but
    the getURL is not working. (They were assigned to buttons.) I am
    new to Flash and have no clue why it's working in test but not on
    web page.

    on (release) {
    //Goto Webpage Behavior
    getURL("
    http://","_self");
    //End Behavior
    I put in the full path of where to go after "
    http:// followed by the ", "_self");
    I am using Flash8.
    I am also finding out it could be an embedding issue on the
    site it has been put on, but won't know for sure until later.
    Hopefully that will resolve it. Thanks for your reply
    Macron.

  • My DAQ wont start, and I dont understand why?

    Hello,
    I'm writing software for a lab that I'm working in and I'm having a little trouble with a section of my code dealing with myDAQ. The goal is to use this DAQ to activate a minishaker device. Everything was working well but to fix a timing issue I changed the set up of the loop running myDAQ, and I'm wondering why my device no longer works. I've tested it using another program that controlls the device and it works on that so its not a hardware issue. I've  attached the section of my code that isnt functioning and I would really appreciate any pointers you can give me. (I kudos frequently)
    "There will be water if God wills it"
    Attachments:
    test.zip ‏21 KB

    Ah... I found my problem. No need to respond if anyone sees this.
    "There will be water if God wills it"

  • I dont understand why i get this error when trying to type "else"

    Hello Everybody,
    Im new to java and am writing a simple program which gets a input number between 0 and 100 and is to print A for (grade>=90), B for (90>grade>=80) and so on, when grades < 60 get F.
    i use a series of if/else, but when i get to the FINAL else it gets an error (red wavy line under the last else). this ruins the program bcoz now a grade 61 will output "D" AND "F".
    can anyone explaing why this error msg? and how can i fix it?
    this is the code:
    public class Assignment02Q04 {
         public static void main (String[] args){
              int grade = (Integer.parseInt(args[0]));
              if (grade >= 90){
                   System.out.println("A");}
                        else {if (grade >= 80){
                        System.out.println("B");}
                             else {if (grade >= 70){
                             System.out.println("C");}
                             else {if (grade >=60);{
                                  System.out.println("D");}
                             else System.out.print("F");
         }

    Please ignore the rude bits... this is a pro-forma post most often trotted out to suspected trolls... i.e. It's NOT directed at you personally.
    h1. The Ubiquitous Newbie Tips
    * DON'T SHOUT!!!
    * Homework dumps will be flamed mercilessly.
    * Have a quick scan through the [Forum FAQ's|http://wikis.sun.com/display/SunForums/Forums.sun.com+FAQ].
    h5. Ask a good question
    * Don't forget to actually ask a question. No, The subject line doesn't count.
    * Ask once
        - Don't Crosspost!
        - Two people answering one question independantly is a waste of there time.
    * Don't even talk to me until you've:
        (a) [googled it|http://www.google.com.au/] and
        (b) looked it up in [Sun's Java Tutorials|http://java.sun.com/docs/books/tutorial/] and
        (c) read the relevant section of the [API Docs|http://java.sun.com/javase/6/docs/api/index-files/index-1.html] and maybe even
        (d) referred to the JLS (for "advanced" questions).
    * [Good questions|http://www.catb.org/~esr/faqs/smart-questions.html#intro] get better Answers. It's a fact. Trust me on this one.
        - Lots of regulars on these forums simply don't read badly written questions. It's just too frustrating.
          - FFS spare us the SMS and L33t speak! Pull your pants up, and get a hair cut!
        - Often you discover your own mistake whilst forming a "Good question".
        - Many of the regulars on these forums will bend over backwards to help with a "Good question",
          especially to a nuggetty problem, because they're interested in the answer.
    * Improve your chances of getting laid tonight by writing an SSCCE
        - For you normal people, That's a: Short Self-Contained Compilable Example.
        - Short is sweet: No-one wants to wade through 5000 lines to find your syntax errors!
        - Often you discover your own mistake whilst writing an SSCCE.
        - Solving your own problem yields a sense of accomplishment ;-)
    h5. Formatting Matters
    * Post your code between a pair of &#123;code} tags
        - That is: &#123;code} ... your code goes here ... &#123;code}
        - This makes your code easier to read by preserving whitespace and highlighting java syntax.
        - Copy&paste your source code directly from your editor. The forum editor basically sucks.
        - The forums tabwidth is 8, as per [the java coding conventions|http://java.sun.com/docs/codeconv/].
          - Indents will go jagged if your tabwidth!=8 and you've mixed tabs and spaces.
          - Lines longer than 80 characters should be wrapped.
          - Proper indentation illustrates program logic.
    * Post your error messages between a pair of &#123;code} tags:
        - That is: &#123;code} ... errors here ... &#123;code}
        - To make it easier for us to find, Mark the erroneous line(s) in your source-code. For example:
            System.out.println("Your momma!); // <<<< ERROR 1
        - Note that error messages are rendered basically useless if the code has been
          modified AT ALL since the error message was produced.
        - Here's [How to read a stacktrace|http://www.0xcafefeed.com/2004/06/of-thread-dumps-and-stack-traces/].
    * The forum editor has a "Preview" pane. Use it.
        - If you're new around here you'll probably find the "Rich Text" view is easier to use.
        - WARNING: Swapping from "Plain Text" view to "Rich Text" scrambles the markup!
        - To see how a posted "special effect" is done, click reply then click the quote button.
    If you (the newbie) have covered these bases *you deserve, and can therefore expect, GOOD answers!*
    h1. The pledge!
    We the New To Java regulars do hereby pledge to refrain from flaming anybody, no matter how gumbyish the question, if the OP has demonstrably tried to cover these bases. The rest are fair game.
    Edited by: corlettk on 17/03/2009 23:25 ~~ Doh!

  • Dont understand why i got FRM-40735

    hi, i have this manual block which select data from DB like 'execute_query' (if automatic block).. i got the 'when-new-instance-block' and has a code 'select lastname,firstname into :blk_stud.lastname,:blk_stud.firstname from tbl_temp where exam_number=1' in it and it works fine.. now when i change the query and remove the where clause so i can recover all data im getting FRM-40735 'when-new-block-instance' raised unhandled exception ora-01422.
    hope to reciv some explanation asap.. tnx

    Hello,
    'select lastname,firstname into :blk_stud.lastname,:blk_stud.firstname from tbl_temp where exam_number=1'As you said you are using this code to retrieve data into the block in WHEN-NEW-FORM-INSTANCE so this query will retrieve only one records. Now if you will remove where clause then query will retrieve multiple records which are not supported in pl/sql. So for retrieving multiple reocords into the block you need to use the CURSOR and LOOP as andreas said...so code can be like this...
    DECLARE
      CURSOR Fetch_Rec IS
        select lastname,firstname
        from tbl_temp;
    BEGIN
      -- One way to use declaring cursor and using in loop
      GO_BLOCK('blk_stud');
      FOR Get_Rec IN Fetch_Rec LOOP
        :blk_stud.lastname:=get_rec.last_name;
        :blk_stud.firstname:=get_rec.firstname;
        NEXT_RECORD;
      END LOOP;
      FIRST_RECORD;
      -- Another way
      GO_BLOCK('blk_stud');
      FOR Get_Rec IN (select lastname,firstname from tbl_temp)  LOOP
        :blk_stud.lastname:=get_rec.last_name;
        :blk_stud.firstname:=get_rec.firstname;
        NEXT_RECORD;
      END LOOP;
      FIRST_RECORD;
    END;Hope it is clear now.
    -Ammad

  • I'm paying for BT Sport and dont understand why...

    Yet again, problems with BT billing. Every time my contract is renewed I have a problem.
    Nothing has changed with how I pay for BT. I have phone, pay line rental in advance, and have Infinity Option 2. My bb contract was renewed in June. This was arranged during a direct call from BT who said they were calling from Doncaster.
    I've just checked my bills and for the past two months I've been charged £6.75 for BT Sport.  At no point duriing the phone conversation was I informed about this charge.  I cancelled the HD option in August because I DID expect to pay for that after the first 12 months.
    If the £6.75 charge is correct, can someone please explain to me why I was never told either verbally or in writing that this charge would be made, and tell me how to cancel it.
    Really fed up once again with BT.
    Solved!
    Go to Solution.

    Just happened to je today suddenly I sm being charged even though my contract is in firce till next May. I despair.
    Life | 1967 Plus Radio | 1000 Classical Hits | Kafka's World
    Someone Solved Your Question?
    Please let other members know by clicking on ’Mark as Accepted Solution’
    Helpful Post?
    If a post has been helpful, say thanks by clicking the ratings star.

  • HT2371 everytime my apps need to be install .. it keep going to a different language when i keep it in english for everything .. and i dont understand why it have a different language when my default is english.. it only happen when the app want me to acc

    for ex:
    i go into family feud and when i sign into facebook it have  a different language.. and my default is english .
    it does that to every app i have.. and sometimes my browser is a diff language..knowing my ipod is english

    united state of america. new york city and app store the one that came with the ipod touch

Maybe you are looking for

  • Problem with maintaince view

    Hi All, I have created a maintainance view for a custom table and attached that to a Tcode. I am calling the Tcode in my program. I am able to get the maintainance view where i can add, delete, etc for the table. But the tabs of the SAP standard tool

  • M4500

    Hi there. I've a problem with my speakers. Some speakers looking like subwoofer but its not a subwoofer. Windows want seeing a subwoofer. 2 of speakers turn off, not working. Here is my jack connection capture : http://img522.imageshack.us/img522/8..

  • Repair the white screen in ipod touch

    i want to fix my ipod.} how to fis the white screem in mi ipod?

  • How do I fix orientation of photos after they were changed after importing iPhoto library into new Photo app in Yosemite?

    When I switched over to the new Photos app in Yosemite v10.10.3 and imported my iPhoto library to it, random photos in my library had their orientation changed. Some are upside down and some are turned on their side. I have a huge photo library, so t

  • ICal/iCloud sync issue

    I have: Mac OS X (10.7.5), iPad 2G, iPhone 4S, 32GB iPod Touch 2G I've spent a LOT of time looking for some iCal help and so far haven't found it.  There are SO many issues that I accidentally responded to one from a year ago. MY PROBLEM:  I can't ge