No function with name 'F_ITEMCHECK' exists in this scope

Hi i have a error:
SQL> Declare
2 Cursor stk_val is
3 Select prod_code,prod_desc, bal_Stock from prod_tran;
4 mProd_code prod_tran.prod_Code%type;
5 mProd_desc prod_tran.prod_desc%type;
6 mProd_qty prod_tran.prod_qty%type;
7 valexits integer;
8 bal_stock integer;
9 vquantity integer;
10 f_itemcheck integer;
11 Begin
12 Open stk_val;
13 loop
14 Fetch stk_val into mprod_code,mprod_desc,mprod_qty;
15 exit when stk_val%notfound;
16 valexits := f_itemcheck(mprod_code);
17 if valexits = 0 then
18 insert into prod_mast(prod_code,prod_Desc,bal_Stock)
19 values(mprod_code,mprod_Desc,mprod_qty);
20 elsif valexits = 1 then
21 update prod_mast
22 set bal_stock = bal_stock+ vquantity
23 where prod_code=mprod_code;
24 end if;
25 end loop;
26 close stk_Val;
27 end;
28 /
Declare
ERROR at line 1:
ORA-06550: line 3, column 34:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 3, column 6:
PL/SQL: SQL Statement ignored
ORA-06550: line 16, column 22:
PLS-00222: no function with name 'F_ITEMCHECK' exists in this scope
ORA-06550: line 16, column 10:
PL/SQL: Statement ignored

May be try this code
Declare
  Cursor stk_val is
  Select prod_code,prod_desc, bal_Stock
    from prod_tran;
  v_prod stk_val%rowtype;
  valexits    integer;
  bal_stock   integer;
  vquantity   integer;
Begin
  Open stk_val;
  loop
    Fetch stk_val into v_prod;
    exit when stk_val%notfound;     
    valexits := f_itemcheck(v_prod.prod_code);
    if valexits = 0 then       
      insert into prod_mast(prod_code,prod_Desc,bal_Stock)
      values(v_prod.prod_code,v_prod.prod_Desc,v_prod.prod_qty);
    elsif valexits = 1 then
      update prod_mast
         set bal_stock = bal_stock+ vquantity
       where prod_code=v_prod.prod_code;
    end if;
  end loop;
  close stk_Val;
end;Note: Code untested

Similar Messages

  • Reg an Error: no function with name 'CURRENT_RECORD' exists in this scope

    Hi All,
    I am getting the following error when i try using Set_Item_Instance_Property for assigning a visual attribute to an item.
    This is the code. I have replaced Display_Item with Set_Item_Instance_Property for setting the visual attribute.
    --DISPLAY_ITEM(lv_cur_item, 'VA_CURRENT_BUTTON');
    SET_ITEM_INSTANCE_PROPERTY(lv_cur_item,CURRENT_RECORD,VISUAL_ATTRIBUTE,'VA_CURRENT_BUTTON');
    no function with name 'CURRENT_RECORD' exists in this scope
    Any suggestion regarding this.
    Regards,
    Prasad.

    L.Rajesh - :SYSTEM.CURRENT_RECORD global variable does not exist - use :SYSTEM.CURSOR_RECORD or :SYSTEM.TRIGGER_RECORD instead.
    Prasad - what version of Forms are you using? For Forms 6i and higher, CURRENT_RECORD property is a valid reference. (not sure about Forms 5 or earlier as I don't have access to these versions any longer :) ) Are you logged into a database when you compile your code? There might be a TYPO somewhere in your code that the PL/SQL compiler can't determine the cause and CURRENT_RECORD is the first recognizable term the compiler can find. Sometimes, I've had to log out, close Forms Builder and reopen the form I'm working on to eliminate these types of odd compilation errors.
    Hope this helps,
    Craig B-)
    If a response is helpful or correct, please mark it accordingly.

  • Error: PLS-222: no function with name 'V' exists in this scope

    In my application, I used the wizard to create a form on a table with Report (2 pages). Then I go to the Report page and I want to test the edit function. This successfully launches the edit Form. When I change the values in the form and then try to save them, I get this error:
    Error Unable to process row of table PRODUCER.
    OK
    ORA-20001: Error in DML: p_rowid=ISDIRECT12, p_alt_rowid=KEYCODE, p_rowid2=, p_alt_rowid2=. ORA-06552: PL/SQL: Statement ignored ORA-06553: PLS-222: no function with name 'V' exists in this scope
    I guess my question is: should I be able to run and use the application while in developer mode.
    If yes, what am I doing wrong?

    We downloaded the companion CD product from OTN
    In the install, we just set up the second option (for HTML db. No glitches on the install, ended successfully
    Read the notes in the doc folder. No issues there
    Platform for development is Win XP Pro
    DB server and app server on same PC.
    Not sure what else you might need to know to answer your question

  • Error 222 no function with name "populate_list"

    Hi all, I am getting the following error when compiling a trigger:
    Error 222 at line 46, column 16
    no function with name "POPULATE_LIST" exists in this scope.
    Does anyone know whats going on here. Thanks.

    POPULATE_LIST is a procedure.It does not return any value.
    Just see if your code is trying to assign POPULATE_LIST to any variable.Refer form help for correct usage of this built-in.

  • Create table with name already existed

    Hello,
    I am trying to create a table which has the same table name that already exists in a different schema. The table already exist in another user's schema but why can't I create the same table in my own schema with the same name? Thank you.

    Check this out.
    SQL> create user testuser1 identified by testuser1 default tablespace user01;
    User created.
    SQL> create user testuser2 identified by testuser2 default tablespace user01;
    User created.
    SQL> grant create session, create table, create public synonym,
      2  unlimited tablespace to testuser1;
    Grant succeeded.
    SQL>  grant create session, create table, create public synonym,
      2   unlimited tablespace to testuser2;
    Grant succeeded.
    SQL> connect testuser1/testuser1
    Connected.
    SQL> create table mytable(col1 number);
    Table created.
    SQL> create public synonym mytable for testuser1.mytable;
    Synonym created.
    SQL> grant select on mytable to public;
    Grant succeeded.
    SQL> connect testuser2/testuser2
    Connected.
    SQL> create table mytable(col1 number);
    Table created.
    SQL> drop table mytable;
    Table dropped.
    SQL> desc mytable
    Name                                      Null?    Type
    COL1                                               NUMBER
    SQL> desc testuser1.mytable
    Name                                      Null?    Type
    COL1                                               NUMBER
    SQL> disconnect
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.3.0 - 64bit Production
    With the Partitioning option
    JServer Release 9.2.0.3.0 - Production

  • Spotlight/Finder can't find a file, yet when I search the timecapsule for they find it. If I try to restore the file I get "file with that name already exists...." What is wrong?

    I was trying to find a file (iTunes Backup). When using finder/Spotlight they couldn't find the file.
    I then opened up my timecapsule and searched for the file....tick-a-de-da it found it in yesterdays backup. I attempted to restore the file and got the prompt "A file with that name already exists in this location, would you like to keep both, replace the file or cancel the request.
    So if the file is there why can't spotlight/finder find the file??
    If it helps I get this from the terminal when checking if indexing was enabled.
    $ mdutil -s -a
      Indexing enabled.
    /Volumes/Data:
    2014-11-18 18:09:39.542 mdutil[1472:572531] Metadata.framework [Error]: mdsCopyStoreAttributes failed: (8) (os/kern) no access
      No index.
    /Volumes/Time Machine Backups:
      Indexing and searching disabled.
    /Volumes/Time Machine Backups/Backups.backupdb:
      Indexing enabled.

    Hi Danielle,
    Is there any possibilty that some of your files (a VI or DLL?) have been moved, renamed, or deleted? Also, what version of LabVIEW are you using and are you using any .NET DLLs? Another option to consider would involve VISA or DAQmx property nodes. Are you using any of these property nodes in your code? Here is a KnowledgeBase article to describe more about the VISA and DAQmx property nodes in a source distribution:
    Error Creating Source Distributions Involving rc Files: http://digital.ni.com/public.nsf/allkb/833BFD5E9CA0224886257584004DAA4C?OpenDocument
    I hope this is able to help.
    Anna L
    Applications Engineer
    National Instruments

  • Itunes COM SDK: cannot register function with iTunes Outgoing Interface

    I am doing benchmarks and I want to time the encoding of a Music CD. In order to stop the "clock" and compute the time I am trying to bind a function with the _IITConvertOperationStatusEvents::OnConvertOperationCompleteEvent()
    I am writing a AutoIt script and I can create the iTunes application object but when I use the ObjEvent function to register my function with the event above it causes a COM exception to be raised and the ObjEvent completes with an error. The exception code I get is 80040200 which seems to be a generic error.
    $objApp=ObjCreate("iTunes.Application")
    $SinkObject=ObjEvent($objApp, "ITEvent", "_IITConvertOperationStatusEvents")
    <<exception 80040200>>
    Browsing the iTunes COM TypeLib the _IITConvertOperationStatus does not seem to be a child in the iTunes object hierarchy so I think this is way the exception is being raised. I have tried to register another function with another outgoing interface and this works just perfectly: _IiTunesEvents::OnQuitting()
    Do I need to create another object which gets passed as the first parameter to the ObjEvent function?
    *Here is the entire script:*
    $ITSourceKindAudioCD = 3
    $begin = 0
    Global $trackName, $progressValue, $maxProgressValue, $SinkObject
    $oMyError = ObjEvent("AutoIt.Error","MyErrFunc") ; Install a custom error handler
    $objApp = ObjCreate("iTunes.Application")
    If @error Then
    MsgBox(0, "ObjCreate", "Create Object Failed", 3)
    Exit
    EndIf
    $event = ObjEvent($objApp, "ITEvent1_", "_IiTunesEvents")
    If @error Then
    MsgBox(0, "Failed", "IiTunesEvent binding failed", 5)
    Exit
    EndIf
    $SinkObject = ObjEvent($objApp, "ITEvent_", "_IITConvertOperationStatusEvents") ; Assign events to UDFs starting with IEEvent_
    If @error Then
    MsgBox(0, "ObjEvent binding", "ObjEvent failed!", 10)
    $objApp.Quit()
    Exit
    EndIf
    $colSources = $objApp.Sources
    $begin = TimerInit()
    For $objSource in $colSources
    If $objSource.Kind = $ITSourceKindAudioCD Then
    $strName = $objSource.Name
    $colPlaylists = $objSource.Playlists
    $objPlaylist = $colPlaylists.ItemByName($strName)
    $colTracks = $objPlaylist.Tracks
    $objApp.ConvertTracks2($colTracks)
    EndIf
    Next
    Do
    ; Wait around for the ripping to complete
    Until False
    ; This is my custom error handler
    Func MyErrFunc()
    $HexNumber = hex($oMyError.number,8)
    Msgbox(0,"","We intercepted a COM Error !" & @CRLF & _
    "Number is: " & $HexNumber & @CRLF & _
    "Windescription is: " & $oMyError.windescription )
    EndFunc
    Func ITEvent1_OnQuittingEvent()
    MsgBox(0, "Bye", "Bye-Bye", 10)
    EndFunc
    func ITEvent_OnConvertOperationCompleteEvent()
    $dif = TimerDiff($begin)
    MsgBox(0,"Time Difference",$dif)
    $objApp.Quit()
    EndFunc

    much of this is speculation because I can't remember how many previous versions of iTunes were on these machines...but this is what we're seeing:
    extra entries in two registry keys... when it didn't work these two registry entries contained "AppID" values:
    HKEYCLASSESROOT\CLSID\{B9E1D2CB-CCFF-4AA6-9579-D7A4754030EF}\Implemented
    Categories
    HKEYLOCALMACHINE\SOFTWARE\Classes\CLSID\{B9E1D2CB-CCFF-4AA6-9579-D7A4754030EF}
    with the APpID set to the same iTunes CLSID string:
    {B9E1D2CB-CCFF-4AA6-9579-D7A4754030EF}
    and when it did work the AppIDs entries were gone. this is only on XP.
    on vista there never was any AppID entry.
    but, again, i wonder if that was added by previous versions of iTunes which we didn't install on the vista machines...
    Also, worthy of noting is this post from Apple:
    http://support.apple.com/kb/HT1925
    ciao, raza

  • How can I use JavaScript extention functions with Xalan for transforming XML with XSL

    While transforming standart XML and XSL files to HTML with this servlet:
    package mypackage1;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    import java.net.URL;
    import javax.xml.transform.*;
    import javax.xml.transform.stream.StreamSource;
    import javax.xml.transform.stream.StreamResult;
    import org.mozilla.javascript;
    public class Servlet2 extends HttpServlet
    private static final String CONTENT_TYPE = "text/html; charset=windows-1252";
    public void init(ServletConfig config) throws ServletException
    super.init(config);
    public void doGet(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException
    try
    response.setContentType(CONTENT_TYPE);
    PrintWriter out = response.getWriter();
    TransformerFactory tFactory = TransformerFactory.newInstance();
    Source xmlSource = new StreamSource(new FileReader("c:/aaa.xml"));
    Source xslSource = new StreamSource(new FileReader("c:/bbb.xsl"));
    Transformer transformer = tFactory.newTransformer(xslSource);
    transformer.transform (xmlSource, new StreamResult(out));
    catch (Exception e)
    e.printStackTrace();
    everything is going ok,
    but when try to use javascript function in XSL file, for example like in this:
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
    xmlns:lxslt="http://xml.apache.org/xslt" xmlns:my-ext="ext1"
    extension-element-prefixes="my-ext">
    <lxslt:component prefix="my-ext"
    functions="getdate">
    <lxslt:script lang="javascript">
    function getdate() {
    var d = new Date();
    return d.toUTCString();
    </lxslt:script>
    </lxslt:component>
    <xsl:template match="/">
    <p><xsl:copy-of select="my-ext:getdate()"/></p>
    </xsl:template>
    </xsl:stylesheet>
    recieve error-message:
    XSL-1000: (Fatal Error) Error while parsing XSL file (Extension function namespace should start with 'http://www.oracle.com/XSL/Transform/java/'.).
    What kind of namespace I should specify?

    Hello, Paul.
    I'm sure you may not use JavaScript as a language for creating XSLT extention functions with Oracle XDK Parser. This is since parser might have JavaScript interpreter to work with JavaScript, but it has not.
    If you need to build any XSLT extention functions you must build them as Java class' static methods.
    After that, you define the usage of the class by mean of namespace declaration as:
    xmlns:your-ns="http://www.oracle.com/XSL/Transform/java/yourpackage.Yourclass"
    (Prefix "http://www.oracle.com/XSL/Transform/java/" may differs if you use non-Oracle XML parser)
    and use class' static method in XSLT:
    <xsl:value-of select="your-ns.staticMethodName(paramsIfAny)"/>
    In your case you may wish to use standard Date class:
    xmlns:date="http://www.oracle.com/XSL/Transform/java/java.util.Date"
    <xsl:value-of select="date:toString(date:new)"/>

  • My Airport doesn't function with Mountain Lion.  Why?

    I have an Airport 6.1., and it won't function with Mountain Lion.  If this is a software issue, does anybody know if Apple have any plans to upgrade their software.  Hopefully I won't need to buy a new Airport base station.  I don't know how to contact Apple support directly without paying for it.

    6.1 is a version of AirPort Utility....the software application in Lion and Mountain Lion that is used to configure Apple routers. This software is not compatible with older versions of the Apple AirPort routers.
    It sounds like you have an older "round" version of the AirPort Extreme.....or.....an older version of the AirPort Express.
    Can you provide more information so we can help? Once we have the info, we may have a possible workaround for you.
    If you have an AirPort Express, look for the Model No on the side of the device and post back with that info. It will likely be either A1084 or A1088.

  • A business partner with this name already exists - message 3501-1

    My client can't create a new account, the company is using a chart of account with segmentation. The message error is : "A business partner with this name already exists - choose a differetn name for the account. [Message 3501-1]"
    We are using SAP 2007A PL42 with SQL 2005
    Does somedbody have the same problem?

    Hi
    Please answer couple of these question
    Are you trying to create a new Business Partner Master Data ? Or Are you trying to create a new G/L Account in Finance module .
    Have you had that business partner before and was deleted ?
    Hope this will help to narrow down
    Bishal

  • When deleting messages I get this message:"74608.emlx" couldn't be copied to "Messages" because an item with the same name already exists.  How can I fix this problem?

    When trying to delete messages in mail, I've been getting this message:“74608.emlx” couldn’t be copied to “Messages” because an item with the same name already exists."  The numbers at the beginning are always different but the ".emlx" and the rest of the statement is always the same.  How can I fix this problem?
    Thanks
    Candy777

    HT2500 Error when deleting email: Apple Support Communities

  • "91590.emlx" couldn't be copied to "Messages" because an item with the same name already exists. How do I fix this?

    The delete button in Mail gives me this message: “91590.emlx” couldn’t be copied to “Messages” because an item with the same name already exists. The only thin that has changed is an OS update last evening. (Mountain Lion)

    Thanks...it was spooky seeing the mail in my box suddenly disappear and blank after going to Mailbox and Rebuild.  But "poof" it was up again and was able to delete without the messages telling me it had a duplicate in trash (which it did).  Solved the problem.

  • Problem with copying to external drives 10.8.3 "the operation can't be completed because an item with the name .ds_store exists"

    After upgrading from 10.7.5 to 10.8.3 I cannot copy certain folders to any external drive. the operation can't be completed because an item with the name .ds_store exists. I have seen this problem in discussions for many years with no real solution. Does anyone have a resolution? Please help. This is very frustrating as I work in two locations and copy folders back in forth all the time.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, or by a peripheral device. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including Wi-Fi on certain iMacs. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • 'ServerProperty' with 'Name' = 'Language' does not exist in the collection

    LS,
    One of my customers (using ssas 2012) is facing collation issues which result in missing facts in the cubes. I suggested them  to have a look at the Analysis Server Properties. Howevere, on selection of the Analysis Services Properties page 'Language-Collation',
    it doesn't open the page showing the properties, but instead the following message pops up:
    'ServerProperty' with 'Name' = 'Language' does not exist in the collection
    Any ideas on what could have caused this and how it can be fixed ?
    We're considereing a restart of the SSAS server, but need to be very carefull because it's their production environment.
    Appreciate your help,
    Kind regards,
    Cees
    Please remember to mark replies as answers or at least vote helpfull if they help and unmark them if they provide no help.

    I am also experiencing this error when clicking on the Language/Collation page of the Analysis Services Properties dialog.
    I suspect this is causing some other strange behavior such as an "invalid characters in hierarchy names" error when deploying an SSAS database, when the same solution/project can be deployed successfully from other machines. In that case, there are parenthesis
    in the attribute name but no user-defined hierarchies. Error:
    Errors in the metadata manager. The name, 'Project ID (Description)', for the cube hierarchy is not valid because this name is a reserved word, contains one or more invalid characters (.,;'`:/\*|?"&%$!+=()[]{}<>), or is longer than 100 characters.
    I would like to avoid having to re-install SSAS if at all possible. Any help is much appreciated.
    LB

  • HT5767 My mail all of a sudden would not allow me to delete messages in my inbox saying, "couldn't be copied to "Messages" because an item with the same name already exists." Found it duplicates the message I wanted deleted in trash.

    Still  using the @mac.com   mail  address and up   to date on everything, but have not gone to Maverick.  All of a sudden Mail wouldn't let me delete.  Said that title of email was already in trash.  And sure enough it was.  Clicking on the help button on the message gets Nothing.
    The selected topic is currently unavailable.
    The topic you were trying to view could not be found.
    "couldn’t be copied to “Messages” because an item with the same name already exists."
    Any ideas.  My mail is not tied to gmail etc.. just all by it's lonesome.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, or by corruption of certain system caches. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled on some models, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and  Wi-Fi on certain iMacs. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

Maybe you are looking for

  • Macbook start up problem

    Hi, yesterday I was serving the net using Safari and everything works fine,after that I put my Macbook to sleep as usual (I usually don't shut down) few hours later I when I try to wake it up and the screen just went black, no screen light, totally b

  • Je n'arrive pas à installer garageband 6.0.5 alors que je viens de l'acheter sur internet

    Bonjour Pouvez m'aider à installer garageband 6.0.5 sur mon imac. Je viens de l'acheter sur le net et rien ne se passe .. le telechargement ne veut démarrer

  • Edit in Photoshop Option

    In the Edit>Preferences>External Editors tab, the primary external editor (photoshop) says Edit in Photoshop (not found). I do have Photoshop CS installed but wonder why it says (not found). To work around, I have defined a second editor to be Photos

  • APD using Query with multiple structures as a data source

    All, I want to set up an automatic process which executes a query and exports it to a shared drive as a csv file. I have tried various options , when I try to use APD to set up the extract, I get an error and this is because the query that I am tryin

  • Thinkpad 10 keyboard Russian 4X30E68119

    Хотелось бы узнать какая раскладка на клавиатуре - только русские буквы или английские и русские.