Run time error INVALID DATATYPE from package

Hi,
I compiled the package spec. and body. But, when I issue select mytest_pack.get_res_set from dual, oracle return invalid data type error.
My requirement to develop packaged function need to return multiple rows by using record type. This can be achieved by using pipe lined function or
sys refcursor. But, I would like the packaged function return must return record type.
Can you pl. correct this package code.
Thanks,
Murali
create or replace package mytest_pack as
Type lvr_type is Record
          id number,
          email varchar(50)
type lvr_recs is table of lvr_type;
     function get_res_set return lvr_recs;
end mytest_pack;
create or replace package body mytest_pack as
     function get_res_set return lvr_recs is     
          t_test lvr_recs := lvr_recs();
          r_test lvr_type;
          cursor c1 is select row_id, email from mytable;
     begin
          for rec in ( select row_id, email from mytable )
          loop
                    t_test.extend;
                    r_test.id           := rec.row_id;
                    r_test.email           := rec.email;
                    t_test(t_test.count) := r_Test;
               end loop;      
     return t_test;
     end get_res_set;     
end mytest_pack;
Table mytable script script is
CREATE TABLE MYTABLE
(Row_id NUMBER,
Email VARCHAR2(50),
Option_Name VARCHAR2(2000),
Option_Value_1 VARCHAR2(2000),
Option_Value_2 VARCHAR2(2000),
Last_Update_Date DATE
insert into mytable values (1, '[email protected]', 'XOPT 1', 'OPT 2', 'OPT 3', sysdate);
insert into mytable values (2, '[email protected]', 'YOPT 1', 'OPT 2', 'OPT 3', sysdate);

I dont see any problem with your code.
The problem is with "select mytest_pack.get_res_set from dual"
You cannot select complex datatypes from dual.
Why dont you try an anonymous pl/sql block and try assigning the record values into another record or table.
select xxx into xxx ...

Similar Messages

  • Run time error while logging from a client

    hi all,
    My server is connected to 10 clients. out of that 2 clients are suddenly showing error while logging.
    Microsoft visual studio C++(error window)
    run tme error
    debug
    error c:/program files/sap/sap business one/sapbusiness one.exe
    This is the error window showing. I have uninstalled the client and again installed it but with no results. I found in the path mentioned above there should be the client run file "sap business one.exe", which is not present. I mean the .exe is missing. the file shows "sap business one" only.
    whenever we install the client then i the folder
    c:/program files/sap/sap business one
    there is a .exe file. which is not being installed in this client machine. what is being installed is a
    sap business one (not a .exe)
    when the client icon in the desktop is made to run, the log in screen appears, the list of company and db appears. I have recently upgraded the server to PL 42. so when a company is selected for log in then the client upgrade message also appears. when "ok" is clickd the run time error appears.
    where as all other clients are running well after the upgrade.
    please help with a solution.
    regards,
    Raj
    Edited by: debraj bhattacharyya on Dec 5, 2008 5:37 PM

    I have explored all the areas and I hope the problem is with the exe file only. Because I have tried an option. I copied the entire file SAP Business One (in the C:
    Program Files\sap) from one client which is working to the client where the error was showing. Then the it started working properly.
    But I donot think this will be a permanent solution. Because on reinstaling the client the SAPBusiness One.exe does not appear and to the best of my research i am quite sure that may be the problem.
    Any idea from any one for a perfect reason.
    Regards,
    Raj

  • XLR run-time error when upgrading from 2007A PL 39 to PL 42

    My client recently upgraded from 2007A PL 39 to Pl 42, In PL 39, everything, including XLR, was running smoothly. Mow when client tried to open SBO, he gets this message:
    XL Reporter
    Run-time error u2018430u2019:
    Class does not support Automation or does not support expected interface
    The client has uninstalled and re-installed mythe client software, but gets the same error.
    Any suggestions?

    Hi Katie,
    this error can occur with a DIAPI version mis-match. Again note 1247315 should help you in this regard, as there are steps there to follow.
    If the note doesn't help, you could also set the logging level to 6 which would provide more information:
    a. Locate the following key in the registry:                            
       My computer\HKey_Current_User\software\SAP\SAPManage\SAP Business   One\AddOn                                                                               
    b. Double click on logging level and enter value 6                                                                               
    c. Start XLR                                                            
    Please send the log in SAP Business One Log folder from                 
    Start->Run->%type%, you'll find log called SAPAddOn_01.log       
    Kind Regards,
    Lilian Lynch
    SAP Business One Forums Team

  • Abap run time error while downloading from spool

    Hi,
    Please find the error as an attachment when a user is trying to download data from spool.
    Please Guide me solution..
    Thanks in advance..
    Reagrds
    Aravind.

    Hi Aravind,
    It could be due to overflow of  your spool count.Try to check it first or if possible delete some old spool requests from the system by execution of standard report RSPO1041.
    After that try to re run the same & take a sample printout to check again.
    Regards,
    Gaurav

  • Run time error message - Conversion from string "Mobile Telecommunications" to type 'Boolean' is not valid.

    I get a error message when I select an element in the combo box, please review my variables:
     Public Sector As String
        Public Index As Decimal
    ...and code
     Select Case ComboBox1.Text
                Case "Banks"
                    Sector = "Bank" And Index = -0.086
                Case "Mobile Telecommunications"
                    Sector = "Mobile Telecommunications" And Index = -0.024
                Case "Real Estate Investment Trusts"
                    Sector = "Real Estate Investment Trusts" And Index = 0.132
            End Select

    And is a boolean operator. Try it like this instead:
    Select Case ComboBox1.Text
    Case "Banks"
    Sector = "Bank"
    Index = -0.086
    Case "Mobile Telecommunications"
    Sector = "Mobile Telecommunications"
    Index = -0.024
    Case "Real Estate Investment Trusts"
    Sector = "Real Estate Investment Trusts"
    Index = 0.132
    End Select
    Still lost in code, just at a little higher level.

  • How to display "Non-Fatal Run-Time Error In Function Panel" dialog?

    I'm learning how to develop an IVI-C specific driver using LabWindows/CVI. When I run my function from its function panel and it returns an error, I would like to display a dialog with both the error code and error message (as opposed to simply returning an error code on the function panel). This would save the user from having to call Prefix_error_message() to translate the error code to its error message. NI-DCPower driver is a good example of this behavior (see attached error dialog). How do I show the "Non-Fatal Run-Time Error In Function Panel" dialog? Any help is greatly appreciated. Thanks!
    Attachments:
    ErrorDialog.png ‏8 KB

    Hi Shawn,
    Thank you for replying to my post. The checkErr is just an error handling macro defined in ivi.h to goto Error: tag when the function returns a non-zero value. I have been using the checkErr macro (as well as viCheckErr and other macros) in my driver.
    Using the same hp34401a specific driver as an example, please allow me to explain my question in more details:
    Let's take the hp34401a_close function as an example. It is a simple function with only a few lines of code:
    When the hp34401a_close function is run from its front panel using an invalid session handle (e.g. "8" in this screen capture):
    You will get three "Non-Fatal Run-Time Error" popup dialogs, one from each of the IVI library functions that it calls: Ivi_LockSession, Ivi_UnlockSession, and Ivi_Dispose. However, there is no "Non-Fatal Run-Time Error" popup dialog from the hp34401a_close itself.
    My IVI-C specific driver is behaving identical to the hp34401a specific driver.
    In comparison, if run niDCPower_close function from its front panel using an invalid session handle (using the same "8" in this screen capture):
    You will only get one "Non-Fatal Run-Time Error In Function Panel" from the niDCPower_close function itself:
    I think the behavior of niDCPower driver is much better than the hp34401a driver. It replaces the three "Non-Fatal Run-Time Error" popup dialogs from the IVI library with a single "Non-Fatal Run-Time Error In Function Panel" popup dialog from the driver function itself. I would like to do the same thing with my driver but have not figured out how to display a "Non-Fatal Run-Time Error In Function Panel" dialog. Thanks in advance for your help!

  • XLRepoter - Run Time Error When running xlreporter report in MS2003 Execel

    Hi,
    I got this error when trying to XLReporter report in MS2003 Execel  : Microsoft Visual C++ Runtime Library. Runtime Error! Program: C:\Program Files\SAP\SAP Business One\SAP Business One.exe. Abnormal program termination. Then the process was terminate.
    Regards,
    Vivian

    Please check this thread to have a reference:
    XLR run-time error when upgrading from 2007A PL 39 to PL 42
    Thanks,
    Gordon

  • Package failed with run time error: " GETWA_NOT_ASSIGNED".

    Hi,
    One of our custom package is failing with run time error " GETWA_NOT_ASSIGNED". We are getting this error after refresh. Infact this package is working fine both in production and Dev, but in QA system it giving runtime error.
    Here with I am pasting run time error details. Please see...If any one have any idea or clue or if you have faced this kind of error.
    Thanks is advance.
    Error Details.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "CL_UJK_CUSTOM_LOGIC===========CP" had to be
         terminated because it has
        come across a statement that unfortunately cannot be executed.
    What can you do?
        Note down which actions and inputs caused the error.
        To process the problem further, contact you SAP system
        administrator.
        Using Transaction ST22 for ABAP Dump Analysis, you can look
        at and manage termination messages, and you can also
        keep them for a long time.
    Error analysis
        You attempted to access an unassigned field symbol
        (data segment 32774).
        This error may occur if
        - You address a typed field symbol before it has been set with
          ASSIGN
        - You address a field symbol that pointed to the line of an
          internal table that was deleted
        - You address a field symbol that was previously reset using
          UNASSIGN or that pointed to a local field that no
          longer exists
        - You address a global function interface, although the
          respective function module is not active - that is, is
          not in the list of active calls. The list of active calls
          can be taken from this short dump.
    Regards, Trine

    Hi Trine,
    the error is about some field you are trying to map using field-simbols, that is diferent in the other system.
    Go to the code program in the st22, there you will see when the erros occurs e what field gives the error.
    Best Regards,
    António

  • BPC75NW: DM package throws run time error

    Hi,
    Execution of a DM package throws a run time error.
    A parallel run through UJKT tcode does not give any such error.
    Following is the DM package error:
    "Member () of dimension (ACCOUNT) is not a valid member"
    What can be the possible causes of this error?
    Regards,
    Pankaj

    Hi,
    Do you have any script logic run by the DM package? If yes, please check if you are using %ACCOUNT_SET% in the script. In that case, you need to pass the account member from the DM package. In addition to this, make sure that the default logic is validated, even if its empty.
    Hope this helps.

  • JList run time errors when removing items from list

    Hi there
    I am having trouble removing items from a JList. For a While it was working fine and now it outputs runtime errors everytime samething gets removed from the lsit
    Here is the code
    //declare
    public class Consumertab1gui extends JPanel implements ActionListener
         public static JList conList = null;
         private static DefaultListModel model = null;
    // Create a list with some items
    model = new DefaultListModel();
    conList = new JList(model);
    //set the size of cells in the list with the length of the string
    conList.setPrototypeCellValue("Lenght 1234567890");
    conList.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
    conList.addListSelectionListener(new ValueReporter());
    //set a scroll onto the list
    JScrollPane conScroll = new JScrollPane(conList);
    add(conScroll,c);
    //when the button gets pressed to drop the selected item the following code is called
    private void dropConsumer()
    int selItem=0;
    componentsV.comVRemove(conList.getSelectedValue().toString());
    selItem=conList.getSelectedIndex();
    System.out.println("No:"+(model.getSize()-1));
    System.out.println("S:"+selItem);
    remConList(selItem);
    dropCon.setEnabled(false);
    //which in turns calls this
    public void remConList(int pos)
         model.remove(pos);
    when the model.remove(pos) code is executed the following runtime errors are given:
    java.lang.NullPointerException
    at Consumertab1gui$ValueReporter.valueChanged(Consumertab1gui.java:197)
    at javax.swing.JList.fireSelectionValueChanged(JList.java:1321)
    at javax.swing.JList$ListSelectionHandler.valueChanged(JList.java:1335)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:187)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:214)
    at javax.swing.DefaultListSelectionModel.removeIndexInterval(DefaultListSelectionModel.java:546)
    at javax.swing.plaf.basic.BasicListUI$ListDataHandler.intervalRemoved(BasicListUI.java:1561)
    at javax.swing.AbstractListModel.fireIntervalRemoved(AbstractListModel.java:160)
    at javax.swing.DefaultListModel.remove(DefaultListModel.java:478)
    at Consumertab1gui.remConList(Consumertab1gui.java:38)
    at Consumertab1gui.dropConsumer(Consumertab1gui.java:58)
    at Consumertab1gui.actionPerformed(Consumertab1gui.java:46)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
    at java.awt.Component.processMouseEvent(Component.java:5100)
    at java.awt.Component.processEvent(Component.java:4897)
    at java.awt.Container.processEvent(Container.java:1569)
    at java.awt.Component.dispatchEventImpl(Component.java:3615)
    at java.awt.Container.dispatchEventImpl(Container.java:1627)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
    at java.awt.Container.dispatchEventImpl(Container.java:1613)
    at java.awt.Window.dispatchEventImpl(Window.java:1606)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    can anyone spot any mistakes in the code or suggest possible resons as to why these run time errors occur?
    Thanks
    alexis

    java.lang.NullPointerException
    at Consumertab1gui$ValueReporter.valueChanged(Consumertab1gui.java:197)The NullPointerException occurs at line 197, in the valueChanged method of your ValueReporter inner class. I have looked through your post several times but I don't see where you posted that method. Anyway, that is where you should look.
    PC²

  • Run time error running Vision Builder AI inspection from TestStand

    Hello,
    I have TestStand 3.1 and Vision Builder for AI v2.6.1.
    I would like to run from TestStand a Vision Builder Program or steps. For to achieve that, I have followed the instructions on Application Note 215, Running a Vision Builder AI Inspection from TestStand.
    After installation, the option in TestStand InsertStep>NI Vision Builder AI>Inspection works properly.
    But when try to execute a step with that inspection, and whatever operation of that one, the result is the following error:
    Run-Time Error
       Details: Error executing substep 'Post'.
    An error occurred calling 'ExecuteStep' in '_NIVBAITestStandSteps' of 'NIVBAITestStandAPI'.
       Error Code: -2147417851; User defined code. Possible System Error: The server sent an exception.
      At this point really I don´t know what to do, and I don't find any extra help apart of application note.
      I will appreciate some suggestion.
    Gonzalo.

    Hello,
    I've found some more information that may help.  Since these TestStand steps are simply call a DLL with an exported ActiveX API, path issues may exist.  In fact, the overwhelming number of times this error appears, paths seems to be the case. I am not sure why the error is an indication of a path issue, but that seems to be the case.  I would recommend that you would reregister the DLL, this time in the same directory as the example sequence.  To do this:
    - Unregister the current DLL by going to Start Menu>>Run, and typing: regsvr32 /u NIVBAITestStandAPI.dll
    - Move the DLL from the system32 folder to the folder in which the example sequence is saved.
    - Reregister the DLL from the run command (regsvr32 <folder path>\NIVBAITestStandAPI.dll)
    - Restart TestStand if it is open
    I apologize for not having any concrete answers, but this one is proving tough without me being able to replicate the issue.
    crisR

  • Run time error when trying to import bookmarks from firefox

    When trying to import bookmarks from Firefox to Safari I get the following error message: "Run Time Error. This application has requested the Runtime  to terminate it in an unusual way." Safari does not function anymore and I have to close it. Can somebody help me? I am using a PC with Windows 7.

    In the Bookmarks Manager (Library) there is a toolbar with the Back and Forward button and three other buttons (Organize, Views, Import & Backup).
    * The first (gear) button is the Organize button with basic edit menu items for bookmarks
    * The second button is the Views button that allows to change the sort order for viewing purposes (doesn't sort permanently).
    * The third (star) button is the Import & Backup button that allows to backup and restore a JSON backup and import and export an HTML backup and import bookmarks from other browsers.
    Hover each button to see the tooltip or click each of them to see what they do.
    * https://support.mozilla.org/kb/how-do-i-use-bookmarks

  • Run-time Error '429' when copying queries from one userid to a new userid

    Hello,
    One of the users is having an issue when copying queries from an old user id to a new user id.
    She is getting the visual basic run-time error '429' - active x component can't create object while copying.
    This is not consistent.  From what I can tell, this does not appear to be a bex query designer issue but something in microsoft.
    Please let me know either way. I have found minimal posts on this issue.  Most that I have found are outside the sdn forum and talk about registry issues?
    Thank you,
    Lynda

    According to your error message, your onClick function declaration line closes the parenthesis twice... you may have a typo in what you actually put in the file versus what you think you put...
    function onClick()event:MouseEvent):void{

  • When access BW from Crystal I get: run-time error '-2147417848(80010108)'

    Installed Crystal and the SAP int Kit in the correct order. I can access R/3 but get an error when trying to access BW:
    run-time error '-2147417848(80010108)'
    Then Crystal crashes and shuts down.

    Yep, I have the same... The only one solution for me for now is open report, then log in to BW using toolbar icon from SAP integration kit bar. Only after that you can work with this report without crash.

  • Throws Run time error at runtime.

    Hi freinds,
    I've downloaded special jar file and placed in "C:\j2sdk1.4.2_11\jre\lib\ext".
    I've used one of the IO class from this jar file in my Candies.java class.
    When i going to compile it from command prompt it compiles dine but at run time while running following command ,
    D:\TP>javac Candies.java
    D:\TP>java Candies
    Exception in thread "main" java.lang.NoClassDefFoundError: ncst/pgdst/IOException
    When i compile and run this code with IDE 'JCreator' it works fine.
    Why the same application throws run time error at command prompt?
    How could i resolve this issue ?
    Note:I've also set classpath to "C:\j2sdk1.4.2_11\jre\lib\ext\." .
    Regards,
    Sachin Warang.

    If i placed the jar file some where else how could
    used it in my source file?To use a class in your source code, you just import its package and make sure the jar is on the classpath, nothing else is necessary.
    I'm stick to command prompt as i want include the
    input file(which contains big input) at run time
    using the command
    D:\TP>java Candies < input
    Is it possible with any IDE to include such text file
    at run time , if so how could i do this?All IDEs let their users specify parameters for programs they start from within the IDE. See doc of your IDE. (But people here don't recommend IDEs for beginners ;)
    But why it compiles fine and giving me Error at run
    time if it is not set in the classpath?Looks like it is because that class is not used directly in your code but your code calls another class that uses that missing class.
    I've also change the classpath to
    "C:\j2sdk1.4.2_11\jre\lib\ext\pgdst.jar\." still the
    problem exist , why is it so as i'm giving the actual
    path now?You still don't specify the exact jar! E.g: C:\j2sdk1.4.2_11\jre\lib\ext\pgdst.jar\aa.jar
    Hope it helps...

Maybe you are looking for

  • BAPI Help

    Dear all, Is there a BAPI to make changes in Routing?TCODE is CA02. I want to assign activity type and check the backflushing after clicking on component allocation.

  • DefaultMutableTreeModel, and casting TreeModel - DefaultMutableTreeModel

    I have a workflow object, from which I create a workflowTreeModel and display this in a JTree - all works OK.... I now need to create a DefaultMutableTreeModel from the same workflow object and I in need of some pointers. (please) All the examples I

  • HREAP VLAN Mapping

    /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-

  • JavaFX 2.2 TextField and TextArea use black text-fill on select.

    Two of my applications--one FXML and the other UI-coded on NetBeans7.1.1--both have a problem when user selects text in either TextArea or TextField when editing. When content word is double-clicked, the selection background becomes dark blue (dodger

  • Reg:sequence

    Hi All, I am using Oracle 10.2. I had a query as: SELECT schma1.ASN_IR_ID_SQ.NEXTVAL *               INTO seq_11 FROM DUAL;* when i run this query i am getting error as : ora-     02289: sequence does not exist Thanks